Class NotationValue
java.lang.Object
net.sf.saxon.value.Value
net.sf.saxon.value.AtomicValue
net.sf.saxon.value.QNameValue
net.sf.saxon.value.NotationValue
- All Implemented Interfaces:
Serializable, Expression, Item, ValueRepresentation
-
Field Summary
Fields inherited from class Value
EMPTY_CLASS_ARRAYFields inherited from interface Expression
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHODFields inherited from interface ValueRepresentation
EMPTY_VALUE_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionNotationValue(String prefix, String uri, String localName, NameChecker checker) Constructor -
Method Summary
Modifier and TypeMethodDescriptionconvertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context) Convert to target data typeReturn the type of the expressiontoString()The toString() method returns the name in the form QName("uri", "local")Methods inherited from class QNameValue
allocateNameCode, convertToJava, equals, getClarkName, getComponent, getLocalName, getNamespaceURI, getPrefix, getStringValue, hashCode, makeQName, makeQNameMethods inherited from class AtomicValue
checkPermittedContents, convert, convert, display, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getImplementationMethod, getLength, getPrimitiveValue, getStringValueCS, getTypedValue, hasBuiltInType, iterate, processMethods inherited from class Value
asItem, asIterator, asValue, convert, convertJavaObjectToXPath, getDependencies, getIterator, getParentExpression, getSpecialProperties, itemAt, iterateSubExpressions, makeQNameValue, optimize, promote, reduce, simplify, stringToNumber, typeCheck
-
Constructor Details
-
NotationValue
public NotationValue(String prefix, String uri, String localName, NameChecker checker) throws XPathException Constructor- Parameters:
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 QName- Throws:
XPathException
-
-
Method Details
-
convertPrimitive
public AtomicValue convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context) Convert to target data type- Overrides:
convertPrimitivein classQNameValue- Parameters:
requiredType- an integer identifying the required atomic typevalidate- 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.context-- Returns:
- an AtomicValue, a value of the required type; or an ErrorValue
-
getItemType
Return the type of the expression- Specified by:
getItemTypein interfaceExpression- Overrides:
getItemTypein classQNameValue- Parameters:
th-- Returns:
- Type.NOTATION (always)
-
toString
The toString() method returns the name in the form QName("uri", "local")- Overrides:
toStringin classQNameValue- Returns:
- the name in Clark notation: {uri}local
-