|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.rules.AbleRule | +--com.ibm.able.rules.AbleAssertionRule
This class represents a rule comprised of a single assignment statement, function call or method invocation. It contains a single assertion clause.
AbleAssertionClause
, Serialized FormField Summary | |
---|---|
protected AbleAssertionClause |
myAssertion
myAssertion is the assertion clause representing an assignment, function call, or method invocation. |
Fields inherited from class com.ibm.able.rules.AbleRule |
---|
myBooleanTruth, myBreakpoint, myComment, myEnabled, myFiredCount, myFiredFlag, myId, myLabel, myLocation, myPreConditions, myPriority, myPrompt, myRdRefs, myRuleSet, myTemplateFlag, myTemplateName, myTemplateValues, myWrRefs, PriorityDefault, RuleIdInitial |
Constructor Summary | |
---|---|
AbleAssertionRule(int theId,
java.lang.String theLabel,
AbleAssertionClause theAssertion,
AbleRuleSet theRuleSet)
Create a new assertion rule with a default priority. |
|
AbleAssertionRule(int theId,
java.lang.String theLabel,
AbleRd thePriority,
AbleAssertionClause theAssertion,
AbleRuleSet theRuleSet)
Create a new assertion rule with the specified priority. |
|
AbleAssertionRule(java.lang.String theLabel,
AbleAssertionClause theAssertion)
Create a new assertion rule with a default priority. |
|
AbleAssertionRule(java.lang.String theLabel,
AbleRd thePriority,
AbleAssertionClause theAssertion)
Create a new assertion rule with the specified priority. |
Method Summary | |
---|---|
java.lang.String |
arlString()
Return a formal Able Rule Language (ARL) string. |
AbleAssertionClause |
getAssertion()
Retrieve the rule's assertion clause, if any. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected AbleAssertionClause myAssertion
Constructor Detail |
public AbleAssertionRule(java.lang.String theLabel, AbleAssertionClause theAssertion)
theLabel
- The unique label, or name, of this rule.
theAssertion
- A single assignment statement that defines this
assertion rule.
public AbleAssertionRule(java.lang.String theLabel, AbleRd thePriority, AbleAssertionClause theAssertion)
theLabel
- The unique label, or name, of this rule.
thePriority
- The priority of this rule.
theAssertion
- A single assignment statement that defines this
assertion rule.
public AbleAssertionRule(int theId, java.lang.String theLabel, AbleAssertionClause theAssertion, AbleRuleSet theRuleSet)
theId
- The unique Id of this rule.
theLabel
- The unique label, or name, of this rule.
theAssertion
- A single assignment statement that defines this
assertion rule.
theRuleSet
- The ruleset to which this rule belongs.
public AbleAssertionRule(int theId, java.lang.String theLabel, AbleRd thePriority, AbleAssertionClause theAssertion, AbleRuleSet theRuleSet)
theId
- The unique Id of this rule.
theLabel
- The unique label, or name, of this rule.
thePriority
- The priority of this rule.
theAssertion
- A single assignment statement that defines this
assertion rule.
theRuleSet
- The ruleset to which this rule belongs.
Method Detail |
public final AbleAssertionClause getAssertion()
public java.lang.String arlString()
arlString
in class AbleRule
public java.lang.String xmlString()
xmlString
in class AbleRule
public java.lang.String getTemplateString(java.util.Vector theTemplateVars) throws AbleDataException
getTemplateString
in class AbleRule
theTemplateVars
- An ordered list of template variables referenced by this rule.AbleRuleTemplate
public java.lang.String toString()
toString
in class AbleRule
public java.lang.String traceString(int theTraceStringFlavor)
traceString
in class AbleRule
theFlavor
- An Able.TraceStringFlavor value.
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |