All Packages Class Hierarchy This Package Previous Next Index
Class com.kvisco.xsl.NodeSet
com.kvisco.xsl.NodeSet
- public class NodeSet
- implements ExprResult
-
NodeSet()
- Creates a new NodeSet with the default Size
-
NodeSet(int)
-
-
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
-
add(Node)
- Adds the specified Node to this NodeSet if it is not already
contained within in this NodeSet.
-
add(NodeSet)
- Copies the Set of nodes from nodeSet into this NodeSet;
-
booleanValue()
- Returns the value of this ExprResult as a boolean
-
clear()
- Removes all elements from the list
-
contains(Node)
- Returns true if the specified Node is contained in the set.
-
copy()
- Copies the nodes from this NodeSet into a new NodeSet
-
equals(ExprResult)
-
-
equals(Object)
- Compares the specified object with this NodeSet for equality.
-
get(int)
- Returns the Node at the specified position in this NodeSet.
-
getResultType()
- Returns the type of ExprResult that a NodeSet represents
-
hashCode()
- Returns the hash code value for this NodeSet.
-
indexOf(Node)
- Returns the index of the specified Node,
or -1 if the Node is not contained in the NodeSet
-
isEmpty()
- Returns true if there are no Nodes in the NodeSet.
-
numberValue()
- Returns the value of this ExprResult as a double
-
remove(int)
- Removes the Node at the specified index from the NodeSet
-
remove(Node)
- Removes the the specified Node from the NodeSet
-
size()
- Returns the number of elements in the NodeSet
-
toArray()
- Returns an array containing all of the nodes in this NodeSet
in proper sequence.
-
toArray(Node[])
- Returns an array containing all of the nodes in this NodeSet
in proper sequence.
-
toJavaObject()
- Returns the Java Object this ExprResult represents
-
toString()
- Returns the value of this ExprResult as a String
NodeSet
public NodeSet()
- Creates a new NodeSet with the default Size
NodeSet
public NodeSet(int size)
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
add
public void add(NodeSet nodeSet)
- Copies the Set of nodes from nodeSet into this NodeSet;
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
booleanValue
public boolean booleanValue()
- Returns the value of this ExprResult as a boolean
- Returns:
- the value of this ExprResult as a boolean
clear
public void clear()
- Removes all elements from the list
copy
public NodeSet copy()
- Copies the nodes from this NodeSet into a new NodeSet
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
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.
equals
public boolean equals(ExprResult exprResult)
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
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
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
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
isEmpty
public boolean isEmpty()
- Returns true if there are no Nodes in the NodeSet.
- Returns:
- true if there are no Nodes in the NodeSet.
numberValue
public double numberValue()
- Returns the value of this ExprResult as a double
- Returns:
- the value of this ExprResult as a double
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
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
size
public int size()
- Returns the number of elements in the NodeSet
- Returns:
- the number of elements in the NodeSet
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
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
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