Package com.portal.bas
Class PDataFieldSpecification.SpecIterator
java.lang.Object
com.portal.bas.PDataFieldSpecification.SpecIterator
- All Implemented Interfaces:
Iterator
- Enclosing class:
PDataFieldSpecification
Iterates through the list of of fields in the specification. This iterator has
additional functionality, which requires that it be public.
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the element number within the array if theFieldobject returned by the last call tonext()was an array field.Gets the remainder of the specification.booleanhasNext()Determines whether there is another element.next()Returns the next element, which is always aFieldobject.voidremove()Remote the current field from the specification.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Method Details
-
hasNext
public boolean hasNext()Determines whether there is another element. -
next
Returns the next element, which is always aFieldobject.- Specified by:
nextin interfaceIterator- Returns:
- A
Fieldobject. - Throws:
NoSuchElementException- thrown if the element is not present
-
getElement
public int getElement()Returns the element number within the array if theFieldobject returned by the last call tonext()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
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.
-