|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.value.Value
net.sf.saxon.value.AtomicValue
net.sf.saxon.value.QualifiedNameValue
net.sf.saxon.value.NotationValue
public final class NotationValue
An xs:NOTATION value.
Field Summary |
---|
Fields inherited from class net.sf.saxon.value.Value |
---|
EMPTY_CLASS_ARRAY, INDETERMINATE_ORDERING |
Fields inherited from interface net.sf.saxon.om.ValueRepresentation |
---|
EMPTY_VALUE_ARRAY |
Constructor Summary | |
---|---|
NotationValue(String prefix,
String uri,
String localName)
Constructor for a value that is known to be valid |
|
NotationValue(String prefix,
String uri,
String localName,
AtomicType typeLabel)
Constructor for a value that is known to be valid |
|
NotationValue(String prefix,
String uri,
String localName,
NameChecker checker)
Constructor |
Method Summary | |
---|---|
AtomicValue |
convertPrimitive(BuiltInAtomicType requiredType,
boolean validate,
XPathContext context)
Convert to target data type |
AtomicValue |
copy(AtomicType typeLabel)
Create a copy of this atomic value, with a different type label |
boolean |
equals(Object other)
Determine if two Notation values are equal. |
BuiltInAtomicType |
getPrimitiveType()
Determine the primitive type of the value. |
String |
toString()
The toString() method returns the name in the form QName("uri", "local") |
Methods inherited from class net.sf.saxon.value.QualifiedNameValue |
---|
allocateNameCode, convertToJava, getClarkName, getLocalName, getNamespaceURI, getPrefix, getStringValue, hashCode, makeQName, makeQName |
Methods inherited from class net.sf.saxon.value.AtomicValue |
---|
checkPermittedContents, convert, convert, effectiveBooleanValue, getCardinality, getComponent, getItemType, getLength, getStringValueCS, getTypedValue, getTypeLabel, getXPathComparable, hasBuiltInType, isMultiValued, itemAt, iterate, process, setTypeLabel |
Methods inherited from class net.sf.saxon.value.Value |
---|
asItem, asItem, asIterator, asValue, compareTo, convert, convertJavaObjectToXPath, fromItem, getCanonicalLexicalRepresentation, getIterator, getSchemaComparable, iterate, makeQNameValue, reduce, stringToNumber |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NotationValue(String prefix, String uri, String localName, NameChecker checker) 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 QName
XPathException
public NotationValue(String prefix, String uri, 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(String prefix, String uri, 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 QNameMethod Detail |
---|
public AtomicValue copy(AtomicType typeLabel)
copy
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 AtomicValue convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
convertPrimitive
in class AtomicValue
requiredType
- an integer identifying the required atomic typecontext
- validate
- true if validation is required. If set to false, the caller guarantees that
the value is valid for the target data type, and that further validation is therefore not required.
Note that a validation failure may be reported even if validation was not requested.
public boolean equals(Object other)
equals
in class Value
ClassCastException
- if they are not comparable
IllegalStateException
- if the two QNames are in different name poolspublic String toString()
toString
in class QualifiedNameValue
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |