BeanIO 2.0.4

org.beanio.internal.parser.format.json
Class JsonUnmarshallingContext

java.lang.Object
  extended by org.beanio.internal.parser.ParsingContext
      extended by org.beanio.internal.parser.UnmarshallingContext
          extended by org.beanio.internal.parser.format.json.JsonUnmarshallingContext

public class JsonUnmarshallingContext
extends UnmarshallingContext

An UnmarshallingContext for JSON formatted streams.

Since:
2.0
Author:
Kevin Seim

Field Summary
 
Fields inherited from class org.beanio.internal.parser.ParsingContext
MARSHALLING, UNMARSHALLING
 
Constructor Summary
JsonUnmarshallingContext(int maxDepth)
          Constructs a new JsonUnmarshallingContext.
 
Method Summary
 Object getValue(JsonNode node)
           
 Object pop()
           
 Object push(JsonNode node, boolean validate)
           
 void setRecordValue(Object value)
          Sets the value of the record returned from the RecordReader
 
Methods inherited from class org.beanio.internal.parser.UnmarshallingContext
addFieldError, addRecordError, addRecordError, getLineNumber, getLocale, getMessageFactory, getMode, getRecordContext, getRecordCount, getRecordReader, hasFieldErrors, hasRecordErrors, isEOF, newMalformedRecordException, newUnsatisfiedGroupException, newUnsatisfiedRecordException, nextRecord, prepare, recordCompleted, recordException, recordSkipped, recordStarted, recordUnexpectedException, recordUnidentifiedException, setFieldText, setLocale, setMessageFactory, setRecordReader, toRecordValue, toRecordValue, toRecordValue, validate
 
Methods inherited from class org.beanio.internal.parser.ParsingContext
createHeap, getAdjustedFieldPosition, getLocal, getRelativeFieldIndex, isRepeating, popIteration, pushIteration, setLocal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonUnmarshallingContext

public JsonUnmarshallingContext(int maxDepth)
Constructs a new JsonUnmarshallingContext.

Parameters:
maxDepth - the maximum depth of the all JsonWrapper components in the parser tree layout.
Method Detail

setRecordValue

public void setRecordValue(Object value)
Description copied from class: UnmarshallingContext
Sets the value of the record returned from the RecordReader

Specified by:
setRecordValue in class UnmarshallingContext
Parameters:
value - the record value read by a record reader
See Also:
RecordReader

getValue

public Object getValue(JsonNode node)
Parameters:
node -
Returns:

push

public Object push(JsonNode node,
                   boolean validate)
Parameters:
node -
validate -
Returns:

pop

public Object pop()
Returns:

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim