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 TypeMethodDescriptionint
Returns the element number within the array if theField
object returned by the last call tonext()
was an array field.Gets the remainder of the specification.boolean
hasNext()
Determines whether there is another element.next()
Returns the next element, which is always aField
object.void
remove()
Remote the current field from the specification.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 aField
object.- Specified by:
next
in interfaceIterator
- 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 theField
object 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.
-