BeanIO 2.0.4

org.beanio.internal.parser
Interface Iteration

All Known Implementing Classes:
Aggregation, ArrayParser, CollectionParser, MapParser

public interface Iteration

Repeating components must implement Iteration to offset record positions during marshalling and unmarshalling.

Since:
2.0
Author:
Kevin Seim

Method Summary
 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.
 

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

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim