net.sf.saxon.value
public final class NotationValue extends QualifiedNameValue
Constructor Summary | |
---|---|
NotationValue(String prefix, String uri, String localName, NameChecker checker)
Constructor | |
NotationValue(String prefix, String uri, String localName)
Constructor for a value that is known to be valid | |
NotationValue(String prefix, String uri, String localName, AtomicType typeLabel)
Constructor for a value that is known to be valid |
Method Summary | |
---|---|
ConversionResult | convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
Convert to target data type |
AtomicValue | copyAsSubType(AtomicType typeLabel)
Create a copy of this atomic value, with a different type label
|
boolean | equals(Object other)
Determine if two Notation values are equal. |
BuiltInAtomicType | getPrimitiveType()
Determine the primitive type of the value. |
Comparable | getSchemaComparable() |
String | toString()
The toString() method returns the name in the form QName("uri", "local") |
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 checker Used for checking names against XML 1.0 or XML 1.1 syntax rules
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
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 typeLabel A type derived from xs:NOTATION to be used for the new value
Parameters: requiredType an integer identifying the required atomic type context The XPath dynamic context
Returns: an AtomicValue, a value of the required type; or an ErrorValue
Parameters: typeLabel the type label of the new copy. The caller is responsible for checking that the value actually conforms to this type.
Throws: ClassCastException if they are not comparable IllegalStateException if the two QNames are in different name pools
Returns: the name in Clark notation: {uri}local