BEA Systems, Inc.

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

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
Direct Known Subclasses:
Assert, BasicTextNode, Cast, Constant, NamedNode, New, RuleSheet, SimpleCondition, Then, When

public abstract class BasicNode
extends com.sun.xml.tree.ElementNode
implements java.io.Serializable, RuleTagConstants, RuleConstants

All objects within the model should extend this class so that we can use the reflection methods to write between the DOM and the light weight objects.

See Also:
Serialized Form

Fields inherited from interface com.beasys.commerce.axiom.reasoning.rules.RuleTagConstants
ATTRIBUTE_NAME_BINDING_CLASS, ATTRIBUTE_NAME_TAG_NAME, CLASS_NAME_XML_DEFAULT, FIELD_PREFIX, TAG_ARGUMENTS, TAG_ASSERT, TAG_BINARY_OP, TAG_CAST, TAG_COMMENT, TAG_CONSTANT, TAG_DESCRIPTION, TAG_DISPLAY_ITEM, TAG_METHOD, TAG_NAME_BINDING, TAG_NAME_WILDCARD, TAG_NARY_OP, TAG_NEW, TAG_RULE, TAG_RULESHEET, TAG_SIMPLE_CONDITION, TAG_THEN, TAG_UNARY_OP, TAG_VARIABLE, TAG_WHEN
 
Fields inherited from interface com.beasys.commerce.axiom.reasoning.rules.RuleConstants
BIND_CONTENT, BIND_REQUEST, BIND_SESSION, BIND_SUCCESSOR, BIND_TIMESTAMP, BIND_UNKNOWN, BIND_USER, CLASS_CLASSIFIER, CLASS_CONFIGURABLE_ENTITY, CLASS_CONTENT, CLASS_CONTENT_SELECTOR, CLASS_REQUEST, CLASS_SESSION, CLASS_SUCCESSOR, CLASS_TIMESTAMP, CLASS_USER, GET_PROPERTY, PHRASE_AND_WHEN, PHRASE_CLASSIFICATION, PHRASE_IF_ATTR, PHRASE_IF_USER, PHRASE_THEN_CHOOSE, RULE_TYPE_CLASSIFIER, RULE_TYPE_CONTENT_SELECTOR, RULES_DTD, SCHEMA_CLASSES, SCHEMA_GROUPS, SDF, TEMPLATE_ATTR_COMP_CONSTANT, THEN_PHRASE_CONST, THEN_PHRASE_DATE, THEN_PHRASE_PROPERTY
 
Constructor Summary
BasicNode()
          Default constructor.
 
Method Summary
 void addChild(BasicNode aNode)
          Add child.
 java.util.LinkedList getChildren()
          Get children.
 java.lang.Object[] getList(java.lang.Class aClass, java.lang.Object[] anArray)
          Get all of the objects of the given class out of the child list.
abstract  java.lang.String getTransientTagName()
          Get tag name.
 void load()
          Load data from the DOM into a (basically) light weight object.
 void loadDOM(BasicNode aBasicNode)
          From the (basically) lightweight object write back to the DOM.
 void removeChild(BasicNode aNode)
          Remove child.
 
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

BasicNode

public BasicNode()
Default constructor.
Method Detail

getList

public java.lang.Object[] getList(java.lang.Class aClass,
                                  java.lang.Object[] anArray)
Get all of the objects of the given class out of the child list.
Parameters:
aClass - the class to look for.
anArray - the array (empty) for the items to be passed back.
Returns:
Object[] castable array of objects that were requested from the child list.

load

public void load()
Load data from the DOM into a (basically) light weight object.

loadDOM

public void loadDOM(BasicNode aBasicNode)
From the (basically) lightweight object write back to the DOM.
Parameters:
aBasicNode - the lightweight object to read from.

addChild

public void addChild(BasicNode aNode)
Add child.
Parameters:
aNode -  

removeChild

public void removeChild(BasicNode aNode)
Remove child.
Parameters:
aNode -  

getChildren

public java.util.LinkedList getChildren()
Get children.
Returns:
LinkedList

getTransientTagName

public abstract java.lang.String getTransientTagName()
Get tag name. This is so that we can dynamically create the DOM from the base without having to know any types.
Returns:
String the tag name, e.g. rule.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved