|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.lang.dsl.AbstractDSLMappingEntry
public abstract class AbstractDSLMappingEntry
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.drools.lang.dsl.DSLMappingEntry |
---|
DSLMappingEntry.DefaultDSLEntryMetaData, DSLMappingEntry.MetaData, DSLMappingEntry.Section |
Field Summary |
---|
Fields inherited from interface org.drools.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 DSLMappingEntry
public DSLMappingEntry.MetaData getMetaData()
DSLMappingEntry
getMetaData
in interface DSLMappingEntry
public String getMappingKey()
DSLMappingEntry
getMappingKey
in interface DSLMappingEntry
public void setMappingKey(String key)
setMappingKey
in interface DSLMappingEntry
key
- the key to setpublic void setMappingValue(String value)
setMappingValue
in interface DSLMappingEntry
value
- the value to setpublic void setKeyPattern(Pattern keyPattern)
public String getMappingValue()
DSLMappingEntry
getMappingValue
in interface DSLMappingEntry
public void setSection(DSLMappingEntry.Section section)
setSection
in interface DSLMappingEntry
section
- the section to setpublic void setMetaData(DSLMappingEntry.MetaData metadata)
setMetaData
in interface DSLMappingEntry
metadata
- the metadata to setpublic Pattern getKeyPattern()
DSLMappingEntry
getKeyPattern
in interface DSLMappingEntry
public String getValuePattern()
DSLMappingEntry
getValuePattern
in interface DSLMappingEntry
public void setValuePattern(String valuePattern)
public Map<String,Integer> getVariables()
DSLMappingEntry
getVariables
in interface DSLMappingEntry
public void setVariables(Map<String,Integer> variables)
public String toPatternString()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public List getErrors()
DSLMappingEntry
getErrors
in interface DSLMappingEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |