Drools Workbench - Data Model API 6.2.1-SNAPSHOT

org.drools.workbench.models.datamodel.rule
Class DSLSentence

java.lang.Object
  extended by org.drools.workbench.models.datamodel.rule.DSLSentence
All Implemented Interfaces:
IAction, IPattern

public class DSLSentence
extends Object
implements IPattern, IAction

This represents a DSL sentence.


Field Summary
static String BOOLEAN_TAG
           
static String CUSTOM_FORM_TAG
           
static String DATE_TAG
           
static String ENUM_TAG
           
 
Constructor Summary
DSLSentence()
           
 
Method Summary
 DSLSentence copy()
          This is used by the GUI when adding a sentence to LHS or RHS.
 boolean equals(Object o)
           
 String getDefinition()
           
 String getDrl()
           
 Map<String,String> getEnumFieldValueMap()
           
 List<DSLVariableValue> getValues()
           
 int hashCode()
           
 String interpolate()
          This will strip off any "{" stuff, substituting values accordingly
 void setDefinition(String definition)
           
 void setDrl(String drl)
           
 String toString()
          This will strip off any residual "{" stuff...
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ENUM_TAG

public static final String ENUM_TAG
See Also:
Constant Field Values

DATE_TAG

public static final String DATE_TAG
See Also:
Constant Field Values

BOOLEAN_TAG

public static final String BOOLEAN_TAG
See Also:
Constant Field Values

CUSTOM_FORM_TAG

public static final String CUSTOM_FORM_TAG
See Also:
Constant Field Values
Constructor Detail

DSLSentence

public DSLSentence()
Method Detail

toString

public String toString()
This will strip off any residual "{" stuff...

Overrides:
toString in class Object

interpolate

public String interpolate()
This will strip off any "{" stuff, substituting values accordingly


copy

public DSLSentence copy()
This is used by the GUI when adding a sentence to LHS or RHS.

Returns:

getDrl

public String getDrl()

getDefinition

public String getDefinition()

setDrl

public void setDrl(String drl)

setDefinition

public void setDefinition(String definition)

getValues

public List<DSLVariableValue> getValues()

getEnumFieldValueMap

public Map<String,String> getEnumFieldValueMap()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Drools Workbench - Data Model API 6.2.1-SNAPSHOT

Copyright © 2001-2016 JBoss by Red Hat. All Rights Reserved.