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 int
protected JPropWriteContext
protected String
Name of the field of which value is to be parsed; only used for OBJECT contextsprotected Object
Value that is being serialized and caused this context to be created; typically a POJO or container type.protected boolean
Marker used to indicate that we just received a name, and now expect a valueprotected final JPropWriteContext
Parent context for this context; null for root context.Fields inherited from class com.fasterxml.jackson.core.JsonStreamContext
_index, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JPropWriteContext
(int type, JPropWriteContext parent, int basePathLength) -
Method Summary
Modifier and TypeMethodDescriptioncreateChildArrayContext
(int basePathLength) createChildObjectContext
(int basePathLength) static JPropWriteContext
static JPropWriteContext
createRootContext
(int basePathLength) final JPropWriteContext
private void
reset
(int type, int basePathLength) void
final String
toString()
Overridden to provide developer JsonPointer representation of the context.void
boolean
writeFieldName
(String name) boolean
Methods inherited from class com.fasterxml.jackson.core.JsonStreamContext
getCurrentIndex, getEntryCount, getStartLocation, getTypeDesc, hasCurrentIndex, hasCurrentName, hasPathSegment, inArray, inObject, inRoot, pathAsPointer, pathAsPointer, 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:
getParent
in classcom.fasterxml.jackson.core.JsonStreamContext
-
getCurrentName
- Specified by:
getCurrentName
in classcom.fasterxml.jackson.core.JsonStreamContext
-
getCurrentValue
- Overrides:
getCurrentValue
in classcom.fasterxml.jackson.core.JsonStreamContext
-
setCurrentValue
- Overrides:
setCurrentValue
in classcom.fasterxml.jackson.core.JsonStreamContext
-
appendDesc
-
toString
Overridden to provide developer JsonPointer representation of the context.- Overrides:
toString
in classcom.fasterxml.jackson.core.JsonStreamContext
-