jd.xml.xslt.expr
Class XTextContentFragment

java.lang.Object
  extended byjd.xml.xpath.object.XObject
      extended byjd.xml.xpath.object.XNodeSet
          extended byjd.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.


Field Summary
 
Fields inherited from class jd.xml.xpath.object.XNodeSet
ORDER_CONVERTIBLE, ORDER_COUNTED, ORDER_ORDERED, ORDER_SUMMARIZED, ORDER_UNORDERED
 
Fields inherited from class jd.xml.xpath.object.XObject
TYPE_BOOLEAN, TYPE_NODESET, TYPE_NUMBER, TYPE_STRING, TYPE_VARIABLE, TYPES
 
Constructor Summary
XTextContentFragment(ModelCache cache, String text)
           
 
Method Summary
 XPathNode getNode(int index)
          Return the root node of the result tree fragment.
 boolean isEmpty()
          Return false.
 int size()
          Return 1.
 String toStringValue()
          Return the string content of the result tree fragment.
 String toStringValue(int index)
          Return the string content of the result tree fragment.
 
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
 
Methods inherited from class jd.xml.xpath.object.XObject
compare, equals, getTypeName, getTypeName, hashCode, toXObject
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XTextContentFragment

public XTextContentFragment(ModelCache cache,
                            String text)
Method Detail

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