|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DSLMappingEntry
A single entry in a DSL mapping file
Nested Class Summary | |
---|---|
static class |
DSLMappingEntry.AnySection
An element to indicate the mapping should be applicable to any section |
static class |
DSLMappingEntry.ConditionSection
The condition section, to allow mapping of the conditions |
static class |
DSLMappingEntry.ConsequenceSection
The consequence section to allow the mapping of consequence elements |
static class |
DSLMappingEntry.DefaultDSLEntryMetaData
|
static class |
DSLMappingEntry.KeywordSection
The keyword section, to allow mapping of keywords |
static interface |
DSLMappingEntry.MetaData
An inner interface to represent any metadata associated with this entry. |
static interface |
DSLMappingEntry.Section
An inner interface for DSL mapping sections |
Field Summary | |
---|---|
static DSLMappingEntry.Section |
ANY
|
static DSLMappingEntry.Section |
CONDITION
|
static DSLMappingEntry.Section |
CONSEQUENCE
|
static DSLMappingEntry.MetaData |
EMPTY_METADATA
|
static DSLMappingEntry.Section |
KEYWORD
|
Method Summary | |
---|---|
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 |
void |
setMappingKey(String key)
|
void |
setMappingValue(String value)
|
void |
setMetaData(DSLMappingEntry.MetaData metadata)
|
void |
setSection(DSLMappingEntry.Section section)
|
Field Detail |
---|
static final DSLMappingEntry.Section KEYWORD
static final DSLMappingEntry.Section CONDITION
static final DSLMappingEntry.Section CONSEQUENCE
static final DSLMappingEntry.Section ANY
static final DSLMappingEntry.MetaData EMPTY_METADATA
Method Detail |
---|
DSLMappingEntry.Section getSection()
DSLMappingEntry.MetaData getMetaData()
String getMappingKey()
String getMappingValue()
Pattern getKeyPattern()
String getValuePattern()
Map getVariables()
void setMappingKey(String key)
key
- the key to setvoid setSection(DSLMappingEntry.Section section)
section
- the section to setvoid setMappingValue(String value)
value
- the value to setvoid setMetaData(DSLMappingEntry.MetaData metadata)
metadata
- the metadata to setList getErrors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |