|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.value.Value
net.sf.saxon.value.SequenceValue
public abstract class SequenceValue
A SequenceValue object represents a sequence whose members are all AtomicValues or Nodes.
Constructor Summary | |
---|---|
SequenceValue()
|
Method Summary | |
---|---|
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,
NamePool pool)
Diagnostic display of the expression |
boolean |
effectiveBooleanValue(XPathContext context)
Get the effective boolean value of the expression. |
String |
evaluateAsString(XPathContext context)
Evaluate an expression as a String. |
Item |
evaluateItem(XPathContext context)
Evaluate as a singleton item (or empty sequence) |
int |
getCardinality()
Determine the cardinality |
ItemType |
getItemType()
Determine the data type of the items in the expression, if possible |
Item |
itemAt(int n)
Get the n'th item in the sequence (starting from 0). |
static int |
nodeToJavaPreference(NodeInfo node,
Class required)
|
Methods inherited from class net.sf.saxon.value.Value |
---|
analyze, asItem, asValue, collapseWhitespace, getDependencies, getSpecialProperties, getSubExpressions, inverse, normalizeWhitespace, promote, simplify, stringToInteger, stringToNumber, trimWhitespace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.saxon.expr.Expression |
---|
iterate |
Constructor Detail |
---|
public SequenceValue()
Method Detail |
---|
public ItemType getItemType()
public int getCardinality()
public Item itemAt(int n) throws XPathException
XPathException
public Item evaluateItem(XPathContext context) throws XPathException
context
- The context in which the expression is to be evaluated
XPathException
- if any dynamic error occurs evaluating the
expressionpublic String evaluateAsString(XPathContext context) throws XPathException
context
- The context in which the expression is to be evaluated
XPathException
- if any dynamic error occurs evaluating the
expression
ClassCastException
- if the result type of the
expression is not xs:string?public boolean effectiveBooleanValue(XPathContext context) throws XPathException
context
- The context in which the expression is to be evaluated
XPathException
- if any dynamic error occurs evaluating the
expressionpublic int conversionPreference(Class required)
conversionPreference
in class Value
public static int nodeToJavaPreference(NodeInfo node, Class required)
public Object convertToJava(Class target) throws XPathException
convertToJava
in class Value
target
- The class required by the external function
XPathException
public void display(int level, NamePool pool)
level
- indentation level for this expression
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |