|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xml_project.morganaxproc.xdm.XdmSequence
com.xml_project.morganaxproc.xdm.XdmItem
public abstract class XdmItem
The basic value token in XDM: Either a value (atomic, map or array) or a node.
| Constructor Summary | |
|---|---|
XdmItem()
|
|
| Method Summary | |
|---|---|
AtomizingIterator |
atomize()
Returns an AtomizingIterator which gives access to the atomized value of the elements in this sequence. |
XdmItem |
first()
Returns the first item of this XdmSequence or throws a RuntimeException if sequence is empty. |
XdmItem |
get(long nr)
Returns the n-th element of the sequence, counting by 1. |
abstract String |
getStringValue()
Returns the string value. |
abstract Object |
getValue()
Returns the value itself. |
boolean |
hasValues()
Checks whether the sequences contains XdmValues as opposed to nodes. |
boolean |
isEmpty()
Checks whether the sequence is empty. |
abstract boolean |
isValue()
Flags, this item is a value as opposed to a node |
XdmItemIterator |
iterator()
Returns an iterator over this XdmSequence. |
long |
size()
Returns the number of elements in this sequence. |
XdmSequence |
subSequence(long first,
Double length)
Creates a new sequence which contains the element (first..length) of this sequence. |
| 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 |
| Constructor Detail |
|---|
public XdmItem()
| Method Detail |
|---|
public abstract String getStringValue()
getStringValue in class XdmSequencepublic abstract Object getValue()
public abstract boolean isValue()
public XdmItemIterator iterator()
XdmSequence
iterator in interface Iterable<XdmItem>iterator in class XdmSequence
public XdmItem first()
throws RuntimeException
XdmSequence
first in class XdmSequenceRuntimeException - if the sequence is empty.public XdmItem get(long nr)
XdmSequence
get in class XdmSequencenr - the number of the element, based by 1!
public AtomizingIterator atomize()
throws XPathException
XdmSequence
atomize in class XdmSequenceXPathException - thrown, if the sequence contains elements which cannot be atomized.public long size()
XdmSequence
size in class XdmSequencepublic boolean hasValues()
XdmSequence
hasValues in class XdmSequencepublic boolean isEmpty()
XdmSequence
isEmpty in class XdmSequence
public XdmSequence subSequence(long first,
Double length)
throws XPathException
XdmSequence
subSequence in class XdmSequencefirst - the first element (counting by 1) to include.length - the number of elements to include.
XPathException - thrown the sequence cannot be created.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||