public final class NotationValue extends QualifiedNameValue
qName
typeLabel
Constructor and Description |
---|
NotationValue(java.lang.String prefix,
java.lang.String uri,
java.lang.String localName)
Constructor for a value that is known to be valid
|
NotationValue(java.lang.String prefix,
java.lang.String uri,
java.lang.String localName,
AtomicType typeLabel)
Constructor for a value that is known to be valid
|
NotationValue(java.lang.String prefix,
java.lang.String uri,
java.lang.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(java.lang.Object other)
Determine if two Notation values are equal.
|
BuiltInAtomicType |
getPrimitiveType()
Determine the primitive type of the value.
|
XPathComparable |
getXPathComparable(StringCollator collator,
int implicitTimezone)
Get an object value that implements the XPath equality and ordering comparison semantics for this value.
|
int |
hashCode()
Returns a hash code value for the object.
|
java.lang.String |
show()
The show() method returns the name in the form
NOTATION({uri}local) |
getClarkName, getEQName, getLocalName, getNamespaceURI, getPrefix, getPrimitiveStringValue, getStructuredQName, getXPathMatchKey, identityHashCode, isIdentical, makeQName, toJaxpQName
asAtomic, asMapKey, atomize, checkPermittedContents, checkValidInJavascript, effectiveBooleanValue, getCanonicalLexicalRepresentation, getCardinality, getComponent, getGenre, getItemType, getLength, getUnicodeStringValue, getUType, head, isIdentical, isNaN, isUntypedAtomic, itemAt, iterate, iterator, setTypeLabel, toShortString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asAtomic
getStringValue, isStreamed, reduce, subsequence
asIterable, concatenate, containsNode, materialize
makeRepeatable
public NotationValue(java.lang.String prefix, java.lang.String uri, java.lang.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
- if an error is detectedpublic NotationValue(java.lang.String prefix, java.lang.String uri, java.lang.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(java.lang.String prefix, java.lang.String uri, java.lang.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(java.lang.Object other)
equals
in class AtomicValue
other
- the other valuejava.lang.ClassCastException
- if they are not comparablejava.lang.IllegalStateException
- if the two QNames are in different name poolspublic int hashCode()
AtomicValue
hashCode
in class QualifiedNameValue
public XPathComparable getXPathComparable(StringCollator collator, int implicitTimezone) throws NoDynamicContextException
AtomicValue
getXPathComparable
in class AtomicValue
collator
- the collation to be used when comparing stringsimplicitTimezone
- the implicit timezone in the dynamic context, used when comparing
dates/times with and without timezoneNoDynamicContextException
- if the supplied implicit timezone is "NO_TIMEZONE" (meaning
unknown), and the implicit timezone is actually required because the value in question is a date/time
value with no timezone. This can cause a failure to evaluate expressions statically (because the implicit
timezone is not known statically), and it will then be caught, meaning that the expression has to be
evaluated dynamically.public java.lang.String show()
NOTATION({uri}local)
show
in class QualifiedNameValue
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.