|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.lang.dsl.DSLMappingFile
public class DSLMappingFile
A helper class that handles a DSL Mapping file
Constructor Summary | |
---|---|
DSLMappingFile()
|
Method Summary | |
---|---|
java.lang.String |
dumpFile()
Method to return the current mapping as a String object |
java.util.List |
getErrors()
Returns the list of parsing errors |
DSLMapping |
getMapping()
Returns the DSL mapping loaded from this file |
boolean |
parseAndLoad(java.io.Reader dsl)
Parses the file. |
void |
saveMapping(java.io.Writer out)
Saves current mapping into a DSL mapping file |
static void |
saveMapping(java.io.Writer out,
DSLMapping mapping)
Saves the given mapping into a DSL mapping file |
void |
setMapping(DSLMapping mapping)
Sets the |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DSLMappingFile()
Method Detail |
---|
public DSLMapping getMapping()
public void setMapping(DSLMapping mapping)
mapping
- public java.util.List getErrors()
public boolean parseAndLoad(java.io.Reader dsl) throws java.io.IOException
java.io.IOException
public void saveMapping(java.io.Writer out) throws java.io.IOException
out
-
java.io.IOException
public static void saveMapping(java.io.Writer out, DSLMapping mapping) throws java.io.IOException
out
- mapping
-
java.io.IOException
public java.lang.String dumpFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |