com.xml_project.morganaxproc.xdm
Class XS_NMTOKENS
java.lang.Object
com.xml_project.morganaxproc.xdm.XdmSequence
com.xml_project.morganaxproc.xdm.XdmItem
com.xml_project.morganaxproc.xdm.XdmValue
com.xml_project.morganaxproc.xdm.XS_AnySimpleType
com.xml_project.morganaxproc.xdm.XS_ListType
com.xml_project.morganaxproc.xdm.XS_NMTOKENS
- All Implemented Interfaces:
- XS_AnyType, Iterable<XdmItem>
public class XS_NMTOKENS
- extends XS_ListType
Implementation of xs:NMTokens
Methods inherited from class com.xml_project.morganaxproc.xdm.XdmValue |
atomize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TheType
public static final QName TheType
XS_NMTOKENS
protected XS_NMTOKENS(String[] tokens,
String tokenString)
getTypeName
public QName getTypeName()
newInstance
public static XS_NMTOKENS newInstance(XdmValue value)
throws XPathException
- Throws:
XPathException
compareValues
public int compareValues(XS_AnySimpleType val,
com.xml_project.morganaxproc.xquery.configuration.Collation collation,
XS_dayTimeDuration implicitTimezone)
throws XPathException
- Specified by:
compareValues
in class XS_AnySimpleType
- Throws:
XPathException
getStringValue
public String getStringValue()
- Description copied from class:
XdmItem
- Returns the string value.
- Specified by:
getStringValue
in class XdmItem
- Returns:
- the string value.
getValue
public 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.