public abstract class QualifiedNameValue extends AtomicValue
?????? | ????? |
---|---|
protected StructuredQName |
qName |
typeLabel
EMPTY_CLASS_ARRAY, INDETERMINATE_ORDERING
EMPTY_VALUE_ARRAY
?????? |
---|
QualifiedNameValue() |
?????? | ????? |
---|---|
int |
allocateNameCode(NamePool pool)
Allocate a nameCode for this QName in the NamePool
|
java.lang.String |
getClarkName()
Get the name in Clark notation, that is "{uri}local" if in a namespace, or "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.
|
java.lang.String |
getStringValue()
Get the string value as a String.
|
java.lang.Object |
getXPathComparable(boolean ordered,
StringCollator collator,
XPathContext context)
Get an object value that implements the XPath equality and ordering comparison semantics for this value.
|
int |
hashCode() |
java.lang.Object |
makeQName(Configuration config)
Temporary method to construct a javax.xml.namespace.QName without actually mentioning it
by name (because the class is not available in JDK 1.4)
|
static AtomicValue |
makeQName(java.lang.String prefix,
java.lang.String uri,
java.lang.String local,
AtomicType targetType,
java.lang.CharSequence lexicalForm,
Configuration config)
Factory method to construct either a QName or a NOTATION value, or a subtype of either of these.
|
java.lang.String |
toString()
The toString() method returns the name in the form QName("uri", "local")
|
asAtomic, checkPermittedContents, convert, convert, convertPrimitive, copyAsSubType, effectiveBooleanValue, equals, getCardinality, getComponent, getItemType, getLength, getPrimitiveType, getSchemaComparable, getStringValueCS, getTypedValue, getTypeLabel, isNaN, itemAt, iterate, process, setTypeLabel, subsequence
asItem, asItem, asIterator, asValue, convertToJava, fromItem, getCanonicalLexicalRepresentation, getIterator, iterate, makeQNameValue, reduce, stringToNumber
protected StructuredQName qName
public static AtomicValue makeQName(java.lang.String prefix, java.lang.String uri, java.lang.String local, AtomicType targetType, java.lang.CharSequence lexicalForm, Configuration config) 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 formconfig
- the Saxon configurationXPathException
- if the value cannot be converted.public final java.lang.String getStringValue()
getStringValue
???? Item
getStringValue
???? ValueRepresentation
getStringValue
??? AtomicValue
Item.getStringValueCS()
public final java.lang.String getClarkName()
public final java.lang.String getLocalName()
public final java.lang.String getNamespaceURI()
public final java.lang.String getPrefix()
public int allocateNameCode(NamePool pool)
pool
- the NamePool to be usedpublic java.lang.Object getXPathComparable(boolean ordered, StringCollator collator, XPathContext context)
getXPathComparable
??? AtomicValue
ordered
- true if an ordered comparison is required. In this case the result is null if the
type is unordered; in other cases the returned value will be a Comparable.collator
- context
- the XPath dynamic evaluation context, used in cases where the comparison is context
sensitive @return an Object whose equals() and hashCode() methods implement the XPath comparison semantics
with respect to this atomic value. If ordered is specified, the result will either be null if
no ordering is defined, or will be a Comparablepublic int hashCode()
hashCode
??? java.lang.Object
public java.lang.String toString()
toString
??? AtomicValue
public java.lang.Object makeQName(Configuration config)