com.xml_project.morganaxproc.xdm
Class XS_ListType

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
All Implemented Interfaces:
XS_AnyType, Iterable<XdmItem>
Direct Known Subclasses:
XS_NMTOKENS

public abstract class XS_ListType
extends XS_AnySimpleType


Constructor Summary
XS_ListType()
           
 
Method Summary
abstract  XdmValue get(long pos)
          Returns the n-th element of the sequence, counting by 1.
 XdmItemIterator iterator()
          Returns an iterator over this XdmSequence.
abstract  long size()
          Returns the number of elements in this sequence.
 
Methods inherited from class com.xml_project.morganaxproc.xdm.XS_AnySimpleType
compareValues, 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, getStringValue, getValue, 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
 
Methods inherited from interface com.xml_project.morganaxproc.xdm.XS_AnyType
getTypeName
 

Constructor Detail

XS_ListType

public XS_ListType()
Method Detail

size

public abstract 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).

Overrides:
size in class XdmItem
Returns:
the number of elements in this sequence.

get

public abstract XdmValue get(long pos)
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().

Overrides:
get in class XdmItem
Parameters:
pos - the number of the element, based by 1!
Returns:
the element on the given position.

iterator

public XdmItemIterator iterator()
Description copied from class: XdmSequence
Returns an iterator over this XdmSequence.

Specified by:
iterator in interface Iterable<XdmItem>
Overrides:
iterator in class XdmItem