jd.xml.xslt.expr
Class XTextContentFragment
java.lang.Object
jd.xml.xpath.object.XObject
jd.xml.xpath.object.XNodeSet
jd.xml.xslt.expr.XTextContentFragment
- public class XTextContentFragment
- extends XNodeSet
A NodeSet constructed by the template of a variable binding element.
It consists of a single root node having as its children the sequence of
nodes that results from instantiating that template.
Methods inherited from class jd.xml.xpath.object.XNodeSet |
canConvertTo, compare, compare, compare, compare, compare, compare, compare, contains, contains, getNodeSum, getOrdering, getType, indexOf, isOrdered, isOrdered, toBooleanValue, toNodeSet, toNumberValue, toNumberValue, toString, toValue, toValue |
XTextContentFragment
public XTextContentFragment(ModelCache cache,
String text)
size
public int size()
- Return 1.
- Specified by:
size
in class XNodeSet
isEmpty
public boolean isEmpty()
- Return false.
- Overrides:
isEmpty
in class XNodeSet
toStringValue
public String toStringValue()
- Return the string content of the result tree fragment.
- Overrides:
toStringValue
in class XNodeSet
toStringValue
public String toStringValue(int index)
- Return the string content of the result tree fragment.
- Overrides:
toStringValue
in class XNodeSet
getNode
public XPathNode getNode(int index)
- Return the root node of the result tree fragment.
- Specified by:
getNode
in class XNodeSet