Package org.drools.drl.parser.lang.dsl
Interface DSLMapping
- All Known Implementing Classes:
DefaultDSLMapping
public interface DSLMapping
An interface that represents a DSL Mapping
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntries(List<DSLMappingEntry> entries) Adds all entries in the given list to this DSL MappingvoidaddEntry(DSLMappingEntry entry) Add one entry to the list of the entriesReturns a String description of this mappingReturns the list of entries in this mappinggetEntries(DSLMappingEntry.Section section) Returns the list of mappings for the given sectionReturns the string identifier for this mappingbooleanRetrieves an an expansion option.voidremoveEntry(DSLMappingEntry entry) Removes the given entry from the list of entriesvoidsetDescription(String description) Sets the description for this mappingvoidsetIdentifier(String identifier) Sets the identifier for this mappingvoidsetOptions(Collection<String> option) Sets an expansion option.
-
Method Details
-
getIdentifier
String getIdentifier()Returns the string identifier for this mapping- Returns:
-
setIdentifier
Sets the identifier for this mapping- Parameters:
identifier-
-
getDescription
String getDescription()Returns a String description of this mapping- Returns:
-
setDescription
Sets the description for this mapping- Parameters:
description-
-
getEntries
List<DSLMappingEntry> getEntries()Returns the list of entries in this mapping- Returns:
-
addEntry
Add one entry to the list of the entries- Parameters:
entry-
-
addEntries
Adds all entries in the given list to this DSL Mapping- Parameters:
entries-
-
removeEntry
Removes the given entry from the list of entries- Parameters:
entry-
-
getEntries
Returns the list of mappings for the given section- Parameters:
section-- Returns:
-
setOptions
Sets an expansion option.- Parameters:
option-
-
getOption
Retrieves an an expansion option.- Parameters:
option-- Returns:
- true if option is set.
-