Class JPropWriteContext
java.lang.Object
com.fasterxml.jackson.core.JsonStreamContext
com.fasterxml.jackson.dataformat.javaprop.io.JPropWriteContext
public class JPropWriteContext
extends com.fasterxml.jackson.core.JsonStreamContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected JPropWriteContextprotected StringName of the field of which value is to be parsed; only used for OBJECT contextsprotected ObjectValue that is being serialized and caused this context to be created; typically a POJO or container type.protected booleanMarker used to indicate that we just received a name, and now expect a valueprotected final JPropWriteContextParent context for this context; null for root context.Fields inherited from class com.fasterxml.jackson.core.JsonStreamContext
_index, _nestingDepth, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJPropWriteContext(int type, JPropWriteContext parent, int basePathLength) -
Method Summary
Modifier and TypeMethodDescriptioncreateChildArrayContext(int basePathLength) createChildObjectContext(int basePathLength) static JPropWriteContextstatic JPropWriteContextcreateRootContext(int basePathLength) final JPropWriteContextprivate voidreset(int type, int basePathLength) voidfinal StringtoString()Overridden to provide developer JsonPointer representation of the context.voidbooleanwriteFieldName(String name) booleanMethods inherited from class com.fasterxml.jackson.core.JsonStreamContext
getCurrentIndex, getEntryCount, getNestingDepth, getStartLocation, getTypeDesc, hasCurrentIndex, hasCurrentName, hasPathSegment, inArray, inObject, inRoot, pathAsPointer, pathAsPointer, startLocation, typeDesc
-
Field Details
-
_parent
Parent context for this context; null for root context. -
_child
-
_currentValue
Value that is being serialized and caused this context to be created; typically a POJO or container type. -
_gotName
protected boolean _gotNameMarker used to indicate that we just received a name, and now expect a value -
_currentName
Name of the field of which value is to be parsed; only used for OBJECT contexts -
_basePathLength
protected int _basePathLength
-
-
Constructor Details
-
JPropWriteContext
-
-
Method Details
-
reset
private void reset(int type, int basePathLength) -
createRootContext
-
createRootContext
-
createChildArrayContext
-
createChildObjectContext
-
writeFieldName
public boolean writeFieldName(String name) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
writeValue
public boolean writeValue() -
truncatePath
-
getParent
- Specified by:
getParentin classcom.fasterxml.jackson.core.JsonStreamContext
-
getCurrentName
- Specified by:
getCurrentNamein classcom.fasterxml.jackson.core.JsonStreamContext
-
getCurrentValue
- Overrides:
getCurrentValuein classcom.fasterxml.jackson.core.JsonStreamContext
-
setCurrentValue
- Overrides:
setCurrentValuein classcom.fasterxml.jackson.core.JsonStreamContext
-
appendDesc
-
toString
Overridden to provide developer JsonPointer representation of the context.- Overrides:
toStringin classcom.fasterxml.jackson.core.JsonStreamContext
-