org.oXML.type
Class AbstractNode
java.lang.Object
org.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
| Fields inherited from interface org.oXML.type.Node |
TYPE |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.oXML.type.Node |
copy |
me
protected AbstractNode me
AbstractNode
public AbstractNode(Type type)
AbstractNode
public AbstractNode(AbstractNode me,
Type type)
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()