|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.brms.server.util.SuggestionCompletionEngineBuilder
public class SuggestionCompletionEngineBuilder
A builder to incrementally populate a SuggestionCompletionEngine
| 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 |
|---|
public SuggestionCompletionEngineBuilder()
| Method Detail |
|---|
public void newCompletionEngine()
public void addFactType(String factType)
factType - public void addFieldsForType(String type, String[] fields)
type - fields - public boolean hasFieldsForType(String type)
public void addFieldType(String field, String type)
field - type - public void addGlobalType(String global, String type)
global - type - public void addDSLActionSentence(String sentence)
public void addDSLConditionSentence(String sentence)
public SuggestionCompletionEngine getInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||