| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.beanio.internal.parser.ParsingContext
public abstract class ParsingContext
Base class for the parsing context- marshalling or unmarshaling.
| Field Summary | |
|---|---|
| static char | MARSHALLINGMarsalling mode | 
| static char | UNMARSHALLINGUnmarshalling mode | 
| Constructor Summary | |
|---|---|
| ParsingContext()Constructs a new ParsingContext. | |
| Method Summary | |
|---|---|
|  void | createHeap(int size) | 
|  int | getAdjustedFieldPosition(int position)Calculates a field position by adjusting for any applied iterations. | 
|  Object | getLocal(int index) | 
| abstract  char | getMode()Returns the parsing mode. | 
|  int | getRelativeFieldIndex()Returns the current field index relative to any current iteration. | 
|  boolean | isRepeating()Returns whether a repeating segment or field is being parsed. | 
|  Iteration | popIteration()Pops the last Iterationpushed onto the stack. | 
|  void | pushIteration(Iteration iteration)Pushes an Iterationonto a stack for adjusting
 field positions and indices. | 
|  void | setLocal(int index,
         Object obj) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final char UNMARSHALLING
public static final char MARSHALLING
| Constructor Detail | 
|---|
public ParsingContext()
| Method Detail | 
|---|
public abstract char getMode()
UNMARSHALLING or MARSHALLINGpublic void pushIteration(Iteration iteration)
Iteration onto a stack for adjusting
 field positions and indices.
iteration - the Iteration to pushpopIteration()public Iteration popIteration()
Iteration pushed onto the stack.
pushIteration(Iteration)public final int getAdjustedFieldPosition(int position)
position - the field position to adjust (i.e. the position of the first
   occurrence of the field)
public final int getRelativeFieldIndex()
public final boolean isRepeating()
public final void createHeap(int size)
public final Object getLocal(int index)
public final void setLocal(int index,
                           Object obj)
| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||