org.apache.xpath.objects
public class XRTreeFrag extends XObject implements Cloneable
UNKNOWN: general
Constructor Summary | |
---|---|
XRTreeFrag(int root, XPathContext xctxt, ExpressionNode parent)
Create an XRTreeFrag Object.
| |
XRTreeFrag(int root, XPathContext xctxt)
Create an XRTreeFrag Object.
| |
XRTreeFrag(Expression expr)
Create an XRTreeFrag Object.
|
Method Summary | |
---|---|
void | allowDetachToRelease(boolean allowRelease)
Specify if it's OK for detach to release the iterator for reuse.
|
void | appendToFsb(FastStringBuffer fsb)
Cast result object to a string.
|
DTMIterator | asNodeIterator()
Cast result object to a DTMIterator.
dml - modified to return an RTFIterator for
benefit of EXSLT object-type function in
{@link org.apache.xalan.lib.ExsltCommon}. |
boolean | bool()
Cast result object to a boolean. |
NodeList | convertToNodeset()
Cast result object to a nodelist. (special function).
|
void | detach()
Detaches the DTMIterator from the set which it iterated
over, releasing any computational resources and placing the iterator
in the INVALID state. |
boolean | equals(XObject obj2)
Tell if two objects are functionally equal.
|
int | getType()
Tell what kind of class this is.
|
String | getTypeString()
Given a request type, return the equivalent string.
|
double | num()
Cast result object to a number.
|
Object | object()
Return a java object that's closest to the representation
that should be handed to an extension.
|
int | rtf()
Cast result object to a result tree fragment.
|
String | str()
Cast result object to a string.
|
XMLString | xstr()
Cast result object to an XMLString.
|
Parameters: allowRelease true if it is OK for detach to release this iterator for pooling.
Returns: The string this wraps or the empty string if null
Returns: The document fragment as a DTMIterator
Returns: true
Returns: The document fragment as a nodelist
DTMIterator
from the set which it iterated
over, releasing any computational resources and placing the iterator
in the INVALID state. After detach
has been invoked,
calls to nextNode
or previousNode
will
raise a runtime exception.
In general, detach should only be called once on the object.Parameters: obj2 Object to compare this to
Returns: True if the two objects are equal
Throws: javax.xml.transform.TransformerException
Returns: type CLASS_RTREEFRAG
Returns: type string "#RTREEFRAG"
Returns: The result tree fragment as a number or NaN
Returns: The object that this class wraps
Returns: The document fragment this wraps
Returns: The document fragment node data or the empty string.
Returns: The document fragment node data or the empty string.