net.sf.saxon.value

Class NotationValue

public final class NotationValue extends QNameValue

An xs:NOTATION value.
Constructor Summary
NotationValue(String prefix, String uri, String localName, NameChecker checker)
Constructor
Method Summary
AtomicValueconvertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
Convert to target data type
ItemTypegetItemType(TypeHierarchy th)
Return the type of the expression
StringtoString()
The toString() method returns the name in the form QName("uri", "local")

Constructor Detail

NotationValue

public NotationValue(String prefix, String uri, String localName, NameChecker checker)
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

Method Detail

convertPrimitive

public AtomicValue convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
Convert to target data type

Parameters: requiredType an integer identifying the required atomic type context

Returns: an AtomicValue, a value of the required type; or an ErrorValue

getItemType

public ItemType getItemType(TypeHierarchy th)
Return the type of the expression

Parameters: th

Returns: Type.NOTATION (always)

toString

public String toString()
The toString() method returns the name in the form QName("uri", "local")

Returns: the name in Clark notation: {uri}local