public abstract class AbstractDSLMappingEntry extends Object implements DSLMappingEntry
DSLMappingEntry.DefaultDSLEntryMetaData, DSLMappingEntry.MetaData, DSLMappingEntry.Section
ANY, 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()
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 String toPatternString()
public List getErrors()
DSLMappingEntry
getErrors
in interface DSLMappingEntry
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.