|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saxon.value.Value | +--net.sf.saxon.value.SequenceValue
A SequenceValue object represents a sequence whose members are all AtomicValues or Nodes.
Constructor Summary | |
SequenceValue()
|
Method Summary | |
int |
conversionPreference(java.lang.Class required,
Configuration config)
Get conversion preference for this value to a Java class. |
java.lang.Object |
convertToJava(java.lang.Class target,
Configuration config)
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. |
java.lang.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 |
java.lang.String |
getStringValue()
Convert the value to a string, using the serialization rules. |
Item |
itemAt(int n)
Get the n'th item in the sequence (starting from 0). |
static int |
nodeToJavaPreference(NodeInfo node,
java.lang.Class required,
Configuration config)
|
Methods inherited from class net.sf.saxon.value.Value |
analyze, asItem, asValue, collapseWhitespace, getDependencies, getSpecialProperties, getSubExpressions, inverse, normalizeWhitespace, promote, simplify, 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 java.lang.String getStringValue() throws XPathException
getStringValue
in class Value
XPathException
public java.lang.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
java.lang.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(java.lang.Class required, Configuration config)
conversionPreference
in class Value
public static int nodeToJavaPreference(NodeInfo node, java.lang.Class required, Configuration config)
public java.lang.Object convertToJava(java.lang.Class target, Configuration config) throws XPathException
convertToJava
in class Value
target
- The class required by the external functionconfig
- The configuration (needed for access to schema information)
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 |