java.io.Serializable
, Expression
, Item
, ValueRepresentation
public final class NotationValue extends QNameValue
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
EMPTY_CLASS_ARRAY
EMPTY_VALUE_ARRAY
Constructor | Description |
---|---|
NotationValue(java.lang.String prefix,
java.lang.String uri,
java.lang.String localName,
NameChecker checker) |
Constructor
|
Modifier and Type | Method | Description |
---|---|---|
AtomicValue |
convertPrimitive(BuiltInAtomicType requiredType,
boolean validate,
XPathContext context) |
Convert to target data type
|
ItemType |
getItemType(TypeHierarchy th) |
Return the type of the expression
|
java.lang.String |
toString() |
The toString() method returns the name in the form QName("uri", "local")
|
checkPermittedContents, convert, convert, display, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getImplementationMethod, getLength, getPrimitiveValue, getStringValueCS, getTypedValue, hasBuiltInType, iterate, process
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
allocateNameCode, convertToJava, equals, getClarkName, getComponent, getLocalName, getNamespaceURI, getPrefix, getStringValue, hashCode, makeQName, makeQName
asItem, asIterator, asValue, convert, convertJavaObjectToXPath, getDependencies, getIterator, getParentExpression, getSpecialProperties, itemAt, iterateSubExpressions, makeQNameValue, optimize, promote, reduce, simplify, stringToNumber, typeCheck
public NotationValue(java.lang.String prefix, java.lang.String uri, java.lang.String localName, NameChecker checker) throws XPathException
prefix
- The prefix part of the QName (not used in comparisons). Use null or "" to represent the
default prefix.uri
- The namespace part of the QName. Use null or "" to represent the null namespace.localName
- The local part of the QNameXPathException
public AtomicValue convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
convertPrimitive
in class QNameValue
requiredType
- an integer identifying the required atomic typecontext
- validate
- true if validation is required. If set to false, the caller guarantees that
the value is valid for the target data type, and that further validation is therefore not required.
Note that a validation failure may be reported even if validation was not requested.public ItemType getItemType(TypeHierarchy th)
getItemType
in interface Expression
getItemType
in class QNameValue
th
- public java.lang.String toString()
toString
in class QNameValue