com.sap.sca.escj.searchclient.source

Class SearchSourceHierarchyIterator

java.lang.Object
  extended by com.sap.sca.escj.searchclient.source.SearchSourceHierarchyIterator
All Implemented Interfaces:
Iterable<SearchSourceHierarchy>

public class SearchSourceHierarchyIterator
extends Object
implements Iterable<SearchSourceHierarchy>


Constructor Summary
protected SearchSourceHierarchyIterator(ArrayList<ListEntry> searchSourceChildren, String ssoCookie, String sessionCookie, String language, AbstractLogger logger)
          Constructs iterator over search sources
 
Method Summary
 int getSize()
          Returns the size of search source hierarchies list
 boolean hasNext()
          Returns true if the iteration has more search source hierarchies
 Iterator<SearchSourceHierarchy> iterator()
          Iterator over search source hierarchies
 SearchSourceHierarchy next()
          Returns the next search source hierarchy in the iteration
 void remove()
          Removes from the search source hierarchy collection the last element returned by the iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchSourceHierarchyIterator

protected SearchSourceHierarchyIterator(ArrayList<ListEntry> searchSourceChildren,
                                        String ssoCookie,
                                        String sessionCookie,
                                        String language,
                                        AbstractLogger logger)
Constructs iterator over search sources

Parameters:
searchSourceChildren - list of search source children
ssoCookie - SSO cookie
sessionCookie - session cookie
language - language
logger - logger
Method Detail

hasNext

public boolean hasNext()
Returns true if the iteration has more search source hierarchies

Returns:
true if the iterator has more search source hierarchies

next

public SearchSourceHierarchy next()
Returns the next search source hierarchy in the iteration

Returns:
the next search source hierarchy in the iteration

remove

public void remove()
            throws DescriptionException
Removes from the search source hierarchy collection the last element returned by the iterator

Throws:
DescriptionException
UnsupportedOperationException - this method is not supported by iterator over search source hierarchies

getSize

public int getSize()
Returns the size of search source hierarchies list

Returns:
size of search source hierarchies list

iterator

public Iterator<SearchSourceHierarchy> iterator()
Iterator over search source hierarchies

Specified by:
iterator in interface Iterable<SearchSourceHierarchy>
Returns:
iterator over search source hierarchies


Copyright 2011 SAP AG Complete Copyright Notice