BEA Systems, Inc.

com.beasys.commerce.axiom.reasoning.rules
Class When

java.lang.Object
  |
  +--com.sun.xml.tree.NodeBase
        |
        +--com.sun.xml.tree.ParentNode
              |
              +--com.sun.xml.tree.ElementNode
                    |
                    +--com.beasys.commerce.axiom.reasoning.rules.BasicNode
                          |
                          +--com.beasys.commerce.axiom.reasoning.rules.When

public class When
extends BasicNode

Implementation of the when tag.

See Also:
Serialized Form

Constructor Summary
When()
          Default constructor.
 
Method Summary
 void addSimpleCondition(SimpleCondition aSimpleCondition)
          Add simple condition.
 void attachClassifierBinds()
          Attach classifier binds so that the rule engine has access to the classes.
 void attachContentSelectorBinds()
          Attach classifier binds so that the rule engine has access to the classes.
 SimpleCondition createSimpleCondition(java.lang.String aClassName, java.lang.String aPhrase, java.lang.String aTemplate)
          Create rule and add it as a child to this rule sheet.
 SimpleCondition[] getSimpleConditions()
          Get simple conditions.
 SimpleCondition[] getSimpleConditions(java.lang.String aPhraseType)
          Get simple conditions with a certain phrase type.
 java.lang.String getTransientTagName()
          Get tag name.
 void removeSimpleCondition(SimpleCondition aSimpleCondition)
          Remove simple condition.
 void setSimpleConditions(java.util.LinkedList someSimpleConditions)
          Set simple conditions.
 void setSimpleConditions(SimpleCondition[] someSimpleConditions)
          Set simple conditions.
 
Methods inherited from class com.beasys.commerce.axiom.reasoning.rules.BasicNode
addChild, getChildren, getList, load, loadDOM, removeChild
 
Methods inherited from class com.sun.xml.tree.ElementNode
cloneNode, getAttribute, getAttribute, getAttributeNode, getAttributeNode, getAttributes, getIdAttributeName, getLocalName, getNamespace, getNodeName, getNodeType, getPrefix, getTagName, getUserObject, normalize, removeAttribute, removeAttributeNode, removeWhiteSpaces, setAttribute, setAttributeNode, setIdAttributeName, setPrefix, setReadonly, setUserObject, toString, trimToSize, write, writeXml
 
Methods inherited from class com.sun.xml.tree.ParentNode
appendChild, doneChild, doneParse, getElementsByTagName, getFirstChild, getIndexOf, getLastChild, getLength, hasChildNodes, insertBefore, item, removeChild, replaceChild, startParse, writeChildrenXml
 
Methods inherited from class com.sun.xml.tree.NodeBase
getChildNodes, getInheritedAttribute, getInheritedAttribute, getLanguage, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, isReadonly, setNodeValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

When

public When()
Default constructor.
Method Detail

getTransientTagName

public java.lang.String getTransientTagName()
Get tag name.
Overrides:
getTransientTagName in class BasicNode
Returns:
String

createSimpleCondition

public SimpleCondition createSimpleCondition(java.lang.String aClassName,
                                             java.lang.String aPhrase,
                                             java.lang.String aTemplate)
Create rule and add it as a child to this rule sheet.
Parameters:
aName - the name of the rule to create.
Returns:
Rule

setSimpleConditions

public void setSimpleConditions(java.util.LinkedList someSimpleConditions)
Set simple conditions.
Parameters:
someSimpleConditions -  

setSimpleConditions

public void setSimpleConditions(SimpleCondition[] someSimpleConditions)
Set simple conditions.
Parameters:
someSimpleConditions -  

addSimpleCondition

public void addSimpleCondition(SimpleCondition aSimpleCondition)
Add simple condition.
Parameters:
aSimpleCondition -  

removeSimpleCondition

public void removeSimpleCondition(SimpleCondition aSimpleCondition)
Remove simple condition.
Parameters:
aSimpleCondition -  

getSimpleConditions

public SimpleCondition[] getSimpleConditions()
Get simple conditions.
Returns:
SimpleCondition[]

getSimpleConditions

public SimpleCondition[] getSimpleConditions(java.lang.String aPhraseType)
Get simple conditions with a certain phrase type. e.g. give me all of the type if.classification
Parameters:
aPhraseType - the phrase type, use PHRASE_ contants from RuleConstants.
Returns:
SimpleCondition[]

attachContentSelectorBinds

public void attachContentSelectorBinds()
Attach classifier binds so that the rule engine has access to the classes.

attachClassifierBinds

public void attachClassifierBinds()
Attach classifier binds so that the rule engine has access to the classes.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved