Package org.beanio.internal.parser
Interface Iteration
-
- All Known Implementing Classes:
Aggregation,ArrayParser,CollectionParser,MapParser
public interface IterationRepeating components must implementIterationto offset record positions during marshalling and unmarshalling.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetIterationIndex(ParsingContext context)Returns the index of the current iteration relative to its parent.intgetIterationSize()Returns the size of the components that make up a single iteration.booleanisDynamicIteration()Returns whether the iteration size is variable based on another field in the record.
-
-
-
Method Detail
-
getIterationIndex
int getIterationIndex(ParsingContext context)
Returns the index of the current iteration relative to its parent.- Returns:
- the index of the current iteration
-
getIterationSize
int getIterationSize()
Returns the size of the components that make up a single iteration.- Returns:
- the iteration size
-
isDynamicIteration
boolean isDynamicIteration()
Returns whether the iteration size is variable based on another field in the record.- Returns:
- true if variable, false otherwise
-
-