|
Drools :: Compiler 6.0.0.CR5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.compiler.lang.dsl.AbstractDSLMappingEntry
public abstract class AbstractDSLMappingEntry
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.drools.compiler.lang.dsl.DSLMappingEntry |
|---|
DSLMappingEntry.DefaultDSLEntryMetaData, DSLMappingEntry.MetaData, DSLMappingEntry.Section |
| Field Summary |
|---|
| Fields inherited from interface org.drools.compiler.lang.dsl.DSLMappingEntry |
|---|
ANY, CONDITION, CONSEQUENCE, EMPTY_METADATA, KEYWORD |
| Constructor Summary | |
|---|---|
AbstractDSLMappingEntry()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
List |
getErrors()
Returns a list of errors found in this mapping |
Pattern |
getKeyPattern()
Returns the compiled pattern based on the given MappingKey |
String |
getMappingKey()
Returns the key of this mapping, i.e., the source that needs to be translated |
String |
getMappingValue()
Returns the result of the translation |
DSLMappingEntry.MetaData |
getMetaData()
Returns the meta data info about this mapping entry |
DSLMappingEntry.Section |
getSection()
Returns the section this mapping entry refers to |
String |
getValuePattern()
Returns the transformed mapping value using place holders for variables |
Map<String,Integer> |
getVariables()
Returns the list of variables found in the given pattern key in the same order they were found |
int |
hashCode()
|
void |
setKeyPattern(Pattern keyPattern)
|
void |
setMappingKey(String key)
|
void |
setMappingValue(String value)
|
void |
setMetaData(DSLMappingEntry.MetaData metadata)
|
void |
setSection(DSLMappingEntry.Section section)
|
void |
setValuePattern(String valuePattern)
|
void |
setVariables(Map<String,Integer> variables)
|
String |
toPatternString()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDSLMappingEntry()
| Method Detail |
|---|
public DSLMappingEntry.Section getSection()
DSLMappingEntry
getSection in interface DSLMappingEntrypublic DSLMappingEntry.MetaData getMetaData()
DSLMappingEntry
getMetaData in interface DSLMappingEntrypublic String getMappingKey()
DSLMappingEntry
getMappingKey in interface DSLMappingEntrypublic void setMappingKey(String key)
setMappingKey in interface DSLMappingEntrykey - the key to setpublic void setMappingValue(String value)
setMappingValue in interface DSLMappingEntryvalue - the value to setpublic void setKeyPattern(Pattern keyPattern)
public String getMappingValue()
DSLMappingEntry
getMappingValue in interface DSLMappingEntrypublic void setSection(DSLMappingEntry.Section section)
setSection in interface DSLMappingEntrysection - the section to setpublic void setMetaData(DSLMappingEntry.MetaData metadata)
setMetaData in interface DSLMappingEntrymetadata - the metadata to setpublic Pattern getKeyPattern()
DSLMappingEntry
getKeyPattern in interface DSLMappingEntrypublic String getValuePattern()
DSLMappingEntry
getValuePattern in interface DSLMappingEntrypublic void setValuePattern(String valuePattern)
public Map<String,Integer> getVariables()
DSLMappingEntry
getVariables in interface DSLMappingEntrypublic void setVariables(Map<String,Integer> variables)
public String toPatternString()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic List getErrors()
DSLMappingEntry
getErrors in interface DSLMappingEntry
|
Drools :: Compiler 6.0.0.CR5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||