Class PDataFieldSpecification.SpecIterator

java.lang.Object
com.portal.bas.PDataFieldSpecification.SpecIterator
All Implemented Interfaces:
Iterator
Enclosing class:
PDataFieldSpecification

public class PDataFieldSpecification.SpecIterator extends Object implements Iterator
Iterates through the list of of fields in the specification. This iterator has additional functionality, which requires that it be public.
  • Method Details

    • hasNext

      public boolean hasNext()
      Determines whether there is another element.
      Specified by:
      hasNext in interface Iterator
      Returns:
      True if there is another element; false otherwise.
    • next

      public Object next() throws NoSuchElementException
      Returns the next element, which is always a Field object.
      Specified by:
      next in interface Iterator
      Returns:
      A Field object.
      Throws:
      NoSuchElementException - thrown if the element is not present
    • getElement

      public int getElement()
      Returns the element number within the array if the Field object returned by the last call to next() was an array field. It returns -1 for the "first or any" element, and -2 if no element was specified (an open array).
      Returns:
      An element number.
    • getRemainder

      public PDataFieldSpecification getRemainder()
      Gets the remainder of the specification. Returns the specification, minus the fields iterated. The specification does not include the current field.
      Returns:
      A PDataFieldSpecification.
    • remove

      public void remove()
      Remote the current field from the specification.
      Specified by:
      remove in interface Iterator