public interface DSLMappingEntry
Modifier and Type | Interface and Description |
---|---|
static class |
DSLMappingEntry.DefaultDSLEntryMetaData |
static interface |
DSLMappingEntry.MetaData
An inner interface to represent any metadata
associated with this entry.
|
static class |
DSLMappingEntry.Section
An enum for the sections
|
Modifier and Type | Field and Description |
---|---|
static DSLMappingEntry.Section |
ANY |
static DSLMappingEntry.Section |
CONDITION |
static DSLMappingEntry.Section |
CONSEQUENCE |
static DSLMappingEntry.MetaData |
EMPTY_METADATA |
static DSLMappingEntry.Section |
KEYWORD |
Modifier and Type | Method and Description |
---|---|
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
|
void |
setMappingKey(String key) |
void |
setMappingValue(String value) |
void |
setMetaData(DSLMappingEntry.MetaData metadata) |
void |
setSection(DSLMappingEntry.Section section) |
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
DSLMappingEntry.Section getSection()
DSLMappingEntry.MetaData getMetaData()
String getMappingKey()
String getMappingValue()
Pattern getKeyPattern()
String getValuePattern()
Map<String,Integer> 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()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.