com.xml_project.morganaxproc.xdm
Class XS_NMTOKENS

java.lang.Object
  extended by com.xml_project.morganaxproc.xdm.XdmSequence
      extended by com.xml_project.morganaxproc.xdm.XdmItem
          extended by com.xml_project.morganaxproc.xdm.XdmValue
              extended by com.xml_project.morganaxproc.xdm.XS_AnySimpleType
                  extended by com.xml_project.morganaxproc.xdm.XS_ListType
                      extended by 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


Field Summary
static QName TheType
           
 
Constructor Summary
protected XS_NMTOKENS(String[] tokens, String tokenString)
           
 
Method Summary
 int compareValues(XS_AnySimpleType val, com.xml_project.morganaxproc.xquery.configuration.Collation collation, XS_dayTimeDuration implicitTimezone)
           
 XdmValue get(long nr)
          Returns the n-th element of the sequence, counting by 1.
 String getStringValue()
          Returns the string value.
 QName getTypeName()
           
 Object getValue()
          Returns the value itself.
static XS_NMTOKENS newInstance(XdmValue value)
           
 long size()
          Returns the number of elements in this sequence.
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XS_ListType
iterator
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XS_AnySimpleType
compareValues, getRestrictionBase, isValue
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XdmValue
atomize
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XdmItem
first, hasValues, isEmpty, subSequence
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XdmSequence
concat, hasCommonType, normalize, serialize, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TheType

public static final QName TheType
Constructor Detail

XS_NMTOKENS

protected XS_NMTOKENS(String[] tokens,
                      String tokenString)
Method Detail

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.