org.beanio.internal.parser.format.json
Class JsonUnmarshallingContext
java.lang.Object
org.beanio.internal.parser.ParsingContext
org.beanio.internal.parser.UnmarshallingContext
org.beanio.internal.parser.format.json.JsonUnmarshallingContext
public class JsonUnmarshallingContext
- extends UnmarshallingContext
An UnmarshallingContext
for JSON formatted streams.
- Since:
- 2.0
- Author:
- Kevin Seim
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonUnmarshallingContext
public JsonUnmarshallingContext(int maxDepth)
- Constructs a new JsonUnmarshallingContext.
- Parameters:
maxDepth
- the maximum depth of the all JsonWrapper
components in the parser tree layout.
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:
Copyright © 2010-2013 Kevin Seim