Package org.drools.drl.parser.lang.dsl
Class AbstractDSLMappingEntry
java.lang.Object
org.drools.drl.parser.lang.dsl.AbstractDSLMappingEntry
- All Implemented Interfaces:
DSLMappingEntry
- Direct Known Subclasses:
AntlrDSLMappingEntry
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.drools.drl.parser.lang.dsl.DSLMappingEntry
DSLMappingEntry.DefaultDSLEntryMetaData, DSLMappingEntry.MetaData, DSLMappingEntry.Section -
Field Summary
Fields inherited from interface org.drools.drl.parser.lang.dsl.DSLMappingEntry
ANY, CONDITION, CONSEQUENCE, EMPTY_METADATA, KEYWORD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a list of errors found in this mappingReturns the compiled pattern based on the given MappingKeyReturns the key of this mapping, i.e., the source that needs to be translatedReturns the result of the translationReturns the meta data info about this mapping entryReturns the section this mapping entry refers toReturns the transformed mapping value using place holders for variablesReturns the list of variables found in the given pattern key in the same order they were foundinthashCode()voidsetKeyPattern(Pattern keyPattern) voidsetMappingKey(String key) voidsetMappingValue(String value) voidsetMetaData(DSLMappingEntry.MetaData metadata) voidsetSection(DSLMappingEntry.Section section) voidsetValuePattern(String valuePattern) voidsetVariables(Map<String, Integer> variables) toString()
-
Constructor Details
-
AbstractDSLMappingEntry
public AbstractDSLMappingEntry()
-
-
Method Details
-
getSection
Description copied from interface:DSLMappingEntryReturns the section this mapping entry refers to- Specified by:
getSectionin interfaceDSLMappingEntry- Returns:
-
getMetaData
Description copied from interface:DSLMappingEntryReturns the meta data info about this mapping entry- Specified by:
getMetaDatain interfaceDSLMappingEntry- Returns:
-
getMappingKey
Description copied from interface:DSLMappingEntryReturns the key of this mapping, i.e., the source that needs to be translated- Specified by:
getMappingKeyin interfaceDSLMappingEntry- Returns:
-
setMappingKey
- Specified by:
setMappingKeyin interfaceDSLMappingEntry- Parameters:
key- the key to set
-
setMappingValue
- Specified by:
setMappingValuein interfaceDSLMappingEntry- Parameters:
value- the value to set
-
setKeyPattern
-
getMappingValue
Description copied from interface:DSLMappingEntryReturns the result of the translation- Specified by:
getMappingValuein interfaceDSLMappingEntry- Returns:
-
setSection
- Specified by:
setSectionin interfaceDSLMappingEntry- Parameters:
section- the section to set
-
setMetaData
- Specified by:
setMetaDatain interfaceDSLMappingEntry- Parameters:
metadata- the metadata to set
-
getKeyPattern
Description copied from interface:DSLMappingEntryReturns the compiled pattern based on the given MappingKey- Specified by:
getKeyPatternin interfaceDSLMappingEntry- Returns:
- the keyPattern
-
getValuePattern
Description copied from interface:DSLMappingEntryReturns the transformed mapping value using place holders for variables- Specified by:
getValuePatternin interfaceDSLMappingEntry- Returns:
- the valuePattern
-
setValuePattern
-
getVariables
Description copied from interface:DSLMappingEntryReturns the list of variables found in the given pattern key in the same order they were found- Specified by:
getVariablesin interfaceDSLMappingEntry- Returns:
- the variables
-
setVariables
-
toPatternString
-
toString
-
hashCode
public int hashCode() -
equals
-
getErrors
Description copied from interface:DSLMappingEntryReturns a list of errors found in this mapping- Specified by:
getErrorsin interfaceDSLMappingEntry- Returns:
-