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
AnUnmarshallingContext
for JSON formatted streams.- Since:
- 2.0
-
-
Field Summary
-
Fields inherited from class org.beanio.internal.parser.ParsingContext
MARSHALLING, UNMARSHALLING
-
-
Constructor Summary
Constructors Constructor Description JsonUnmarshallingContext(int maxDepth)
Constructs a newJsonUnmarshallingContext
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getValue(JsonNode node)
java.lang.Object
pop()
java.lang.Object
push(JsonNode node, boolean validate)
void
setRecordValue(java.lang.Object value)
Sets the value of the record returned from theRecordReader
-
Methods inherited from class org.beanio.internal.parser.UnmarshallingContext
addFieldError, addRecordError, addRecordError, getLineNumber, getLocale, getMessageFactory, getMode, getRecordContext, getRecordCount, getRecordReader, getTextLengthCounter, 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
clear, createHeap, getAdjustedFieldPosition, getLocal, getRelativeFieldIndex, isRepeating, popIteration, pushIteration, setLocal
-
-
-
-
Constructor Detail
-
JsonUnmarshallingContext
public JsonUnmarshallingContext(int maxDepth)
Constructs a newJsonUnmarshallingContext
.- Parameters:
maxDepth
- the maximum depth of the allJsonWrapper
components in the parser tree layout.
-
-
Method Detail
-
setRecordValue
public void setRecordValue(java.lang.Object value)
Description copied from class:UnmarshallingContext
Sets the value of the record returned from theRecordReader
- Specified by:
setRecordValue
in classUnmarshallingContext
- Parameters:
value
- the record value read by a record reader- See Also:
RecordReader
-
getValue
public java.lang.Object getValue(JsonNode node)
- Parameters:
node
-- Returns:
-
push
public java.lang.Object push(JsonNode node, boolean validate)
- Parameters:
node
-validate
-- Returns:
-
pop
public java.lang.Object pop()
- Returns:
-
-