|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.xml.xpath.NodeSet
com.novell.xml.xpath.InsertionOrderNodeSet
Subclass of NodeSet that orders nodes based on order of insertion
Nested Class Summary |
Nested classes inherited from class com.novell.xml.xpath.NodeSet |
NodeSet.Mark |
Field Summary |
Fields inherited from class com.novell.xml.xpath.NodeSet |
argType, nodeComparator, set |
Fields inherited from interface com.novell.xml.xpath.ExpressionValue |
BOOLEAN, EXTENDED, NATIVE, NODE_SET, NUMBER, STRING |
Fields inherited from interface com.novell.xml.xpath.ContextNodeList |
DOCUMENT_ORDER, REVERSE_DOCUMENT_ORDER, UNKNOWN_ORDER |
Constructor Summary | |
InsertionOrderNodeSet()
Construct a new, empty node-set |
|
InsertionOrderNodeSet(Collection copy)
Construct a new node-set and initialize it to contain the members in the passed collection |
|
InsertionOrderNodeSet(NodeSet copy)
Construct a new node-set with the same content as the passed node-set |
Method Summary | |
void |
castFrom(Object type)
Convert from a different type of expression value to the NodeSet type NOTE: this will ALWAYS throw an exception (unless the "from" type is a node-set), since there is no type type can be converted to a node-set |
int |
order()
Return order in which nodes are returned from first()-next() |
void |
union(NodeSet rhs)
Perform a union operation between this node-set and another node-set. |
Methods inherited from class com.novell.xml.xpath.NodeSet |
add, add, contains, count, dump, dump, evaluate, first, getArgType, getBooleanValue, getMark, getNativeValue, getNodeSetValue, getNumberValue, getResultType, getStringValue, getValueType, isConstant, isEmpty, next, position, registerForReset, remove, returnToMark, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public InsertionOrderNodeSet()
public InsertionOrderNodeSet(Collection copy) throws Exception
copy
- A collection of Node objects
Exception
- Errorpublic InsertionOrderNodeSet(NodeSet copy)
copy
- The node-set to copyMethod Detail |
public void union(NodeSet rhs)
union
in class NodeSet
rhs
- The right-hand operand of the union operatorpublic void castFrom(Object type) throws XPathConversionException
NOTE: this will ALWAYS throw an exception (unless the "from" type is a node-set), since there is no type type can be converted to a node-set
castFrom
in interface ExpressionValue
castFrom
in class NodeSet
type
- The object to convert from.
XPathConversionException
public int order()
order
in interface ContextNodeList
order
in class NodeSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |