com.sap.mw.jco
Class JCO.FieldIterator

java.lang.Object
  |
  +--com.sap.mw.jco.JCO.FieldIterator
Enclosing class:
JCO

public static class JCO.FieldIterator
extends java.lang.Object

Encapsulates an iterator for the fields of a record


Constructor Summary
JCO.FieldIterator(JCO.Record rec)
           
 
Method Summary
 boolean hasMoreElements()
          Tests if this enumeration contains more elements.
 boolean hasMoreFields()
          Tests if this enumeration contains more fields.
 boolean hasNextFields()
          Tests if this enumeration contains more fields.
 boolean hasPreviousFields()
          Tests if this enumeration contains more fields.
 java.lang.Object nextElement()
          Returns the next element of this enumeration.
 JCO.Field nextField()
          Returns the next field of this enumeration.
 JCO.Field previousField()
          Returns the previous field of this enumeration.
 void reset()
          Resets the iterator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCO.FieldIterator

public JCO.FieldIterator(JCO.Record rec)
Method Detail

reset

public void reset()
Resets the iterator

hasMoreElements

public boolean hasMoreElements()
Tests if this enumeration contains more elements.
Returns:
true if this enumeration contains more elements; false otherwise.

hasMoreFields

public boolean hasMoreFields()
Tests if this enumeration contains more fields.
Returns:
true if this enumeration contains more fields; false otherwise.

hasNextFields

public boolean hasNextFields()
Tests if this enumeration contains more fields.
Returns:
true if this enumeration contains more fields; false otherwise.

hasPreviousFields

public boolean hasPreviousFields()
Tests if this enumeration contains more fields.
Returns:
true if this enumeration contains more fields; false otherwise.

nextElement

public java.lang.Object nextElement()
Returns the next element of this enumeration.
Returns:
the next element of this enumeration.
Throws:
NoSuchElementException - if no more elements exist.

nextField

public JCO.Field nextField()
Returns the next field of this enumeration.
Returns:
the next field of this enumeration.
Throws:
NoSuchElementException - if no more elements exist.

previousField

public JCO.Field previousField()
Returns the previous field of this enumeration.
Returns:
the previous field of this enumeration.
Throws:
NoSuchElementException - if no more elements exist.