| 
 | 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.ParserLocal<T>
T - the variable typepublic class ParserLocal<T>
Used to create a reference to a variable held by a ParsingContext.
| Constructor Summary | |
|---|---|
| ParserLocal()Constructs a new ParserLocal. | |
| ParserLocal(T defaultValue)Constructs a new ParserLocal. | |
| Method Summary | |
|---|---|
| protected  T | createDefaultValue()Called when initialized to return a default value. | 
|  T | get(ParsingContext context)Gets the value. | 
|  void | init(int index,
     ParsingContext context)Initializes the variable. | 
|  void | set(ParsingContext context,
    T obj)Sets the value. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ParserLocal()
public ParserLocal(T defaultValue)
defaultValue - the default value| Method Detail | 
|---|
protected T createDefaultValue()
public final void init(int index,
                       ParsingContext context)
index - the index of the variable in the heapcontext - the ParsingContext being initializedpublic final T get(ParsingContext context)
context - the ParsingContext to get the value from
public final void set(ParsingContext context,
                      T obj)
context - the ParsingContext to set the value onobj - the value| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||