|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.xml_project.morganaxdm.XdmSequence com.xml_project.morganaxdm.EmptySequence
public class EmptySequence
A singleton class representing an empty sequence. There is no guarantee, all empty sequences will be instances of this class.
Field Summary | |
---|---|
static EmptySequence |
EmptySequence
The empty sequence. |
Method Summary | |
---|---|
XdmItem |
first()
Returns the first item of this XdmSequence or throws a RuntimeException if sequence is empty. |
XdmItem |
get(int nr)
|
boolean |
hasNext()
|
XdmItemIterator |
iterator()
Returns an iterator over this XdmSequence. |
XdmItem |
next()
|
void |
remove()
Not implementated for this Iterator |
long |
size()
Returns the number of elements in this sequence. |
Methods inherited from class com.xml_project.morganaxdm.XdmSequence |
---|
atomize, concat, get, getStringValue, hasCommonType, hasValues, isEmpty, normalize, serialize, serialize, serialize, subSequence, wrap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final EmptySequence EmptySequence
Method Detail |
---|
public XdmItem get(int nr)
public long size()
XdmSequence
size
in class XdmSequence
public XdmItemIterator iterator()
XdmSequence
iterator
in interface java.lang.Iterable<XdmItem>
iterator
in class XdmSequence
public boolean hasNext()
hasNext
in interface java.util.Iterator<XdmItem>
public XdmItem next()
next
in interface java.util.Iterator<XdmItem>
public void remove()
remove
in interface java.util.Iterator<XdmItem>
public XdmItem first() throws java.lang.RuntimeException
XdmSequence
first
in class XdmSequence
java.lang.RuntimeException
- if the sequence is empty.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |