站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

DSLMappingEntry (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.lang.dsl
Interface DSLMappingEntry

All Known Implementing Classes:
DefaultDSLMappingEntry

public interface DSLMappingEntry

A single entry in a DSL mapping file

Author:
etirelli

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

KEYWORD

static final DSLMappingEntry.Section KEYWORD

CONDITION

static final DSLMappingEntry.Section CONDITION

CONSEQUENCE

static final DSLMappingEntry.Section CONSEQUENCE

ANY

static final DSLMappingEntry.Section ANY

EMPTY_METADATA

static final DSLMappingEntry.MetaData EMPTY_METADATA
Method Detail

getSection

DSLMappingEntry.Section getSection()
Returns the section this mapping entry refers to

Returns:

getMetaData

DSLMappingEntry.MetaData getMetaData()
Returns the meta data info about this mapping entry

Returns:

getMappingKey

String getMappingKey()
Returns the key of this mapping, i.e., the source that needs to be translated

Returns:

getMappingValue

String getMappingValue()
Returns the result of the translation

Returns:

getKeyPattern

Pattern getKeyPattern()
Returns the compiled pattern based on the given MappingKey

Returns:
the keyPattern

getValuePattern

String getValuePattern()
Returns the transformed mapping value using place holders for variables

Returns:
the valuePattern

getVariables

Map getVariables()
Returns the list of variables found in the given pattern key

Returns:
the variables

setMappingKey

void setMappingKey(String key)
Parameters:
key - the key to set

setSection

void setSection(DSLMappingEntry.Section section)
Parameters:
section - the section to set

setMappingValue

void setMappingValue(String value)
Parameters:
value - the value to set

setMetaData

void setMetaData(DSLMappingEntry.MetaData metadata)
Parameters:
metadata - the metadata to set

getErrors

List getErrors()
Returns a list of errors found in this mapping

Returns:


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.