Package org.beanio.internal.parser
Interface Iteration
-
- All Known Implementing Classes:
Aggregation
,ArrayParser
,CollectionParser
,MapParser
public interface Iteration
Repeating components must implementIteration
to offset record positions during marshalling and unmarshalling.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getIterationIndex(ParsingContext context)
Returns the index of the current iteration relative to its parent.int
getIterationSize()
Returns the size of the components that make up a single iteration.boolean
isDynamicIteration()
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
-
-