com.icl.saxon.expr
public abstract class NodeSetValue extends Value
| Method Summary | |
|---|---|
| abstract boolean | asBoolean()
Evaluate as a boolean. |
| double | asNumber()
Evaluate as a number. |
| abstract String | asString()
Convert to string value |
| boolean | compare(int operator, Value other)
Test how a nodeset compares to another Value under a relational comparison |
| int | conversionPreference(Class required)
Get conversion preference for this value to a Java class. |
| Object | convertToJava(Class target)
Convert to Java object (for passing to external functions) |
| void | display(int level)
Diagnostic print of expression structure |
| abstract NodeEnumeration | enumerate()
Return an enumeration of this nodeset value. |
| NodeEnumeration | enumerate(Context c, boolean sorted)
Return an enumeration of this nodeset value. |
| boolean | equals(Value other)
Test whether a nodeset "equals" another Value |
| Value | evaluate(Context context)
Evaluate the Node Set. |
| NodeSetValue | evaluateAsNodeSet(Context context)
Evaluate an expression as a NodeSet. |
| abstract int | getCount()
Count the nodes in the node-set. |
| int | getDataType()
Determine the data type of the expression |
| abstract NodeInfo | getFirst()
Get the first node in the nodeset (in document order) |
| abstract boolean | isSorted()
Test whether the value is known to be sorted |
| boolean | notEquals(Value other)
Test whether a nodeset "not-equals" another Value |
| abstract void | setSorted(boolean isSorted)
Set a flag to indicate whether the nodes are sorted. |
| abstract NodeSetValue | sort()
Sort the nodes into document order.
|
Returns: true if the node set is not empty
Returns: the number obtained by evaluating as a String and converting the string to a number
Returns: the value of the first node in the node-set if there is one, otherwise an empty string
Parameters: operator The comparison operator, one of Tokenizer.LE, Tokenizer.LT, Tokenizer.GE, Tokenizer.GT,
Parameters: context The context is ignored. sorted Indicates that the result must be in document order
Parameters: context The context for evaluation (not used)
Parameters: context The context in which the expression is to be evaluated
Returns: the value of the expression, evaluated in the current context
Returns: Value.NODESET
Returns: the first node
Returns: true if the value is known to be sorted in document order, false if it is not known whether it is sorted.
Parameters: isSorted true if the caller wishes to assert that the nodes are in document order and do not need to be further sorted
Parameters: controller The controller used to sort nodes into document order
Returns: the same NodeSetValue, after sorting. (The reason for returning this is that it makes life easier for the XSL compiler).