|
|||||||||
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.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 java.lang.String |
getStringValue()
Returns the string value. |
abstract java.lang.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,
java.lang.Double length)
Creates a new sequence which contains the element (first..length) of this sequence. |
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 |
Constructor Detail |
---|
public XdmItem()
Method Detail |
---|
public abstract java.lang.String getStringValue()
getStringValue
in class XdmSequence
public abstract java.lang.Object getValue()
public abstract boolean isValue()
public XdmItemIterator iterator()
XdmSequence
iterator
in interface java.lang.Iterable<XdmItem>
iterator
in class XdmSequence
public XdmItem first() throws java.lang.RuntimeException
XdmSequence
first
in class XdmSequence
java.lang.RuntimeException
- if the sequence is empty.public XdmItem get(long nr)
XdmSequence
get
in class XdmSequence
nr
- the number of the element, based by 1!
public AtomizingIterator atomize() throws XPathException
XdmSequence
atomize
in class XdmSequence
XPathException
- thrown, if the sequence contains elements which cannot be atomized.public long size()
XdmSequence
size
in class XdmSequence
public boolean hasValues()
XdmSequence
hasValues
in class XdmSequence
public boolean isEmpty()
XdmSequence
isEmpty
in class XdmSequence
public XdmSequence subSequence(long first, java.lang.Double length) throws XPathException
XdmSequence
subSequence
in class XdmSequence
first
- 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 |