All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fr.inria.openmath.omapi.implementation.NodeImpl

java.lang.Object
   |
   +----fr.inria.openmath.omapi.implementation.NodeImpl

public class NodeImpl
extends Object
implements Node
This Class is a basic implementation for the fr.inria.openmath.omapi.Node interface.


Constructor Index

 o NodeImpl()
 o NodeImpl(short)

Method Index

 o appendChild(Node)
 o cloneNode(boolean)
 o getAttribute(Symbol)
 o getAttributeNumber()
 o getChildNodes()
 o getComments()
 o getFirstChild()
 o getLastChild()
 o getNextSibling()
 o getNodeName()
 o getNodeType()
 o getNthAttributeName(int)
 o getNthAttributeValue(int)
 o getParent()
 o getPInstructions()
 o getPreviousSibling()
 o hasChildNodes()
 o insertBefore(Node, Node)
 o removeAttribute(Symbol)
 o removeChild(Node)
 o replaceChild(Node, Node)
 o setAttribute(Symbol, Node)
 o setComments(String)
 o setPInstructions(Vector)
 o toString()
 o typeToString(short)
Return the string associated to a node type.

Constructors

 o NodeImpl
 public NodeImpl()
 o NodeImpl
 public NodeImpl(short type)

Methods

 o typeToString
 public String typeToString(short type)
Return the string associated to a node type.

Parameters:
s - Type to translate.
Returns:
The string translation of internal node type.
 o toString
 public String toString()
Overrides:
toString in class Object
See Also:
toString
 o getNodeName
 public String getNodeName()
See Also:
getNodeName
 o getNodeType
 public short getNodeType()
See Also:
getNodeType
 o getParent
 public Node getParent()
See Also:
getParent
 o getChildNodes
 public NodeList getChildNodes()
See Also:
getChildNodes
 o hasChildNodes
 public boolean hasChildNodes()
See Also:
hasChildNodes
 o getFirstChild
 public Node getFirstChild()
See Also:
getFirstChild
 o getLastChild
 public Node getLastChild()
See Also:
getLastChild
 o getPreviousSibling
 public Node getPreviousSibling()
See Also:
getPreviousSibling
 o getNextSibling
 public Node getNextSibling()
See Also:
getNextSibling
 o appendChild
 public Node appendChild(Node newChild) throws OMException
See Also:
appendChild
 o insertBefore
 public Node insertBefore(Node newChild,
                          Node refChild) throws OMException
See Also:
insertBefore
 o replaceChild
 public Node replaceChild(Node newChild,
                          Node oldChild) throws OMException
See Also:
replaceChild
 o removeChild
 public Node removeChild(Node oldChild) throws OMException
See Also:
removeChild
 o cloneNode
 public Node cloneNode(boolean deep)
See Also:
cloneNode
 o getAttributeNumber
 public int getAttributeNumber()
See Also:
getAttributeNumber
 o getNthAttributeValue
 public Node getNthAttributeValue(int index)
See Also:
getNthAttributeValue
 o getNthAttributeName
 public Symbol getNthAttributeName(int index)
See Also:
getNthAttributeName
 o getAttribute
 public Node getAttribute(Symbol name)
See Also:
getAttribute
 o setAttribute
 public void setAttribute(Symbol name,
                          Node value)
See Also:
setAttribute
 o removeAttribute
 public Node removeAttribute(Symbol name)
See Also:
removeAttribute
 o getComments
 public String getComments()
See Also:
getComments
 o setComments
 public String setComments(String comments)
See Also:
setComments
 o getPInstructions
 public Vector getPInstructions()
See Also:
getPInstructions
 o setPInstructions
 public Vector setPInstructions(Vector pis)
See Also:
setPInstructions

All Packages  Class Hierarchy  This Package  Previous  Next  Index