net.sf.saxon.value
public abstract class QualifiedNameValue extends AtomicValue
Field Summary | |
---|---|
protected StructuredQName | qName |
Method Summary | |
---|---|
int | allocateNameCode(NamePool pool)
Allocate a nameCode for this QName in the NamePool |
String | getClarkName()
Get the QName in Clark notation, that is "{uri}local" if in a namespace, or "local" otherwise |
String | getLocalName()
Get the local part |
String | getNamespaceURI()
Get the namespace part. |
String | getPrefix()
Get the prefix. |
String | getPrimitiveStringValue()
Get the string value as a String. |
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() |
boolean | isIdentical(Value v) |
static AtomicValue | makeQName(String prefix, String uri, String local, AtomicType targetType, CharSequence lexicalForm, Configuration config)
Factory method to construct either a QName or a NOTATION value, or a subtype of either of these.
|
QName | toJaxpQName()
Construct a javax.xml.namespace.QName from this QualifiedNameValue |
String | toString()
The toString() method returns the name in the form QName("uri", "local") |
StructuredQName | toStructuredQName()
Convert to a StructuredQName |
Parameters: pool the NamePool to be used
Returns: the allocated nameCode
Parameters: 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 Comparable
Parameters: 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-namespace local the local part of the value targetType the target type, which must be xs:QName or a subtype of xs:NOTATION or xs:QName lexicalForm the original lexical form of the value. This is needed in case there are facets such as pattern that check the lexical form config the Saxon configuration
Returns: the converted value
Throws: XPathException if the value cannot be converted.
Returns: the name in in the form QName("uri", "local")
Returns: the name as a StructuredQName