public final class NotationValue extends QualifiedNameValue
qName
NaN_MATCH_KEY, typeLabel
Constructor and Description |
---|
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
|
NotationValue(String prefix,
String uri,
String localName,
boolean check)
Constructor
|
NotationValue(StructuredQName qName,
AtomicType typeLabel)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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()
Get a Comparable value that implements the XML Schema ordering comparison semantics for this value.
|
String |
toString()
The toString() method returns the name in the form QName("uri", "local")
|
getClarkName, getLocalName, getNamespaceURI, getPrefix, getPrimitiveStringValue, getStructuredQName, getXPathComparable, hashCode, identityHashCode, isIdentical, makeQName, toJaxpQName
asAtomic, checkPermittedContents, effectiveBooleanValue, getCanonicalLexicalRepresentation, getCardinality, getComponent, getItemType, getStringValue, getStringValueCS, head, isIdentical, isNaN, itemAt, iterate, iterator, process, setTypeLabel
getLength, reduce, subsequence
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asAtomic
getLength
reduce, subsequence
public NotationValue(String prefix, String uri, String localName, boolean check) 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 QNamecheck
- Used for request checking names against XML 1.0 or XML 1.1 syntax rulesXPathException
public NotationValue(String prefix, String uri, String localName)
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 QNamepublic NotationValue(String prefix, String uri, String localName, AtomicType typeLabel)
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 QNametypeLabel
- A type derived from xs:NOTATION to be used for the new valuepublic NotationValue(StructuredQName qName, AtomicType typeLabel)
qName
- the name as a StructuredQNametypeLabel
- idenfies a subtype of xs:QNamepublic AtomicValue copyAsSubType(AtomicType typeLabel)
copyAsSubType
in class AtomicValue
typeLabel
- the type label of the new copy. The caller is responsible for checking that
the value actually conforms to this type.public BuiltInAtomicType getPrimitiveType()
getPrimitiveType
in class AtomicValue
public boolean equals(Object other)
equals
in class AtomicValue
other
- the other valueClassCastException
- if they are not comparableIllegalStateException
- if the two QNames are in different name poolspublic Comparable getSchemaComparable()
AtomicValue
In the case of data types that are partially ordered, the returned Comparable extends the standard
semantics of the compareTo() method by returning the value SequenceTool.INDETERMINATE_ORDERING
when there
is no defined order relationship between two given values. This value is also returned when two values
of different types are compared.
getSchemaComparable
in interface AtomicSequence
getSchemaComparable
in class AtomicValue
public String toString()
toString
in class QualifiedNameValue
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.