| java.lang.Object org.apache.xpath.Expression org.apache.xpath.objects.XObject org.apache.xpath.objects.XRTreeFrag
All known Subclasses: org.apache.xpath.objects.XRTreeFragSelectWrapper,
XRTreeFrag | public class XRTreeFrag extends XObject implements Cloneable(Code) | | This class represents an XPath result tree fragment object, and is capable of
converting the RTF to other types, such as a string.
|
Method Summary | |
public void | allowDetachToRelease(boolean allowRelease) Specify if it's OK for detach to release the iterator for reuse. | public void | appendToFsb(org.apache.xml.utils.FastStringBuffer fsb) Cast result object to a string. | public DTMIterator | asNodeIterator() Cast result object to a DTMIterator. | public boolean | bool() Cast result object to a boolean. | public NodeList | convertToNodeset() Cast result object to a nodelist. | public void | detach() Detaches the DTMIterator from the set which it iterated
over, releasing any computational resources and placing the iterator
in the INVALID state. | public boolean | equals(XObject obj2) Tell if two objects are functionally equal. | public int | getType() Tell what kind of class this is. | public String | getTypeString() Given a request type, return the equivalent string. | public double | num() Cast result object to a number. | public Object | object() Return a java object that's closest to the representation
that should be handed to an extension. | public int | rtf() Cast result object to a result tree fragment. | public String | str() Cast result object to a string.
The document fragment node data or the empty string. | public XMLString | xstr() Cast result object to an XMLString.
The document fragment node data or the empty string. |
m_allowRelease | protected boolean m_allowRelease(Code) | | |
serialVersionUID | final static long serialVersionUID(Code) | | |
XRTreeFrag | public XRTreeFrag(int root, XPathContext xctxt)(Code) | | Create an XRTreeFrag Object.
|
allowDetachToRelease | public void allowDetachToRelease(boolean allowRelease)(Code) | | Specify if it's OK for detach to release the iterator for reuse.
Parameters: allowRelease - true if it is OK for detach to release this iterator for pooling. |
asNodeIterator | public DTMIterator asNodeIterator()(Code) | | Cast result object to a DTMIterator.
dml - modified to return an RTFIterator for
benefit of EXSLT object-type function in
org.apache.xalan.lib.ExsltCommon .
The document fragment as a DTMIterator |
bool | public boolean bool()(Code) | | Cast result object to a boolean. This always returns true for a RTreeFrag
because it is treated like a node-set with a single root node.
true |
convertToNodeset | public NodeList convertToNodeset()(Code) | | Cast result object to a nodelist. (special function).
The document fragment as a nodelist |
detach | public void detach()(Code) | | Detaches the 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.
|
getType | public int getType()(Code) | | Tell what kind of class this is.
type CLASS_RTREEFRAG |
getTypeString | public String getTypeString()(Code) | | Given a request type, return the equivalent string.
For diagnostic purposes.
type string "#RTREEFRAG" |
object | public Object object()(Code) | | Return a java object that's closest to the representation
that should be handed to an extension.
The object that this class wraps |
rtf | public int rtf()(Code) | | Cast result object to a result tree fragment.
The document fragment this wraps |
str | public String str()(Code) | | Cast result object to a string.
The document fragment node data or the empty string. |
xstr | public XMLString xstr()(Code) | | Cast result object to an XMLString.
The document fragment node data or the empty string. |
Methods inherited from org.apache.xpath.Expression | public DTMIterator asIterator(XPathContext xctxt, int contextNode) throws javax.xml.transform.TransformerException(Code)(Java Doc) public DTMIterator asIteratorRaw(XPathContext xctxt, int contextNode) throws javax.xml.transform.TransformerException(Code)(Java Doc) public int asNode(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc) public void assertion(boolean b, java.lang.String msg)(Code)(Java Doc) public boolean bool(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc) public boolean canTraverseOutsideSubtree()(Code)(Java Doc) abstract public boolean deepEquals(Expression expr)(Code)(Java Doc) public void error(XPathContext xctxt, String msg, Object[] args) throws javax.xml.transform.TransformerException(Code)(Java Doc) public XObject execute(XPathContext xctxt, int currentNode) throws javax.xml.transform.TransformerException(Code)(Java Doc) public XObject execute(XPathContext xctxt, int currentNode, DTM dtm, int expType) throws javax.xml.transform.TransformerException(Code)(Java Doc) abstract public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc) public XObject execute(XPathContext xctxt, boolean destructiveOK) throws javax.xml.transform.TransformerException(Code)(Java Doc) public void executeCharsToContentHandler(XPathContext xctxt, ContentHandler handler) throws javax.xml.transform.TransformerException, org.xml.sax.SAXException(Code)(Java Doc) public void exprAddChild(ExpressionNode n, int i)(Code)(Java Doc) public ExpressionNode exprGetChild(int i)(Code)(Java Doc) public int exprGetNumChildren()(Code)(Java Doc) public ExpressionNode exprGetParent()(Code)(Java Doc) public void exprSetParent(ExpressionNode n)(Code)(Java Doc) abstract public void fixupVariables(java.util.Vector vars, int globalsSize)(Code)(Java Doc) public int getColumnNumber()(Code)(Java Doc) public ExpressionNode getExpressionOwner()(Code)(Java Doc) public int getLineNumber()(Code)(Java Doc) public String getPublicId()(Code)(Java Doc) public String getSystemId()(Code)(Java Doc) public boolean isNodesetExpr()(Code)(Java Doc) final protected boolean isSameClass(Expression expr)(Code)(Java Doc) public boolean isStableNumber()(Code)(Java Doc) public double num(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc) public void warn(XPathContext xctxt, String msg, Object[] args) throws javax.xml.transform.TransformerException(Code)(Java Doc) public XMLString xstr(XPathContext xctxt) throws javax.xml.transform.TransformerException(Code)(Java Doc)
|
|
|