com.xml_project.morganaxdm
Class XS_NMTOKENS

java.lang.Object
  extended by com.xml_project.morganaxdm.XdmSequence
      extended by com.xml_project.morganaxdm.XdmItem
          extended by com.xml_project.morganaxdm.XdmValue
              extended by com.xml_project.morganaxdm.XS_AnySimpleType
                  extended by com.xml_project.morganaxdm.XS_ListType
                      extended by 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)
           
 
Method Summary
 int compareValues(XS_AnySimpleType val, com.xml_project.morganaxquery.configuration.Collation collation, XS_dayTimeDuration implicitTimezone)
           
 XdmValue get(long nr)
          Returns the n-th element of the sequence, counting by 1.
 java.lang.String getStringValue()
          Returns the string value.
 javax.xml.namespace.QName getTypeName()
           
 java.lang.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.morganaxdm.XS_ListType
iterator
 
Methods inherited from class com.xml_project.morganaxdm.XS_AnySimpleType
compareValues, getRestrictionBase, isValue
 
Methods inherited from class com.xml_project.morganaxdm.XdmValue
atomize
 
Methods inherited from class com.xml_project.morganaxdm.XdmItem
first, hasValues, isEmpty, subSequence
 
Methods inherited from class com.xml_project.morganaxdm.XdmSequence
concat, hasCommonType, normalize, serialize, serialize, 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 javax.xml.namespace.QName TheType
Constructor Detail

XS_NMTOKENS

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

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.