|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.brms.client.modeldriven.SuggestionCompletionEngine
public class SuggestionCompletionEngine
An suggestion completion processor. This should be usable in both GWT/Web and the IDE. The data for this can be loaded into this from simple string lists.
Field Summary | |
---|---|
DSLSentence[] |
actionDSLSentences
|
DSLSentence[] |
conditionDSLSentences
DSL language extensions, if needed, if provided by the package. |
String[] |
factTypes
A list of fact types (never fully qualified). |
Map |
fieldsForType
A map of types to the fields. |
Map |
fieldTypes
A map of the Fields to their types, needed for operator completions, as well as other things like rendering strings, dates etc. |
Map |
globalTypes
Contains a map of globals (name is key) and their type (value). |
static String |
TYPE_COLLECTION
These are the explicit types supported |
static String |
TYPE_COMPARABLE
|
static String |
TYPE_NUMERIC
|
static String |
TYPE_STRING
|
Constructor Summary | |
---|---|
SuggestionCompletionEngine()
|
Method Summary | |
---|---|
String[] |
getConditionalElements()
|
String[] |
getConnectiveOperatorCompletions(String factType,
String fieldName)
|
DSLSentence[] |
getDSLActions()
|
DSLSentence[] |
getDSLConditions()
|
String[] |
getFactTypes()
|
String[] |
getFieldCompletions(String factType)
|
String[] |
getFieldCompletionsForGlobalVariable(String varName)
|
String |
getFieldType(String factType,
String fieldName)
|
String[] |
getGlobalVariables()
|
String[] |
getOperatorCompletions(String factType,
String fieldName)
|
boolean |
isGlobalVariable(String variable)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TYPE_COLLECTION
public static final String TYPE_COMPARABLE
public static final String TYPE_STRING
public static final String TYPE_NUMERIC
public String[] factTypes
public Map fieldsForType
public Map fieldTypes
public Map globalTypes
public DSLSentence[] conditionDSLSentences
public DSLSentence[] actionDSLSentences
Constructor Detail |
---|
public SuggestionCompletionEngine()
Method Detail |
---|
public String[] getConditionalElements()
public DSLSentence[] getDSLConditions()
public DSLSentence[] getDSLActions()
public String[] getConnectiveOperatorCompletions(String factType, String fieldName)
public String[] getFactTypes()
public String[] getFieldCompletions(String factType)
public String[] getOperatorCompletions(String factType, String fieldName)
public String getFieldType(String factType, String fieldName)
public boolean isGlobalVariable(String variable)
public String[] getFieldCompletionsForGlobalVariable(String varName)
public String[] getGlobalVariables()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |