org.exist.fluent
Class ItemList.ValuesFacet

java.lang.Object
  extended by org.exist.fluent.ItemList.ValuesFacet
All Implemented Interfaces:
Iterable<String>
Enclosing class:
ItemList

public class ItemList.ValuesFacet
extends Object
implements Iterable<String>

A facet that treats each item in the list as its effective string value. Atomic values are converted to strings, while nodes are converted to the concatenation of all their text descendants (note: not serialized!).


Method Summary
 List<String> asList()
          Return an unmodifiable list view over the effective string values of the item list.
 boolean equals(Object o)
           
 int hashCode()
           
 Iterator<String> iterator()
          Return an iterator over the effective string values of the item list.
 String[] toArray()
          Convert the list of effective string values to an array.
 String[] toArray(String[] a)
          Convert the list of effective string values to an array.
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

iterator

public Iterator<String> iterator()
Return an iterator over the effective string values of the item list.

Specified by:
iterator in interface Iterable<String>
Returns:
a string value iterator

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

asList

public List<String> asList()
Return an unmodifiable list view over the effective string values of the item list.

Returns:
a list view

toArray

public String[] toArray()
Convert the list of effective string values to an array.

Returns:
an array of effective string values

toArray

public String[] toArray(String[] a)
Convert the list of effective string values to an array. If the supplied array is sufficient for holding the strings, use it; if it's larger than necessary, put a null after the end of the list. If the array is too small, allocate a new one.

Parameters:
a - an array to fill with effective string values
Returns:
an array of effective string values

toString

public String toString()
Overrides:
toString in class Object


Copyright (C) All rights reserved.