org.oXML.type
Class AbstractNode

java.lang.Object
  extended byorg.oXML.type.AbstractNode
All Implemented Interfaces:
Node
Direct Known Subclasses:
ArrayNode, AssertionErrorNode, AttributeNode, BooleanNode, BytesNode, CommentNode, ConnectionNode, DocumentNode, DocumentTypeNode, DynamicNode, ElementNode, EntityNode, ExceptionHandlerNode, ExceptionNode, ListNode, MapNode, MultiMapNode, NameNode, NodeNode, NotationNode, NumberNode, ParentNode, ProcessingInstructionNode, ProgramNode, RegularExpressionNode, StringNode, SystemErrorNode, TableNode, ThreadNode

public abstract class AbstractNode
extends java.lang.Object
implements Node


Field Summary
protected  AbstractNode me
           
 
Fields inherited from interface org.oXML.type.Node
TYPE
 
Constructor Summary
AbstractNode(AbstractNode me, Type type)
           
AbstractNode(Type type)
           
 
Method Summary
 void addChildNode(Node child)
           
 boolean booleanValue()
           
 byte[] byteValue()
           
 Node cast()
          downcast to actual type
 Node cast(Type type)
          cast to specified type
 boolean equals(Node other)
          identity function
 boolean equals(java.lang.Object other)
           
 AttributeNode getAttribute(Name name)
           
 java.util.Collection getAttributes()
           
 java.lang.String getAttributeValue(Name name)
           
 Nodeset getChildNodes()
           
 Node getDocument()
           
 AbstractNode getInstance(Name name)
           
 Name getName()
           
 Node getNextSibling()
           
 Node getParent()
           
 Node getPreviousSibling()
           
 Type getType()
          get the type of this Node
 int hashCode()
           
 boolean hasInstance(Name name)
           
 void init()
           
 void insert(int pos, Node child)
           
 double numberValue()
           
 void removeChild(Node child)
           
 void setAttribute(AttributeNode attribute)
           
 void setAttribute(Name name, java.lang.String value)
           
 void setInstance(Name name, AbstractNode instance)
           
 void setName(Name name)
           
 void setParent(Node parent)
           
 java.lang.String stringValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.oXML.type.Node
copy
 

Field Detail

me

protected AbstractNode me
Constructor Detail

AbstractNode

public AbstractNode(Type type)

AbstractNode

public AbstractNode(AbstractNode me,
                    Type type)
Method Detail

getType

public final Type getType()
Description copied from interface: Node
get the type of this Node

Specified by:
getType in interface Node

cast

public Node cast(Type type)
Description copied from interface: Node
cast to specified type

Specified by:
cast in interface Node

cast

public Node cast()
Description copied from interface: Node
downcast to actual type

Specified by:
cast in interface Node

getInstance

public AbstractNode getInstance(Name name)

hasInstance

public boolean hasInstance(Name name)

setInstance

public void setInstance(Name name,
                        AbstractNode instance)

init

public void init()

numberValue

public final double numberValue()
Specified by:
numberValue in interface Node

booleanValue

public final boolean booleanValue()
Specified by:
booleanValue in interface Node

byteValue

public final byte[] byteValue()
Specified by:
byteValue in interface Node

stringValue

public final java.lang.String stringValue()
Specified by:
stringValue in interface Node

getChildNodes

public final Nodeset getChildNodes()
Specified by:
getChildNodes in interface Node

getParent

public final Node getParent()
Specified by:
getParent in interface Node

setParent

public final void setParent(Node parent)
Specified by:
setParent in interface Node

getAttribute

public final AttributeNode getAttribute(Name name)
Specified by:
getAttribute in interface Node

getAttributes

public java.util.Collection getAttributes()
Specified by:
getAttributes in interface Node

getDocument

public final Node getDocument()
Specified by:
getDocument in interface Node

getName

public final Name getName()
Specified by:
getName in interface Node

setName

public final void setName(Name name)
Specified by:
setName in interface Node

setAttribute

public final void setAttribute(AttributeNode attribute)
Specified by:
setAttribute in interface Node

getNextSibling

public final Node getNextSibling()
Specified by:
getNextSibling in interface Node

getPreviousSibling

public final Node getPreviousSibling()
Specified by:
getPreviousSibling in interface Node

addChildNode

public final void addChildNode(Node child)
Specified by:
addChildNode in interface Node

removeChild

public final void removeChild(Node child)
Specified by:
removeChild in interface Node

insert

public final void insert(int pos,
                         Node child)
Specified by:
insert in interface Node

setAttribute

public void setAttribute(Name name,
                         java.lang.String value)
Specified by:
setAttribute in interface Node

getAttributeValue

public java.lang.String getAttributeValue(Name name)
Specified by:
getAttributeValue in interface Node

equals

public boolean equals(java.lang.Object other)
Specified by:
equals in interface Node

equals

public boolean equals(Node other)
identity function

Specified by:
equals in interface Node

toString

public java.lang.String toString()

hashCode

public int hashCode()