public abstract class QualifiedNameValue extends AtomicValue implements AtomicMatchKey
Modifier and Type | Field and Description |
---|---|
protected StructuredQName |
qName |
typeLabel
Constructor and Description |
---|
QualifiedNameValue() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClarkName()
Get the QName in Clark notation, that is "{uri}local" if in a namespace, or "local" otherwise
|
java.lang.String |
getEQName()
Get the QName in EQName notation, that is "Q{uri}local" if in a namespace, or "Q{}local" otherwise
|
java.lang.String |
getLocalName()
Get the local part
|
java.lang.String |
getNamespaceURI()
Get the namespace part.
|
java.lang.String |
getPrefix()
Get the prefix.
|
UnicodeString |
getPrimitiveStringValue()
Get the string value as a String.
|
StructuredQName |
getStructuredQName()
Get the equivalent StructuredQName
|
AtomicMatchKey |
getXPathMatchKey(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.
|
int |
identityHashCode()
Get a hashCode that offers the guarantee that if A.isIdentical(B), then A.identityHashCode() == B.identityHashCode()
|
boolean |
isIdentical(AtomicValue v)
Determine whether two atomic values are identical, as determined by XML Schema rules.
|
static AtomicValue |
makeQName(java.lang.String prefix,
java.lang.String uri,
java.lang.String local,
AtomicType targetType,
UnicodeString lexicalForm,
ConversionRules rules)
Factory method to construct either a QName or a NOTATION value, or a subtype of either of these.
|
java.lang.String |
show()
The show() method returns the name in the form QName("uri", "local")
|
javax.xml.namespace.QName |
toJaxpQName()
Construct a javax.xml.namespace.QName from this QualifiedNameValue
|
asAtomic, asMapKey, atomize, checkPermittedContents, checkValidInJavascript, copyAsSubType, effectiveBooleanValue, equals, getCanonicalLexicalRepresentation, getCardinality, getComponent, getGenre, getItemType, getLength, getPrimitiveType, getUnicodeStringValue, getUType, getXPathComparable, 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
protected StructuredQName qName
public static AtomicValue makeQName(java.lang.String prefix, java.lang.String uri, java.lang.String local, AtomicType targetType, UnicodeString lexicalForm, ConversionRules rules) throws XPathException
prefix
- the prefix part of the value. Use "" or null for the empty prefix.uri
- the namespace URI part of the value. Use "" or null for the non-namespacelocal
- the local part of the valuetargetType
- the target type, which must be xs:QName or a subtype of xs:NOTATION or xs:QNamelexicalForm
- the original lexical form of the value. This is needed in case there are facets
such as pattern that check the lexical formrules
- the conversion rules to be appliedXPathException
- if the value cannot be converted.public final UnicodeString getPrimitiveStringValue()
getPrimitiveStringValue
in class AtomicValue
public final java.lang.String getClarkName()
public final java.lang.String getEQName()
public final java.lang.String getLocalName()
public final java.lang.String getNamespaceURI()
public final java.lang.String getPrefix()
public AtomicMatchKey getXPathMatchKey(StringCollator collator, int implicitTimezone)
getXPathMatchKey
in class AtomicValue
collator
- the collation to be used for the comparisonimplicitTimezone
- the XPath dynamic evaluation context, used in cases where the comparison is contextpublic int hashCode()
AtomicValue
hashCode
in class AtomicValue
public boolean isIdentical(AtomicValue v)
AtomicValue
Note that even this check ignores the type annotation of the value. The integer 3 and the short 3 are considered identical, even though they are not fully interchangeable. "Identical" means the same point in the value space, regardless of type annotation.
NaN is identical to itself.
isIdentical
in class AtomicValue
v
- the other value to be compared with this onepublic int identityHashCode()
identityHashCode
in interface IdentityComparable
identityHashCode
in class AtomicValue
public java.lang.String show()
show
in class AtomicValue
public javax.xml.namespace.QName toJaxpQName()
public StructuredQName getStructuredQName()
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.