net.sf.saxon.value
Class NotationValue
- ConversionResult, GroundedValue, Item, PullEvent, Serializable, SequenceIterable, Serializable, ValueRepresentation
public final class NotationValue
An xs:NOTATION value.
NotationValue(String prefix, String uri, String localName) - Constructor for a value that is known to be valid
|
NotationValue(String prefix, String uri, String localName, NameChecker checker) - Constructor
|
NotationValue(String prefix, String uri, String localName, AtomicType typeLabel) - Constructor for a value that is known to be valid
|
allocateNameCode , convertToJava , getClarkName , getLocalName , getNamespaceURI , getPrefix , getStringValue , getXPathComparable , hashCode , makeQName , makeQName , toString |
asAtomic , checkPermittedContents , convert , convert , convertPrimitive , copyAsSubType , effectiveBooleanValue , equals , getCardinality , getComponent , getItemType , getLength , getPrimitiveType , getSchemaComparable , getStringValue , getStringValueCS , getTypeLabel , getTypedValue , getXPathComparable , isNaN , itemAt , iterate , process , setTypeLabel , subsequence , toString |
asItem , asItem , asIterator , asValue , checkPermittedContents , convertJavaObjectToXPath , convertToJava , convertToJava , effectiveBooleanValue , equals , fromItem , getCanonicalLexicalRepresentation , getCardinality , getItemType , getIterator , getLength , getSchemaComparable , getStringValue , getStringValueCS , itemAt , iterate , iterate , makeQNameValue , process , reduce , stringToNumber , toString |
NotationValue
public NotationValue(String prefix,
String uri,
String localName)
Constructor for a value that is known to be valid
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 QName
NotationValue
public NotationValue(String prefix,
String uri,
String localName,
NameChecker checker)
throws XPathException
Constructor
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 QNamechecker
- Used for checking names against XML 1.0 or XML 1.1 syntax rules
NotationValue
public NotationValue(String prefix,
String uri,
String localName,
AtomicType typeLabel)
Constructor for a value that is known to be valid
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 value
copyAsSubType
public AtomicValue copyAsSubType(AtomicType typeLabel)
Create a copy of this atomic value, with a different type label
- copyAsSubType in interface AtomicValue
typeLabel
- the type label of the new copy. The caller is responsible for checking that
the value actually conforms to this type.
equals
public boolean equals(Object other)
Determine if two Notation values are equal. This comparison ignores the prefix part
of the value.
- equals in interface AtomicValue
getPrimitiveType
public BuiltInAtomicType getPrimitiveType()
Determine the primitive type of the value. This delivers the same answer as
getItemType().getPrimitiveItemType(). The primitive types are
the 19 primitive types of XML Schema, plus xs:integer, xs:dayTimeDuration and xs:yearMonthDuration,
and xs:untypedAtomic. For external objects, the result is AnyAtomicType.
- getPrimitiveType in interface AtomicValue
getSchemaComparable
public Comparable getSchemaComparable()
Get a Comparable value that implements the XML Schema ordering comparison semantics for this value.
An implementation must be provided for all atomic types.
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
Value.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 AtomicValue
- a Comparable that follows XML Schema comparison rules
toString
public String toString()
The toString() method returns the name in the form QName("uri", "local")
- toString in interface QualifiedNameValue
- the name in Clark notation: {uri}local