BEA Systems, Inc.

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

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.RuleSheet

public class RuleSheet
extends BasicNode

Implementation of the rulesheet tag.

See Also:
Serialized Form

Field Summary
 java.lang.String ATTRIBUTE_editor
           
 java.lang.String ATTRIBUTE_editorVersion
           
 java.lang.String ATTRIBUTE_userPropertySet
           
 
Constructor Summary
RuleSheet()
          Default constructor.
 
Method Summary
 Rule createRule(java.lang.String aName)
          Create rule and add it as a child to this rule sheet.
 boolean doesClassifierRuleExist(java.lang.String aRuleName)
          Deprecated. use doesRuleForTypeExist(aRuleName, RULE_TYPE_CLASSIFIER);
 boolean doesContentSelectorRuleExist(java.lang.String aRuleName)
          Deprecated. use doesRuleForTypeExist(aRuleName, RULE_TYPE_CONTENT_SELECTOR);
 boolean doesRuleForTypeExist(java.lang.String aRuleName, java.lang.String aType)
          Does rule for type exist.
 Rule[] getClassifierRules()
          Deprecated. use getRulesForType(RuleConstants.RULE_TYPE_CLASSIFIER)
 Rule[] getContentSelectorRules()
          Deprecated. use getRulesForType(RuleConstants.RULE_TYPE_CONTENT_SELECTOR)
 java.lang.String getDescription()
          Get description.
 java.lang.String getEditor()
          Get editor.
 java.lang.String getEditorVersion()
          Get editor version.
 java.lang.String getName()
          Get name.
 Rule[] getRules()
          Get rules.
 Rule[] getRulesForType(java.lang.String aType)
          Get rules for type.
 java.lang.String getTransientTagName()
          Get tag name.
 java.lang.String getUserPropertySet()
          Get user property set.
 void removeRule(Rule aRule)
          Remove rule.
 void removeRule(java.lang.String aName)
          Remove rule.
 void setDescription(java.lang.String aDescription)
          Set description.
 void setEditor(java.lang.String anEditor)
          Set editor.
 void setEditorVersion(java.lang.String aVersion)
          Set editor version.
 void setName(java.lang.String aName)
          Set name.
 void setUserPropertySet(java.lang.String aPropertySet)
          Set user property set.
 
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
 

Field Detail

ATTRIBUTE_editor

public java.lang.String ATTRIBUTE_editor

ATTRIBUTE_editorVersion

public java.lang.String ATTRIBUTE_editorVersion

ATTRIBUTE_userPropertySet

public java.lang.String ATTRIBUTE_userPropertySet
Constructor Detail

RuleSheet

public RuleSheet()
Default constructor.
Method Detail

setName

public void setName(java.lang.String aName)
Set name.
Parameters:
aName -  

getName

public java.lang.String getName()
Get name.
Returns:
String

getDescription

public java.lang.String getDescription()
Get description.
Returns:
String

setDescription

public void setDescription(java.lang.String aDescription)
Set description.
Parameters:
aDescription -  

getEditor

public java.lang.String getEditor()
Get editor.
Returns:
String

setEditor

public void setEditor(java.lang.String anEditor)
Set editor.
Parameters:
anEditor -  

getEditorVersion

public java.lang.String getEditorVersion()
Get editor version.
Returns:
String

setEditorVersion

public void setEditorVersion(java.lang.String aVersion)
Set editor version.
Parameters:
aVersion -  

setUserPropertySet

public void setUserPropertySet(java.lang.String aPropertySet)
Set user property set.
Parameters:
aPropertySet -  

getUserPropertySet

public java.lang.String getUserPropertySet()
Get user property set.
Returns:
String

getRules

public Rule[] getRules()
Get rules.
Returns:
Rule[]

getRulesForType

public Rule[] getRulesForType(java.lang.String aType)
Get rules for type.
Parameters:
aType - a type specified in RuleConstants.RULE_TYPE_...
Returns:
Rule[]

getClassifierRules

public Rule[] getClassifierRules()
Deprecated. use getRulesForType(RuleConstants.RULE_TYPE_CLASSIFIER)

Get classifier rules.
Returns:
Rule[]

getContentSelectorRules

public Rule[] getContentSelectorRules()
Deprecated. use getRulesForType(RuleConstants.RULE_TYPE_CONTENT_SELECTOR)

Get content selector rules.
Returns:
Rule[]

doesRuleForTypeExist

public boolean doesRuleForTypeExist(java.lang.String aRuleName,
                                    java.lang.String aType)
Does rule for type exist.
Parameters:
aRuleName -  
aType - a type specified in RuleConstants.RULE_TYPE_...
Returns:
boolean

doesClassifierRuleExist

public boolean doesClassifierRuleExist(java.lang.String aRuleName)
Deprecated. use doesRuleForTypeExist(aRuleName, RULE_TYPE_CLASSIFIER);

Does classifier rule exist.
Parameters:
aRuleName -  
Returns:
boolean

doesContentSelectorRuleExist

public boolean doesContentSelectorRuleExist(java.lang.String aRuleName)
Deprecated. use doesRuleForTypeExist(aRuleName, RULE_TYPE_CONTENT_SELECTOR);

Does content selector rule exist.
Parameters:
aRuleName -  
Returns:
boolean

createRule

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

removeRule

public void removeRule(Rule aRule)
Remove rule.
Parameters:
aRule -  

removeRule

public void removeRule(java.lang.String aName)
Remove rule.
Parameters:
aName -  

getTransientTagName

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

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved