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

NLMappingItem - JBoss RULES 3.0.6 API 英文版文档


org.drools.lang.dsl.template
Class NLMappingItem

java.lang.Object
  extended by org.drools.lang.dsl.template.NLMappingItem
All Implemented Interfaces:
java.io.Serializable

public class NLMappingItem
extends java.lang.Object
implements java.io.Serializable

This contains a single mapping from psuedo NL to a grammarTemplate.

See Also:
Serialized Form

Constructor Summary
NLMappingItem(java.lang.String naturalTemplate, java.lang.String targetTemplate, java.lang.String scope)
           
 
Method Summary
 java.lang.String getNaturalTemplate()
           
 java.lang.String getScope()
           
 java.lang.String getTargetTemplate()
           
 void setNaturalTemplate(java.lang.String naturalTemplate)
           
 void setScope(java.lang.String scope)
           
 void setTargetTemplate(java.lang.String targetTemplate)
           
 java.util.List validateTokenUsage()
          Checks for tokens declared in the natural expression but not used in the mapping and tokens used in the mapping but not declared in the natural expression
 java.util.List validateUnmatchingBraces()
          Checks for unmatched brackets and invalid tokens
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NLMappingItem

public NLMappingItem(java.lang.String naturalTemplate,
                     java.lang.String targetTemplate,
                     java.lang.String scope)
Method Detail

setNaturalTemplate

public void setNaturalTemplate(java.lang.String naturalTemplate)

setScope

public void setScope(java.lang.String scope)

setTargetTemplate

public void setTargetTemplate(java.lang.String targetTemplate)

getNaturalTemplate

public java.lang.String getNaturalTemplate()

getTargetTemplate

public java.lang.String getTargetTemplate()

getScope

public java.lang.String getScope()

validateTokenUsage

public java.util.List validateTokenUsage()
Checks for tokens declared in the natural expression but not used in the mapping and tokens used in the mapping but not declared in the natural expression

Parameters:
item -
Returns:

validateUnmatchingBraces

public java.util.List validateUnmatchingBraces()
Checks for unmatched brackets and invalid tokens

Parameters:
item -
Returns: