|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.lang.dsl.template.NLGrammar
public class NLGrammar
This represents a simple grammar mapping. Order of operations is as stored in the list. Global expressions are processed first, followed by condition or consequence scoped ones.
Constructor Summary | |
---|---|
NLGrammar()
|
Method Summary | |
---|---|
void |
addNLItem(NLMappingItem item)
|
java.lang.String |
getDescription()
Get the human readable description of this language definition. |
java.util.List |
getMappings()
|
java.util.List |
getMappings(java.lang.String scope)
Filter the items for the appropriate scope. |
void |
load(java.io.Reader reader)
This will load from a reader to an appropriate text DSL config. |
NLMappingItem |
parseLine(java.lang.String line)
This will parse a line into a NLMapping item. |
void |
removeMapping(NLMappingItem item)
Will remove the mapping from the grammar. |
void |
save(java.io.Writer writer)
Save out the grammar configuration |
void |
setDescription(java.lang.String description)
Set the human readable description of this language definition. |
java.util.List |
validateMapping(NLMappingItem item)
Validades the mapping returning a list of errors found or an empty list in case of no errors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NLGrammar()
Method Detail |
---|
public void addNLItem(NLMappingItem item)
public java.util.List getMappings()
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public void removeMapping(NLMappingItem item)
public void load(java.io.Reader reader)
public void save(java.io.Writer writer)
public java.util.List getMappings(java.lang.String scope)
public NLMappingItem parseLine(java.lang.String line)
public java.util.List validateMapping(NLMappingItem item)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |