ABLE 2.0.0 07/02/2003 10:25:01

com.ibm.able.rules
Class AbleAssertionClause

java.lang.Object
  |
  +--com.ibm.able.rules.AbleClause
        |
        +--com.ibm.able.rules.AbleAssertionClause
All Implemented Interfaces:
java.io.Serializable

public class AbleAssertionClause
extends AbleClause
implements java.io.Serializable

This class is used to represent an assignment, function call or method invocation used in an assertion rule.

See Also:
AbleAssertionRule, Serialized Form

Fields inherited from class com.ibm.able.rules.AbleClause
myLhs, myOp, myRhs, myRuleRefs
 
Constructor Summary
AbleAssertionClause(AbleLhs theLhs, int theOp, AbleRd theRhs)
          Create a new assertion clause with the specified parts.
 
Method Summary
 java.lang.String arlString()
          Return a formal ARL string that describes this clause.
 java.lang.String getTemplateString(java.util.Vector theTemplateVars)
          Return a formal ARL string, formatted for insertion text for use by templates, that describes this clause.
 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
 

Constructor Detail

AbleAssertionClause

public AbleAssertionClause(AbleLhs theLhs,
                           int theOp,
                           AbleRd theRhs)
Create a new assertion 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.

Method Detail

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.
Overrides:
xmlString in class AbleClause
Returns:
A String that describes this clause in XML.

getTemplateString

public java.lang.String getTemplateString(java.util.Vector theTemplateVars)
Return a formal ARL string, formatted for insertion text for use by templates, that describes this clause.
Parameters:
theTemplateVars - An ordered list of template vars referenced in the rule
Returns:
A formatted template String that describes this clause in formal rule language.

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.

ABLE 2.0.0 07/02/2003 10:25:01

(C) Copyright IBM Corporation 1999, 2003