|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.able.rules.AbleRule
com.ibm.able.rules.AbleSwitchRule
This class holds the expressions and actions used in a 'switch' scripting rule. The integer expression can be an arbitrarily complex expression that must produce an integer and the then{} and else{} sections can contain one or more consequent (action) clauses.
| Field Summary | |
|---|---|
protected AbleSwitchStatement |
mySwitchStatement
mySwitchStatement is an ABLE statement that is evaluated when this rule is fired. |
| Fields inherited from class com.ibm.able.rules.AbleRule |
|---|
myBooleanTruth, myBreakpoint, myComment, myEnabled, myFinalFlag, myFiredCount, myFiredFlag, myId, myLabel, myLocation, myPreConditions, myPriority, myPrompt, myProperties, myRdRefs, myRuleBlock, myRuleSet, myTemplateFlag, myTemplateName, myTemplateValues, myWrRefs, PriorityDefault, RuleIdInitial |
| Constructor Summary | |
|---|---|
AbleSwitchRule(java.lang.String theLabel,
AbleRd thePriority)
Creates a new switch rule with the specified label and priority. |
|
AbleSwitchRule(java.lang.String theLabel,
AbleRd thePriority,
AbleSwitchStatement theSwitchStatement)
Creates a new switch rule with the specified label, priority, and switch statement. |
|
| Method Summary | |
|---|---|
java.lang.String |
arlString()
Returns a formal ABLE Rule Language (ARL) string representation of this rule. |
java.lang.String |
armlString()
Returns a formal ABLE Rule Markup Language (ARML) string representation of this rule. |
AbleSwitchStatement |
getSwitchStatement()
Retrieves this rule's switch statement. |
java.lang.String |
getTemplateString(java.util.Vector theTemplateVars)
Retrieve a text format string for use by rule templates. |
boolean |
setSwitchStatement(AbleSwitchStatement theSwitchStatement)
Sets this rule's switch statement to be the specified switch statement, but only if a switch statement does not already exist for this rule. |
java.lang.String |
toString()
Retrieves a string describing (the contents of) the object. |
java.lang.String |
traceString(int theTraceStringFlavor)
Retrieves a string describing (the contents of) the object. |
java.lang.String |
xmlString()
Returns a formal XML string representation of this rule. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected AbleSwitchStatement mySwitchStatement
| Constructor Detail |
public AbleSwitchRule(java.lang.String theLabel,
AbleRd thePriority,
AbleSwitchStatement theSwitchStatement)
theLabel - The unique label, or name, of this rule.thePriority - The priority of this rule.theSwitchStatement - An AbleSwitchStatement that defines the content of
this rule.
public AbleSwitchRule(java.lang.String theLabel,
AbleRd thePriority)
setSwitchStatement(AbleSwitchStatement)
to set the switch statement into the rule before the rule is
processed.
theLabel - The unique label, or name, of this rule.thePriority - The priority of this rule.| Method Detail |
public boolean setSwitchStatement(AbleSwitchStatement theSwitchStatement)
theSwitchStatement - An AbleSwitchStatement that defines the content of
this rule.
public AbleSwitchStatement getSwitchStatement()
public java.lang.String arlString()
arlString in class AbleRulepublic java.lang.String armlString()
armlString in class AbleRulepublic java.lang.String xmlString()
xmlString in class AbleRule
public java.lang.String getTemplateString(java.util.Vector theTemplateVars)
throws AbleDataException
getTemplateString in class AbleRuletheTemplateVars - An ordered list of template variables referenced by this rule.
AbleDataExceptionAbleRuleTemplatepublic java.lang.String toString()
toString in class AbleRulepublic java.lang.String traceString(int theTraceStringFlavor)
traceString in class AbleRuletheTraceStringFlavor - An Able.TraceStringFlavor value.
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||