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

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


org.drools.brms.server.util
Class SuggestionCompletionEngineBuilder

java.lang.Object
  extended by org.drools.brms.server.util.SuggestionCompletionEngineBuilder

public class SuggestionCompletionEngineBuilder
extends Object

A builder to incrementally populate a SuggestionCompletionEngine

Author:
etirelli

Constructor Summary
SuggestionCompletionEngineBuilder()
           
 
Method Summary
 void addDSLActionSentence(String sentence)
          Add a DSL sentence for an action.
 void addDSLConditionSentence(String sentence)
          Add a DSL sentence for a condition.
 void addFactType(String factType)
          Adds a fact type to the engine
 void addFieldsForType(String type, String[] fields)
          Adds the list of fields for a given type
 void addFieldType(String field, String type)
          Adds a type declaration for a field
 void addGlobalType(String global, String type)
          Adds a global and its corresponding type to the engine
 SuggestionCompletionEngine getInstance()
          Returns a SuggestionCompletionEngine instance populated with all the data since last call to newCompletionEngine() method
 boolean hasFieldsForType(String type)
           
 void newCompletionEngine()
          Start the creation of a new SuggestionCompletionEngine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuggestionCompletionEngineBuilder

public SuggestionCompletionEngineBuilder()
Method Detail

newCompletionEngine

public void newCompletionEngine()
Start the creation of a new SuggestionCompletionEngine


addFactType

public void addFactType(String factType)
Adds a fact type to the engine

Parameters:
factType -

addFieldsForType

public void addFieldsForType(String type,
                             String[] fields)
Adds the list of fields for a given type

Parameters:
type -
fields -

hasFieldsForType

public boolean hasFieldsForType(String type)
Returns:
true if this has the type already registered (field information).

addFieldType

public void addFieldType(String field,
                         String type)
Adds a type declaration for a field

Parameters:
field -
type -

addGlobalType

public void addGlobalType(String global,
                          String type)
Adds a global and its corresponding type to the engine

Parameters:
global -
type -

addDSLActionSentence

public void addDSLActionSentence(String sentence)
Add a DSL sentence for an action.


addDSLConditionSentence

public void addDSLConditionSentence(String sentence)
Add a DSL sentence for a condition.


getInstance

public SuggestionCompletionEngine getInstance()
Returns a SuggestionCompletionEngine instance populated with all the data since last call to newCompletionEngine() method

Returns:


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