org.oXML.type
Class NodesetNode

java.lang.Object
  extended byorg.oXML.type.SimpleNode
      extended byorg.oXML.type.NodesetNode
All Implemented Interfaces:
Node

public class NodesetNode
extends SimpleNode


Field Summary
static NodesetNode EMPTY_SET
           
static Type TYPE
           
 
Constructor Summary
NodesetNode()
          create a new, empty NodesetNode that nodes can be added to.
NodesetNode(Nodeset set)
           
NodesetNode(NodesetNode other, boolean deep)
          copy constructor
 
Method Summary
 void addChildNode(Node child)
           
 boolean booleanValue()
           
 byte[] byteValue()
           
 Node copy(boolean deep)
           
 Nodeset getChildNodes()
           
 Nodeset getNodeset()
           
 void insert(int pos, Node child)
           
 double numberValue()
          XPath v1.0 4.4 Number Functions A node-set is first converted to a string as if by a call to the string function and then converted in the same way as a string argument.
 void removeChild(Node child)
           
 java.lang.String stringValue()
          XPath v1.0 4.2 String Functions A node-set is converted to a string by returning the string-value of the node in the node-set that is first in document order.
 java.lang.String toString()
           
 
Methods inherited from class org.oXML.type.SimpleNode
cast, cast, equals, equals, getAttribute, getAttributes, getAttributeValue, getDocument, getName, getNextSibling, getParent, getPreviousSibling, getType, hashCode, setAttribute, setAttribute, setName, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final Type TYPE

EMPTY_SET

public static final NodesetNode EMPTY_SET
Constructor Detail

NodesetNode

public NodesetNode()
create a new, empty NodesetNode that nodes can be added to.


NodesetNode

public NodesetNode(Nodeset set)

NodesetNode

public NodesetNode(NodesetNode other,
                   boolean deep)
copy constructor

Method Detail

getChildNodes

public Nodeset getChildNodes()
Specified by:
getChildNodes in interface Node
Overrides:
getChildNodes in class SimpleNode

getNodeset

public Nodeset getNodeset()

stringValue

public java.lang.String stringValue()
XPath v1.0 4.2 String Functions A node-set is converted to a string by returning the string-value of the node in the node-set that is first in document order. If the node-set is empty, an empty string is returned.

Specified by:
stringValue in interface Node
Overrides:
stringValue in class SimpleNode

booleanValue

public boolean booleanValue()
Specified by:
booleanValue in interface Node
Overrides:
booleanValue in class SimpleNode

byteValue

public byte[] byteValue()
Specified by:
byteValue in interface Node
Overrides:
byteValue in class SimpleNode

numberValue

public double numberValue()
XPath v1.0 4.4 Number Functions A node-set is first converted to a string as if by a call to the string function and then converted in the same way as a string argument.

Specified by:
numberValue in interface Node
Overrides:
numberValue in class SimpleNode

copy

public Node copy(boolean deep)

addChildNode

public void addChildNode(Node child)
Specified by:
addChildNode in interface Node
Overrides:
addChildNode in class SimpleNode

insert

public void insert(int pos,
                   Node child)
Specified by:
insert in interface Node
Overrides:
insert in class SimpleNode

removeChild

public void removeChild(Node child)
Specified by:
removeChild in interface Node
Overrides:
removeChild in class SimpleNode

toString

public java.lang.String toString()
Overrides:
toString in class SimpleNode