Module tools.jackson.dataformat.xml
Class XmlDeserializationContext
java.lang.Object
tools.jackson.databind.DatabindContext
tools.jackson.databind.DeserializationContext
tools.jackson.databind.deser.DeserializationContextExt
tools.jackson.dataformat.xml.deser.XmlDeserializationContext
- All Implemented Interfaces:
tools.jackson.core.ObjectReadContext
public class XmlDeserializationContext
extends tools.jackson.databind.deser.DeserializationContextExt
XML-specific
DeserializationContext needed to override certain
handlers.-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.deser.DeserializationContextExt
tools.jackson.databind.deser.DeserializationContextExt.ImplNested classes/interfaces inherited from interface tools.jackson.core.ObjectReadContext
tools.jackson.core.ObjectReadContext.Base -
Field Summary
FieldsFields inherited from class tools.jackson.databind.deser.DeserializationContextExt
_objectIdsFields inherited from class tools.jackson.databind.DeserializationContext
_activeView, _arrayBuilders, _attributes, _cache, _classIntrospector, _config, _currentType, _dateFormat, _delegateBindDepth, _factory, _featureFlags, _injectableValues, _objectBuffer, _parser, _readCapabilities, _schema, _streamFactory -
Constructor Summary
ConstructorsConstructorDescriptionXmlDeserializationContext(tools.jackson.core.TokenStreamFactory tsf, tools.jackson.databind.deser.DeserializerFactory deserializerFactory, tools.jackson.databind.deser.DeserializerCache cache, tools.jackson.databind.DeserializationConfig config, tools.jackson.core.FormatSchema schema, tools.jackson.databind.InjectableValues values, XmlRootNameLookup rootNameLookup) -
Method Summary
Modifier and TypeMethodDescriptionprotected void_verifyRootElementName(FromXmlParser xp, tools.jackson.databind.JavaType valueType) Helper method for [dataformat-xml#247]: verify that the root element name matches the expected name whenXmlReadFeature.ENFORCE_ROOT_ELEMENT_NAMEis enabled.tools.jackson.databind.util.TokenBufferbufferForInputBuffering(tools.jackson.core.JsonParser p) Override to return XML-awareXmlTokenBufferthat produces parsers implementingElementWrappable, allowing virtual wrapping to be configured even after content has been buffered (e.g., during polymorphic type resolution).extractScalarFromObject(tools.jackson.core.JsonParser p, tools.jackson.databind.ValueDeserializer<?> deser, Class<?> scalarType) readRootValue(tools.jackson.core.JsonParser p, tools.jackson.databind.JavaType valueType, tools.jackson.databind.ValueDeserializer<Object> deser, Object valueToUpdate) Methods inherited from class tools.jackson.databind.deser.DeserializationContextExt
_unwrapAndDeserialize, addPendingForwardRef, assignAndReturnParser, assignParser, checkUnresolvedObjectId, createReadableObjectId, deserializerInstance, findObjectId, hasPendingForwardRefsFor, keyDeserializerInstance, removePendingForwardRef, tryToResolveUnresolvedObjectId, updateObjectIdMethods inherited from class tools.jackson.databind.DeserializationContext
_getDateFormat, _isCompatible, _shapeForToken, bufferAsCopyOfValue, bufferForInputBuffering, canOverrideAccessModifiers, classIntrospector, constructCalendar, constructSpecializedType, constructType, createArrayNode, createObjectNode, enterDelegateBindPending, exitDelegateBindPending, findClass, findCoercionAction, findCoercionFromBlankString, findContextualValueDeserializer, findInjectableValue, findKeyDeserializer, findNonContextualValueDeserializer, findPropertyContentTypeDeserializer, findPropertyTypeDeserializer, findRootName, findRootName, findRootValueDeserializer, findTypeDeserializer, findTypeDeserializer, flushCachedDeserializers, getActiveView, getAnnotationIntrospector, getArrayBuilders, getAttribute, getBase64Variant, getConfig, getContextualType, getDatatypeFeatures, getDefaultPropertyFormat, getDeserializationFeatures, getFormatReadFeatures, getLocale, getNodeFactory, getParser, getSchema, getStreamReadFeatures, getTimeZone, getTypeFactory, handleBadMerge, handleInstantiationProblem, handleMissingInstantiator, handleMissingTypeId, handleNullForPrimitives, handlePrimaryContextualization, handleSecondaryContextualization, handleUnexpectedToken, handleUnexpectedToken, handleUnexpectedToken, handleUnknownProperty, handleUnknownTypeId, handleWeirdKey, handleWeirdNativeValue, handleWeirdNumberValue, handleWeirdStringValue, hasDeserializationFeatures, hasExplicitDeserializerFor, hasSomeOfFeatures, instantiationException, instantiationException, introspectBeanDescription, introspectBeanDescriptionForBuilder, introspectBeanDescriptionForCreation, introspectBeanDescriptionForCreation, invalidTypeIdException, isDelegateBindPending, isEnabled, isEnabled, isEnabled, isEnabled, lazyIntrospectBeanDescriptionForBuilder, lazyIntrospectBeanDescriptionForCreation, leaseObjectBuffer, missingInjectableValueException, missingTypeIdException, parseDate, readPropertyValue, readPropertyValue, readTree, readTreeAsValue, readTreeAsValue, readValue, readValue, readValue, readValue, reportBadCoercion, reportBadDefinition, reportBadPropertyDefinition, reportBadPropertyDefinition, reportBadTypeDefinition, reportInputMismatch, reportInputMismatch, reportInputMismatch, reportInputMismatch, reportPropertyInputMismatch, reportPropertyInputMismatch, reportTrailingTokens, reportUnresolvedObjectId, reportWrongTokenException, reportWrongTokenException, reportWrongTokenException, returnObjectBuffer, setAttribute, streamReadConstraints, tokenStreamFactory, weirdKeyException, weirdNativeValueException, weirdNumberException, weirdStringException, wrongTokenException, wrongTokenExceptionMethods inherited from class tools.jackson.databind.DatabindContext
_colonConcat, _desc, _format, _quotedString, _throwNotASubtype, _throwSubtypeClassNotAllowed, _throwSubtypeNameNotAllowed, _truncate, canonicalizeString, constructType, converterInstance, introspectBeanDescription, introspectClassAnnotations, introspectClassAnnotations, introspectDirectClassAnnotations, isAnnotationProcessingEnabled, lazyIntrospectBeanDescription, objectIdGeneratorInstance, objectIdResolverInstance, reportBadDefinition, reportBadTypeDefinition, resolveAndValidateSubType, resolveSubTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tools.jackson.core.ObjectReadContext
createParser, createParser, createParser, createParser, createParser, treeAsTokens
-
Field Details
-
_rootNameLookup
- Since:
- 3.2
-
-
Constructor Details
-
XmlDeserializationContext
public XmlDeserializationContext(tools.jackson.core.TokenStreamFactory tsf, tools.jackson.databind.deser.DeserializerFactory deserializerFactory, tools.jackson.databind.deser.DeserializerCache cache, tools.jackson.databind.DeserializationConfig config, tools.jackson.core.FormatSchema schema, tools.jackson.databind.InjectableValues values, XmlRootNameLookup rootNameLookup)
-
-
Method Details
-
readRootValue
public Object readRootValue(tools.jackson.core.JsonParser p, tools.jackson.databind.JavaType valueType, tools.jackson.databind.ValueDeserializer<Object> deser, Object valueToUpdate) throws tools.jackson.core.JacksonException - Overrides:
readRootValuein classtools.jackson.databind.deser.DeserializationContextExt- Throws:
tools.jackson.core.JacksonException
-
extractScalarFromObject
public String extractScalarFromObject(tools.jackson.core.JsonParser p, tools.jackson.databind.ValueDeserializer<?> deser, Class<?> scalarType) throws tools.jackson.core.JacksonException - Overrides:
extractScalarFromObjectin classtools.jackson.databind.DeserializationContext- Throws:
tools.jackson.core.JacksonException
-
bufferForInputBuffering
public tools.jackson.databind.util.TokenBuffer bufferForInputBuffering(tools.jackson.core.JsonParser p) Override to return XML-awareXmlTokenBufferthat produces parsers implementingElementWrappable, allowing virtual wrapping to be configured even after content has been buffered (e.g., during polymorphic type resolution).- Overrides:
bufferForInputBufferingin classtools.jackson.databind.DeserializationContext- Since:
- 3.2
-
_verifyRootElementName
protected void _verifyRootElementName(FromXmlParser xp, tools.jackson.databind.JavaType valueType) throws tools.jackson.core.JacksonException Helper method for [dataformat-xml#247]: verify that the root element name matches the expected name whenXmlReadFeature.ENFORCE_ROOT_ELEMENT_NAMEis enabled.- Throws:
tools.jackson.core.JacksonException- Since:
- 3.2
-