|
||||||||||
| 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.AtomicValue
|
+--net.sf.saxon.value.DerivedAtomicValue
A DerivedAtomicValue is an atomic value of a user-defined type
| Field Summary |
| Fields inherited from interface net.sf.saxon.expr.Expression |
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
| Method Summary | |
AtomicValue |
convert(int requiredType,
XPathContext context)
Convert the value to a given type. |
java.lang.Object |
convertToJava(java.lang.Class target,
Configuration config,
XPathContext context)
Convert to Java object (for passing to external functions) |
boolean |
effectiveBooleanValue(XPathContext context)
Get the effective boolean value of the value |
boolean |
equals(java.lang.Object obj)
Determine if this value is equal to another value |
Item |
evaluateItem(XPathContext context)
Evaluate the value (this simply returns the value unchanged) |
ItemType |
getItemType()
Get the item type of this atomic value |
AtomicValue |
getPrimitiveValue()
Get the primitive value (the value in the value space) |
java.lang.String |
getStringValue()
Evaluate as a string |
int |
hashCode()
Generate a hash code to support equality testing |
static DerivedAtomicValue |
makeValue(AtomicValue primValue,
java.lang.String lexicalValue,
AtomicType type,
boolean throwError)
Create a value of a user-defined atomic type |
java.lang.String |
toString()
Generate a string representation suitable for error messages |
| Methods inherited from class net.sf.saxon.value.AtomicValue |
convert, display, evaluateAsString, getCardinality, getComponent, getImplementationMethod, getTypedValue, iterate, process |
| Methods inherited from class net.sf.saxon.value.Value |
analyze, asItem, asValue, collapseWhitespace, convertJavaObjectToXPath, getDependencies, getParentExpression, getSpecialProperties, inverse, iterateSubExpressions, normalizeWhitespace, promote, simplify, stringToNumber, trimWhitespace |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static DerivedAtomicValue makeValue(AtomicValue primValue,
java.lang.String lexicalValue,
AtomicType type,
boolean throwError)
throws XPathException
primValue - the value in the value space of the primitive typelexicalValue - the value in the lexical space. If null, the string value of primValue
is used. This value is checked against the pattern facet (if any)type - the required atomic typethrowError - true if an exception is to be thrown when the value is
invalid (if false, the method returns null instead)
XPathException - if the value is invalidpublic AtomicValue getPrimitiveValue()
getPrimitiveValue in class AtomicValue
public AtomicValue convert(int requiredType,
XPathContext context)
throws XPathException
convert in class AtomicValuerequiredType - type code of the required atomic typecontext - the evaluation context. Used primarily for error reporting,
since nearly all type conversions are context-independent. The value may be
null if the context is not known.
XPathException - if conversion is not allowed for this
required type, or if the particular value cannot be converted
public Item evaluateItem(XPathContext context)
throws XPathException
evaluateItem in interface ExpressionevaluateItem in class AtomicValuecontext - the evaluation context (not used in this implementation)
XPathExceptionpublic java.lang.String getStringValue()
getStringValue in interface ItemgetStringValue in class AtomicValuepublic boolean effectiveBooleanValue(XPathContext context)
effectiveBooleanValue in interface ExpressioneffectiveBooleanValue in class AtomicValuecontext - the evaluation context (not used in this implementation)
public java.lang.Object convertToJava(java.lang.Class target,
Configuration config,
XPathContext context)
throws XPathException
AtomicValue
convertToJava in class AtomicValuetarget - The class required by the external functionconfig - The configuration (needed for access to schema information)
XPathExceptionpublic ItemType getItemType()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the other value to be compared
public java.lang.String toString()
toString in class AtomicValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||