|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.exist.fluent.Resource org.exist.fluent.ItemList
public class ItemList
The result of a query on the database, holding a collection of items. The items can be accessed either as structured resources or as string values. It is also possible to further refine the query by executing queries within the context of the results.
Nested Class Summary | |
---|---|
class |
ItemList.NodesFacet
A facet that treats each item in the list as a node. |
class |
ItemList.ValuesFacet
A facet that treats each item in the list as its effective string value. |
Method Summary | |
---|---|
List<Item> |
asList()
Return an unmodifiable list view over the list of items. |
void |
deleteAllNodes()
Delete all nodes contained in this item list; skip over any items (values) that it doesn't make sense to try to delete. |
boolean |
equals(Object o)
|
Item |
get(int index)
Return the item at the given index in this result. |
int |
hashCode()
The hash code computation can be expensive, and the hash codes may not be very well distributed. |
boolean |
isEmpty()
Return whether this item list is empty. |
Iterator<Item> |
iterator()
Return an iterator over all the items in this list. |
ItemList.NodesFacet |
nodes()
Return a view of this item list as a list of nodes. |
void |
removeDeletedNodes()
Remove all deleted nodes from this list. |
int |
size()
Return the number of elements in this item list. |
Item[] |
toArray()
Convert this list of items to an array. |
Item[] |
toArray(Item[] a)
Convert this list of items to an array. |
String |
toString()
|
ItemList.ValuesFacet |
values()
Return a view of this item list as a list of effective string values. |
Methods inherited from class org.exist.fluent.Resource |
---|
database, namespaceBindings, query |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void removeDeletedNodes()
public int size()
public boolean isEmpty()
true
if this item list has no elementspublic Item get(int index)
index
- the index of the desired item
IndexOutOfBoundsException
- if the index is out of boundspublic void deleteAllNodes()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Iterator<Item> iterator()
iterator
in interface Iterable<Item>
public List<Item> asList()
public Item[] toArray()
public Item[] toArray(Item[] a)
null
marker after the end of the list. If the
array is not large enough, allocate a new one.
a
- the array to fill with items
public String toString()
toString
in class Object
public ItemList.ValuesFacet values()
public ItemList.NodesFacet nodes()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |