|
|||||||||
| 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.AtomicValue
public abstract class AtomicValue
A AtomicValue is a value that isn't a sequence and isn't a node. More strictly, it is any sequence of length one whose content is not a node.
| Constructor Summary | |
|---|---|
AtomicValue()
|
|
| Method Summary | |
|---|---|
int |
conversionPreference(Class required)
Get conversion preference for this value to a Java class. |
AtomicValue |
convert(AtomicType targetType)
Convert the value to a given type. |
AtomicValue |
convert(AtomicType targetType,
NamespaceResolver resolver)
Convert the value to a namespace-sensitive type, that is, a QName or NOTATION. |
abstract AtomicValue |
convert(int requiredType)
Convert the value to a given type. |
Object |
convertToJava(Class target)
Convert to Java object (for passing to external functions) |
boolean |
effectiveBooleanValue(XPathContext context)
Get the effective boolean value of the value |
String |
evaluateAsString(XPathContext context)
Evaluate as a string |
Item |
evaluateItem(XPathContext context)
Evaluate the value (this simply returns the value unchanged) |
int |
getCardinality()
Determine the static cardinality |
AtomicValue |
getComponent(int component)
Method to extract components of a value. |
AtomicValue |
getPrimitiveValue()
Get the primitive value (the value in the value space). |
SequenceIterator |
getTypedValue()
Get the typed value of this item |
SequenceIterator |
iterate(XPathContext context)
Iterate over the (single) item in the sequence |
| 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.om.Item |
|---|
getStringValue |
| Methods inherited from interface net.sf.saxon.expr.Expression |
|---|
display, getItemType |
| Constructor Detail |
|---|
public AtomicValue()
| Method Detail |
|---|
public final int getCardinality()
getCardinality in interface ExpressionCardinality
public abstract AtomicValue convert(int requiredType)
throws XPathException
requiredType - type code of the required atomic type
XPathException - if conversion is not allowed for this
required type, or if the particular value cannot be converted
public final AtomicValue convert(AtomicType targetType)
throws XPathException
XPathException
public final AtomicValue convert(AtomicType targetType,
NamespaceResolver resolver)
throws XPathException
XPathException
public Item evaluateItem(XPathContext context)
throws XPathException
evaluateItem in interface Expressioncontext - the evaluation context (not used in this implementation)
XPathExceptionpublic final SequenceIterator iterate(XPathContext context)
iterate in interface Expressioncontext - the evaluation context (not used in this implementation)
public final String evaluateAsString(XPathContext context)
throws XPathException
evaluateAsString in interface Expressioncontext - The context in which the expression is to be evaluated
XPathException - if any dynamic error occurs evaluating the
expressionpublic final SequenceIterator getTypedValue()
getTypedValue in interface Itempublic AtomicValue getPrimitiveValue()
public boolean effectiveBooleanValue(XPathContext context)
effectiveBooleanValue in interface Expressioncontext - the evaluation context (not used in this implementation)
public AtomicValue getComponent(int component)
throws XPathException
XPathExceptionpublic int conversionPreference(Class required)
conversionPreference in class Value
public Object convertToJava(Class target)
throws XPathException
convertToJava in class Valuetarget - The class required by the external function
XPathException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||