public class NestedAttributesMapJsonParser extends CurrentPathJsonParser
JsonParser
that holds state for communicating with a NestedAttributesMap
. This mostly will be
valuable for parsing and merging multiple json objects into a give NestedAttributesMap
Constructor and Description |
---|
NestedAttributesMapJsonParser(com.fasterxml.jackson.core.JsonParser jsonParser,
org.sonatype.nexus.common.collect.NestedAttributesMap root) |
Modifier and Type | Method and Description |
---|---|
void |
disableDefaultMapping()
Inform parser that special mapping should occur over using the default Jackson mapping.
|
void |
enableDefaultMapping()
Inform parser that no special mapping should occur but the default Jackson mapping should be followed.
|
org.sonatype.nexus.common.collect.NestedAttributesMap |
getChildFromRoot()
Attempt to retrieve the
NestedAttributesMap that is associated with
the current path, if parts of the path are not existing they will
be manually created by the NestedAttributesMap.child(String) for that path part. |
org.sonatype.nexus.common.collect.NestedAttributesMap |
getRoot() |
boolean |
isDefaultMapping() |
boolean |
isMappingInsideArray() |
void |
markMappingInsideArray()
Inform parser that the current position is inside an array.
|
void |
unMarkMappingInsideArray()
Inform parser that the current position has existed an array.
|
currentPath, currentPathInParts, currentPointer
canParseAsync, canReadObjectId, canReadTypeId, canUseSchema, clearCurrentToken, close, configure, currentToken, currentTokenId, disable, enable, finishToken, getBigIntegerValue, getBinaryValue, getBinaryValue, getBooleanValue, getByteValue, getCodec, getCurrentLocation, getCurrentName, getCurrentToken, getCurrentTokenId, getCurrentValue, getDecimalValue, getDoubleValue, getEmbeddedObject, getFeatureMask, getFloatValue, getFormatFeatures, getInputSource, getIntValue, getLastClearedToken, getLongValue, getNonBlockingInputFeeder, getNumberType, getNumberValue, getObjectId, getParsingContext, getSchema, getShortValue, getText, getText, getTextCharacters, getTextLength, getTextOffset, getTokenLocation, getTypeId, getValueAsBoolean, getValueAsBoolean, getValueAsDouble, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, getValueAsString, getValueAsString, hasCurrentToken, hasTextCharacters, hasToken, hasTokenId, isClosed, isEnabled, isExpectedStartArrayToken, isExpectedStartObjectToken, isNaN, nextBooleanValue, nextFieldName, nextFieldName, nextIntValue, nextLongValue, nextTextValue, nextToken, nextValue, overrideCurrentName, overrideFormatFeatures, overrideStdFeatures, readBinaryValue, readBinaryValue, readValueAs, readValueAs, readValueAsTree, readValuesAs, readValuesAs, releaseBuffered, releaseBuffered, requiresCustomCodec, setCodec, setCurrentValue, setFeatureMask, setRequestPayloadOnError, setRequestPayloadOnError, setRequestPayloadOnError, setSchema, skipChildren, version
public NestedAttributesMapJsonParser(com.fasterxml.jackson.core.JsonParser jsonParser, org.sonatype.nexus.common.collect.NestedAttributesMap root)
@Nullable public org.sonatype.nexus.common.collect.NestedAttributesMap getChildFromRoot()
NestedAttributesMap
that is associated with
the current path, if parts of the path are not existing they will
be manually created by the NestedAttributesMap.child(String)
for that path part.public void markMappingInsideArray()
public void unMarkMappingInsideArray()
public void enableDefaultMapping()
public void disableDefaultMapping()
public org.sonatype.nexus.common.collect.NestedAttributesMap getRoot()
public boolean isMappingInsideArray()
public boolean isDefaultMapping()
Copyright © 2008–2021 Sonatype, Inc.. All rights reserved.