com.sap.ip.me.api.smartsync
Interface DescriptorIterator

All Known Subinterfaces:
FieldDescriptorIterator, FieldGroupDescriptorIterator, RelationDescriptorIterator, RowDescriptorIterator, SyncBoDescriptorIterator

public interface DescriptorIterator

This is a generic interface based on the Iterator pattern.

The typical usage is:
while(descriptorIterator.hasNext()){
Object field = descriptorIterator.nextElement();
............................
............................
}

The number of objects in the iteration.
int Size = descriptorIterator.size();

Author:
I021268

Method Summary
 boolean hasNext()
          Returns the flag indicating whether the iteration has more elements or not.
 java.lang.Object nextElement()
          Returns the next Object in the iteration
 int size()
          The number of objects.
 

Method Detail

nextElement

public java.lang.Object nextElement()
Returns the next Object in the iteration

Returns:
the next element in the iteration

hasNext

public boolean hasNext()
Returns the flag indicating whether the iteration has more elements or not.

Returns:
true if the iterator has more elements; otherwise false

size

public int size()
The number of objects.

Returns:
Size of the objects in the iteration.


Copyright © 2005 SAP AG. All Rights Reserved.