| java.lang.Object org.drools.brms.server.util.SuggestionCompletionEngineBuilder
SuggestionCompletionEngineBuilder | public class SuggestionCompletionEngineBuilder (Code) | | A builder to incrementally populate a SuggestionCompletionEngine
author: etirelli |
SuggestionCompletionEngineBuilder | public SuggestionCompletionEngineBuilder()(Code) | | |
addDSLActionSentence | public void addDSLActionSentence(String sentence)(Code) | | Add a DSL sentence for an action.
|
addDSLConditionSentence | public void addDSLConditionSentence(String sentence)(Code) | | Add a DSL sentence for a condition.
|
addFactType | public void addFactType(String factType)(Code) | | Adds a fact type to the engine
Parameters: factType - |
addFieldType | public void addFieldType(String field, String type)(Code) | | Adds a type declaration for a field
Parameters: field - Parameters: type - |
addFieldsForType | public void addFieldsForType(String type, String[] fields)(Code) | | Adds the list of fields for a given type
Parameters: type - Parameters: fields - |
addGlobalType | public void addGlobalType(String global, String type)(Code) | | Adds a global and its corresponding type to the engine
Parameters: global - Parameters: type - |
getInstance | public SuggestionCompletionEngine getInstance()(Code) | | Returns a SuggestionCompletionEngine instance populated with
all the data since last call to newCompletionEngine() method
|
hasFieldsForType | public boolean hasFieldsForType(String type)(Code) | | true if this has the type already registered (field information). |
newCompletionEngine | public void newCompletionEngine()(Code) | | Start the creation of a new SuggestionCompletionEngine
|
|
|