Package org.drools.compiler.lang.dsl
Interface DSLMapping
-
- All Known Implementing Classes:
DefaultDSLMapping
public interface DSLMapping
An interface that represents a DSL Mapping
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addEntries(List<DSLMappingEntry> entries)
Adds all entries in the given list to this DSL Mappingvoid
addEntry(DSLMappingEntry entry)
Add one entry to the list of the entriesString
getDescription()
Returns a String description of this mappingList<DSLMappingEntry>
getEntries()
Returns the list of entries in this mappingList<DSLMappingEntry>
getEntries(DSLMappingEntry.Section section)
Returns the list of mappings for the given sectionString
getIdentifier()
Returns the string identifier for this mappingboolean
getOption(String option)
Retrieves an an expansion option.void
removeEntry(DSLMappingEntry entry)
Removes the given entry from the list of entriesvoid
setDescription(String description)
Sets the description for this mappingvoid
setIdentifier(String identifier)
Sets the identifier for this mappingvoid
setOptions(Collection<String> option)
Sets an expansion option.
-
-
-
Method Detail
-
getIdentifier
String getIdentifier()
Returns the string identifier for this mapping- Returns:
-
setIdentifier
void setIdentifier(String identifier)
Sets the identifier for this mapping- Parameters:
identifier
-
-
getDescription
String getDescription()
Returns a String description of this mapping- Returns:
-
setDescription
void setDescription(String description)
Sets the description for this mapping- Parameters:
description
-
-
getEntries
List<DSLMappingEntry> getEntries()
Returns the list of entries in this mapping- Returns:
-
addEntry
void addEntry(DSLMappingEntry entry)
Add one entry to the list of the entries- Parameters:
entry
-
-
addEntries
void addEntries(List<DSLMappingEntry> entries)
Adds all entries in the given list to this DSL Mapping- Parameters:
entries
-
-
removeEntry
void removeEntry(DSLMappingEntry entry)
Removes the given entry from the list of entries- Parameters:
entry
-
-
getEntries
List<DSLMappingEntry> getEntries(DSLMappingEntry.Section section)
Returns the list of mappings for the given section- Parameters:
section
-- Returns:
-
setOptions
void setOptions(Collection<String> option)
Sets an expansion option.- Parameters:
option
-
-
getOption
boolean getOption(String option)
Retrieves an an expansion option.- Parameters:
option
-- Returns:
- true if option is set.
-
-