public abstract class AbstractDSLMappingEntry extends Object implements DSLMappingEntry
DSLMappingEntry.DefaultDSLEntryMetaData, DSLMappingEntry.MetaData, DSLMappingEntry.SectionANY, CONDITION, CONSEQUENCE, EMPTY_METADATA, KEYWORD| Constructor and Description |
|---|
AbstractDSLMappingEntry() |
| Modifier and Type | Method and Description |
|---|---|
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() |
public DSLMappingEntry.Section getSection()
DSLMappingEntrygetSection in interface DSLMappingEntrypublic DSLMappingEntry.MetaData getMetaData()
DSLMappingEntrygetMetaData in interface DSLMappingEntrypublic String getMappingKey()
DSLMappingEntrygetMappingKey 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()
DSLMappingEntrygetMappingValue 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()
DSLMappingEntrygetKeyPattern in interface DSLMappingEntrypublic String getValuePattern()
DSLMappingEntrygetValuePattern in interface DSLMappingEntrypublic void setValuePattern(String valuePattern)
public Map<String,Integer> getVariables()
DSLMappingEntrygetVariables in interface DSLMappingEntrypublic String toPatternString()
public List getErrors()
DSLMappingEntrygetErrors in interface DSLMappingEntryCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.