org.apache.xpath.objects
public class XNodeSet extends NodeSequence
UNKNOWN: general
Constructor Summary | |
---|---|
XNodeSet(DTMIterator val)
Construct a XNodeSet object.
| |
XNodeSet(XNodeSet val)
Construct a XNodeSet object.
| |
XNodeSet(DTMManager dtmMgr)
Construct an empty XNodeSet object. | |
XNodeSet(int n, DTMManager dtmMgr)
Construct a XNodeSet object for one node.
|
Method Summary | |
---|---|
void | appendToFsb(FastStringBuffer fsb)
Cast result object to a string.
|
boolean | bool()
Cast result object to a boolean.
|
boolean | boolWithSideEffects()
Cast result object to a boolean, but allow side effects, such as the
incrementing of an iterator.
|
boolean | compare(XObject obj2, Comparator comparator)
Tell if one object is less than the other.
|
void | dispatchCharactersEvents(ContentHandler ch)
Directly call the
characters method on the passed ContentHandler for the
string-value. |
boolean | equals(XObject obj2)
Tell if two objects are functionally equal.
|
XObject | getFresh()
Get a fresh copy of the object. |
double | getNumberFromNode(int n)
Get numeric value of the string conversion from a single node.
|
XMLString | getStringFromNode(int n)
Get the string conversion from a single node.
|
int | getType()
Tell that this is a CLASS_NODESET.
|
String | getTypeString()
Given a request type, return the equivalent string.
|
boolean | greaterThan(XObject obj2)
Tell if one object is less than the other.
|
boolean | greaterThanOrEqual(XObject obj2)
Tell if one object is less than the other.
|
DTMIterator | iter()
Cast result object to a nodelist.
|
DTMIterator | iterRaw()
Return the iterator without cloning, etc. |
boolean | lessThan(XObject obj2)
Tell if one object is less than the other.
|
boolean | lessThanOrEqual(XObject obj2)
Tell if one object is less than or equal to the other.
|
NodeSetDTM | mutableNodeset()
Cast result object to a mutableNodeset.
|
NodeList | nodelist()
Cast result object to a nodelist.
|
NodeIterator | nodeset()
Cast result object to a nodelist.
|
boolean | notEquals(XObject obj2)
Tell if two objects are functionally not equal.
|
double | num()
Cast result object to a number.
|
double | numWithSideEffects()
Cast result object to a number, but allow side effects, such as the
incrementing of an iterator.
|
Object | object()
Return a java object that's closest to the representation
that should be handed to an extension.
|
void | release(DTMIterator iter) |
String | str()
Cast result object to a string.
|
XMLString | xstr()
Cast result object to an XMLString.
|
Parameters: val Value of the XNodeSet object
Parameters: val Value of the XNodeSet object
Parameters: n Node to add to the new XNodeSet object
Returns: The string this wraps or the empty string if null
Returns: True if there is a next node in the nodeset
Returns: True if there is a next node in the nodeset
Parameters: obj2 Object to compare this nodeset to comparator Comparator to use
Returns: See the comments below for each object type comparison
Throws: javax.xml.transform.TransformerException
Parameters: ch A non-null reference to a ContentHandler.
Throws: org.xml.sax.SAXException
Parameters: obj2 object to compare this nodeset to
Returns: see this.compare(...)
Throws: javax.xml.transform.TransformerException
Returns: A fresh nodelist.
Parameters: n Node to convert
Returns: numeric value of the string conversion from a single node.
Parameters: n Node to convert
Returns: the string conversion from a single node.
Returns: type CLASS_NODESET
Returns: type string "#NODESET"
Parameters: obj2 object to compare this nodeset to
Returns: see this.compare(...)
Throws: javax.xml.transform.TransformerException
Parameters: obj2 object to compare this nodeset to
Returns: see this.compare(...)
Throws: javax.xml.transform.TransformerException
Returns: The nodeset as a nodelist
Parameters: obj2 object to compare this nodeset to
Returns: see this.compare(...)
Throws: javax.xml.transform.TransformerException
Parameters: obj2 object to compare this nodeset to
Returns: see this.compare(...)
Throws: javax.xml.transform.TransformerException
Returns: The nodeset as a mutableNodeset
Returns: a NodeList.
Throws: javax.xml.transform.TransformerException
Returns: a NodeIterator.
Throws: javax.xml.transform.TransformerException
Parameters: obj2 object to compare this nodeset to
Returns: see this.compare(...)
Throws: javax.xml.transform.TransformerException
Returns: numeric value of the string conversion from the next node in the NodeSetDTM, or NAN if no node was found
Returns: numeric value of the string conversion from the next node in the NodeSetDTM, or NAN if no node was found
Returns: The object that this class wraps
Returns: the string conversion from the next node in the nodeset or "" if there is no next node
Returns: The document fragment node data or the empty string.