com.xml_project.morganaxdm
Class XS_NMTOKENS
java.lang.Object
com.xml_project.morganaxdm.XdmSequence
com.xml_project.morganaxdm.XdmItem
com.xml_project.morganaxdm.XdmValue
com.xml_project.morganaxdm.XS_AnySimpleType
com.xml_project.morganaxdm.XS_ListType
com.xml_project.morganaxdm.XS_NMTOKENS
- All Implemented Interfaces:
- XS_AnyType, java.lang.Iterable<XdmItem>
public class XS_NMTOKENS
- extends XS_ListType
Implementation of xs:NMTokens
Field Summary |
static javax.xml.namespace.QName |
TheType
|
Constructor Summary |
protected |
XS_NMTOKENS(java.lang.String[] tokens,
java.lang.String tokenString)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TheType
public static final javax.xml.namespace.QName TheType
XS_NMTOKENS
protected XS_NMTOKENS(java.lang.String[] tokens,
java.lang.String tokenString)
getTypeName
public javax.xml.namespace.QName getTypeName()
newInstance
public static XS_NMTOKENS newInstance(XdmValue value)
throws XPathException
- Throws:
XPathException
compareValues
public int compareValues(XS_AnySimpleType val,
com.xml_project.morganaxquery.configuration.Collation collation,
XS_dayTimeDuration implicitTimezone)
throws XPathException
- Specified by:
compareValues
in class XS_AnySimpleType
- Throws:
XPathException
getStringValue
public java.lang.String getStringValue()
- Description copied from class:
XdmItem
- Returns the string value.
- Specified by:
getStringValue
in class XdmItem
- Returns:
- the string value.
getValue
public java.lang.Object getValue()
- Description copied from class:
XdmItem
- Returns the value itself.
- Specified by:
getValue
in class XdmItem
- Returns:
- the value.
size
public long size()
- Description copied from class:
XdmSequence
- Returns the number of elements in this sequence.
Invoking this method will convert the underlying sequence to a materialized
sequence which will take time and cost memory. See also get(n).
- Specified by:
size
in class XS_ListType
- Returns:
- the number of elements in this sequence.
get
public XdmValue get(long nr)
- Description copied from class:
XdmSequence
- Returns the n-th element of the sequence, counting by 1.
Invoking this method will convert the underlying sequence to a materialized
sequence which will take time and cost memory. See also size().
- Specified by:
get
in class XS_ListType
- Parameters:
nr
- the number of the element, based by 1!
- Returns:
- the element on the given position.