All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.kvisco.xsl.NodeSet

com.kvisco.xsl.NodeSet

public class NodeSet
implements ExprResult

Constructor Index

 o NodeSet()
Creates a new NodeSet with the default Size
 o NodeSet(int)

Method Index

 o add(int, Node)
Adds the specified Node to the NodeSet at the specified index, as long as the Node is not already contained within the set
 o add(Node)
Adds the specified Node to this NodeSet if it is not already contained within in this NodeSet.
 o add(NodeSet)
Copies the Set of nodes from nodeSet into this NodeSet;
 o booleanValue()
Returns the value of this ExprResult as a boolean
 o clear()
Removes all elements from the list
 o contains(Node)
Returns true if the specified Node is contained in the set.
 o copy()
Copies the nodes from this NodeSet into a new NodeSet
 o equals(ExprResult)
 o equals(Object)
Compares the specified object with this NodeSet for equality.
 o get(int)
Returns the Node at the specified position in this NodeSet.
 o getResultType()
Returns the type of ExprResult that a NodeSet represents
 o hashCode()
Returns the hash code value for this NodeSet.
 o indexOf(Node)
Returns the index of the specified Node, or -1 if the Node is not contained in the NodeSet
 o isEmpty()
Returns true if there are no Nodes in the NodeSet.
 o numberValue()
Returns the value of this ExprResult as a double
 o remove(int)
Removes the Node at the specified index from the NodeSet
 o remove(Node)
Removes the the specified Node from the NodeSet
 o size()
Returns the number of elements in the NodeSet
 o toArray()
Returns an array containing all of the nodes in this NodeSet in proper sequence.
 o toArray(Node[])
Returns an array containing all of the nodes in this NodeSet in proper sequence.
 o toJavaObject()
Returns the Java Object this ExprResult represents
 o toString()
Returns the value of this ExprResult as a String

Constructors

 o NodeSet
 public NodeSet()
Creates a new NodeSet with the default Size

 o NodeSet
 public NodeSet(int size)

Methods

 o add
 public boolean add(Node node)
Adds the specified Node to this NodeSet if it is not already contained within in this NodeSet.

Parameters:
node - the Node to add to the NodeSet
Returns:
true if the Node is added to the NodeSet
 o add
 public void add(NodeSet nodeSet)
Copies the Set of nodes from nodeSet into this NodeSet;

 o add
 public boolean add(int index,
                    Node node) throws IndexOutOfBoundsException
Adds the specified Node to the NodeSet at the specified index, as long as the Node is not already contained within the set

Parameters:
node - the Node to add to the NodeSet
Returns:
true if the Node is added to the NodeSet
 o booleanValue
 public boolean booleanValue()
Returns the value of this ExprResult as a boolean

Returns:
the value of this ExprResult as a boolean
 o clear
 public void clear()
Removes all elements from the list

 o copy
 public NodeSet copy()
Copies the nodes from this NodeSet into a new NodeSet

 o contains
 public boolean contains(Node node)
Returns true if the specified Node is contained in the set. if the specfied Node is null, then if the NodeSet contains a null value, true will be returned.

Parameters:
node - the element to search the NodeSet for
Returns:
true if specified Node is contained in the NodeSet
 o equals
 public boolean equals(Object obj)
Compares the specified object with this NodeSet for equality. Returns true if and only if the specified Object is a NodeSet that is the same size as this NodeSet and all of its associated Nodes are contained within this NodeSet.

Returns:
true if and only if the specified Object is a NodeSet that is the same size as this NodeSet and all of its associated Nodes are contained within this NodeSet.
 o equals
 public boolean equals(ExprResult exprResult)
 o get
 public Node get(int index) throws IndexOutOfBoundsException
Returns the Node at the specified position in this NodeSet.

Parameters:
index - the position of the Node to return
 o getResultType
 public short getResultType()
Returns the type of ExprResult that a NodeSet represents

Returns:
the type of ExprResult that a NodeSet represents
See Also:
ExprResult
 o hashCode
 public int hashCode()
Returns the hash code value for this NodeSet. The hash code of a NodeSet is defined to be the sum of the hashCode values for each Node in the set

Returns:
the hash code value for this list
 o indexOf
 public int indexOf(Node node)
Returns the index of the specified Node, or -1 if the Node is not contained in the NodeSet

Parameters:
node - the Node to get the index for
 o isEmpty
 public boolean isEmpty()
Returns true if there are no Nodes in the NodeSet.

Returns:
true if there are no Nodes in the NodeSet.
 o numberValue
 public double numberValue()
Returns the value of this ExprResult as a double

Returns:
the value of this ExprResult as a double
 o remove
 public Node remove(int index)
Removes the Node at the specified index from the NodeSet

Parameters:
index - the position in the NodeSet to remove the Node from
Returns:
the Node that was removed from the list
 o remove
 public boolean remove(Node node)
Removes the the specified Node from the NodeSet

Parameters:
node - the Node to remove from the NodeSet
Returns:
true if the Node was removed from the list
 o size
 public int size()
Returns the number of elements in the NodeSet

Returns:
the number of elements in the NodeSet
 o toArray
 public Node[] toArray()
Returns an array containing all of the nodes in this NodeSet in proper sequence.

Returns:
the array of Nodes of this NodeSet
 o toArray
 public Node[] toArray(Node dst[])
Returns an array containing all of the nodes in this NodeSet in proper sequence.

Returns:
the array of Nodes of this NodeSet
 o toJavaObject
 public Object toJavaObject()
Returns the Java Object this ExprResult represents

Returns:
the Java Object this ExprResult represents

All Packages  Class Hierarchy  This Package  Previous  Next  Index