com.xml_project.morganaxproc.xdm
Class XS_ListType
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
- All Implemented Interfaces:
- XS_AnyType, Iterable<XdmItem>
- Direct Known Subclasses:
- XS_NMTOKENS
public abstract class XS_ListType
- extends XS_AnySimpleType
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.XdmValue |
atomize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XS_ListType
public XS_ListType()
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