com.icl.saxon.expr
public final class TextFragmentValue extends SingletonNodeSet
| Constructor Summary | |
|---|---|
| TextFragmentValue(String value, String systemId, Controller controller)
Constructor: create a result tree fragment containing a single text node | |
| Method Summary | |
|---|---|
| boolean | asBoolean()
Convert the result tree fragment to a boolean |
| double | asNumber()
Convert the result tree fragment to a number |
| String | asString()
Convert the result tree fragment to a string. |
| boolean | compare(int operator, Value other)
Test how a FragmentValue compares to another Value under a relational comparison. |
| void | copy(Outputter out)
Copy the result tree fragment value to a given Outputter |
| void | display(int level)
Diagnostic print of expression structure |
| NodeEnumeration | enumerate()
Return an enumeration of this nodeset value. |
| boolean | equals(Value other)
Test whether a nodeset "equals" another Value |
| int | getCount()
Count the nodes in the node-set. |
| int | getDataType()
Determine the data type of the expression, if possible |
| NodeInfo | getFirst()
Get the first node in the nodeset (in document order) |
| DocumentInfo | getRootNode()
Get the root (document) node |
| int | getType()
Return the type of the value |
| boolean | notEquals(Value other)
Test whether a nodeset "not-equals" another Value |
| void | outputStringValue(Outputter out, Context context)
Evaluate an expression as a String and write the result to the
specified outputter. |
| Expression | simplify()
Simplify the expression |
Parameters: value: a String containing the value
Returns: Value.NODESET
Returns: the first node
Returns: Value.NODESET (always)
Parameters: out The required outputter context The context in which the expression is to be evaluated