com.ibm.able.rules
Class AbleConsequentClause
java.lang.Object
|
+--com.ibm.able.rules.AbleClause
|
+--com.ibm.able.rules.AbleConsequentClause
- All Implemented Interfaces:
- java.io.Serializable
- public class AbleConsequentClause
- extends AbleClause
- implements java.io.Serializable
This class represents an action (assignment, function call or method
invocation) in a rule. For example, "... then risk = high".
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
arlString()
Return a formal ARL string that describes this
clause. |
AbleConsequentClause |
createMatchClause(java.util.Hashtable replacementVars)
Create a duplicate of this clause using replacement vars |
java.lang.String |
getTemplateString(java.util.Vector theTemplateVars)
Retrieve a text format string for use by rule templates. |
java.lang.String |
toString()
Retrieve a string describing (the contents of) the object. |
java.lang.String |
traceString(int theTraceStringFlavor)
Retrieve a string describing (the contents of) the object. |
java.lang.String |
xmlString()
Return a formal XML string that describes this clause. |
Methods inherited from class com.ibm.able.rules.AbleClause |
addRuleRef, Copyright, equals, getLhs, getLhsReferent, getOp, getOpAsString, getReferent, getReferents, getRhs, getRhsReferent, getRule, getRuleRefs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbleConsequentClause
public AbleConsequentClause(AbleLhs theLhs,
int theOp,
AbleRd theRhs)
- Create a new consequent clause with the specified parts.
- Parameters:
theLhs
- The left-hand side of the clause.
theOp
- A relational operator with which to evaluate the two
sides, or operands, of this clause. The value must be
an AbleData.<Operator> assignment constant.
theRhs
- The right-hand side of the clause.
createMatchClause
public AbleConsequentClause createMatchClause(java.util.Hashtable replacementVars)
- Create a duplicate of this clause using replacement vars
arlString
public java.lang.String arlString()
- Return a formal ARL string that describes this
clause.
- Overrides:
arlString
in class AbleClause
- Returns:
- A String that describes this clause in formal rule
language.
xmlString
public java.lang.String xmlString()
- Return a formal XML string that describes this clause.
Note: this is written out as an "expression"
- Overrides:
xmlString
in class AbleClause
- Returns:
- A String that describes this clause in XML.
getTemplateString
public java.lang.String getTemplateString(java.util.Vector theTemplateVars)
- Retrieve a text format string for use by rule templates. The string
contains "{n}" strings, where the index 'n' corresponds to the
template variables defined in the rule template. This string is
based on the standard arlString() representation of the rule.
After replacement of the template variable values, the resulting
string must be a valid ARL format string that can be parsed.
- Parameters:
theTemplateVars
- An ordered list of template variables referenced by this rule.- Returns:
- A Text format string used to create a new rule instance.
- See Also:
AbleRuleTemplate
toString
public java.lang.String toString()
- Retrieve a string describing (the contents of) the object.
- Overrides:
toString
in class AbleClause
- Returns:
- A String containing the current contents of the object.
traceString
public java.lang.String traceString(int theTraceStringFlavor)
- Retrieve a string describing (the contents of) the object.
- Overrides:
traceString
in class AbleClause
- Parameters:
theFlavor
- An Able.TraceStringFlavor value.
- Returns:
- A String containing the current contents of the object.
(C) Copyright IBM Corporation 1999, 2003