|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.lang.dsl.DefaultDSLMappingEntry
public class DefaultDSLMappingEntry
A default implementation for the DSL Mapping Entry interface
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.drools.lang.dsl.DSLMappingEntry |
---|
DSLMappingEntry.AnySection, DSLMappingEntry.ConditionSection, DSLMappingEntry.ConsequenceSection, DSLMappingEntry.DefaultDSLEntryMetaData, DSLMappingEntry.KeywordSection, DSLMappingEntry.MetaData, DSLMappingEntry.Section |
Field Summary |
---|
Fields inherited from interface org.drools.lang.dsl.DSLMappingEntry |
---|
ANY, CONDITION, CONSEQUENCE, EMPTY_METADATA, KEYWORD |
Constructor Summary | |
---|---|
DefaultDSLMappingEntry()
|
|
DefaultDSLMappingEntry(DSLMappingEntry.Section section,
DSLMappingEntry.MetaData metadata,
String key,
String value)
|
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 |
getVariables()
Returns the list of variables found in the given pattern key |
int |
hashCode()
|
void |
setMappingKey(String key)
|
void |
setMappingValue(String value)
|
void |
setMetaData(DSLMappingEntry.MetaData metadata)
|
void |
setSection(DSLMappingEntry.Section section)
|
String |
toPatternString()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultDSLMappingEntry()
public DefaultDSLMappingEntry(DSLMappingEntry.Section section, DSLMappingEntry.MetaData metadata, String key, String value)
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 String getMappingValue()
DSLMappingEntry
getMappingValue
in interface DSLMappingEntry
public void setMappingKey(String key)
setMappingKey
in interface DSLMappingEntry
key
- the key to setpublic void setSection(DSLMappingEntry.Section section)
setSection
in interface DSLMappingEntry
section
- the section to setpublic void setMappingValue(String value)
setMappingValue
in interface DSLMappingEntry
value
- the value 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 Map getVariables()
DSLMappingEntry
getVariables
in interface DSLMappingEntry
public String toPatternString()
public String toString()
public int hashCode()
public boolean equals(Object obj)
public List getErrors()
DSLMappingEntry
getErrors
in interface DSLMappingEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |