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

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


org.drools.brms.client.modeldriven
Class SuggestionCompletionEngine

java.lang.Object
  extended by org.drools.brms.client.modeldriven.SuggestionCompletionEngine
All Implemented Interfaces:
PortableObject

public class SuggestionCompletionEngine
extends Object
implements PortableObject

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.

Author:
Michael Neale

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

TYPE_COLLECTION

public static final String TYPE_COLLECTION
These are the explicit types supported

See Also:
Constant Field Values

TYPE_COMPARABLE

public static final String TYPE_COMPARABLE
See Also:
Constant Field Values

TYPE_STRING

public static final String TYPE_STRING
See Also:
Constant Field Values

TYPE_NUMERIC

public static final String TYPE_NUMERIC
See Also:
Constant Field Values

factTypes

public String[] factTypes
A list of fact types (never fully qualified).


fieldsForType

public Map fieldsForType
A map of types to the fields. key is type, value is (String[] of fields)


fieldTypes

public Map fieldTypes
A map of the Fields to their types, needed for operator completions, as well as other things like rendering strings, dates etc. This is in the format of: { 'Type.field' => 'typename' }. Should not be the exact type, perhaps just a high level interface, eg "Comparable".


globalTypes

public Map globalTypes
Contains a map of globals (name is key) and their type (value).


conditionDSLSentences

public DSLSentence[] conditionDSLSentences
DSL language extensions, if needed, if provided by the package.


actionDSLSentences

public DSLSentence[] actionDSLSentences
Constructor Detail

SuggestionCompletionEngine

public SuggestionCompletionEngine()
Method Detail

getConditionalElements

public String[] getConditionalElements()

getDSLConditions

public DSLSentence[] getDSLConditions()

getDSLActions

public DSLSentence[] getDSLActions()

getConnectiveOperatorCompletions

public String[] getConnectiveOperatorCompletions(String factType,
                                                 String fieldName)

getFactTypes

public String[] getFactTypes()

getFieldCompletions

public String[] getFieldCompletions(String factType)

getOperatorCompletions

public String[] getOperatorCompletions(String factType,
                                       String fieldName)

getFieldType

public String getFieldType(String factType,
                           String fieldName)

isGlobalVariable

public boolean isGlobalVariable(String variable)

getFieldCompletionsForGlobalVariable

public String[] getFieldCompletionsForGlobalVariable(String varName)

getGlobalVariables

public String[] getGlobalVariables()


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