Class JsonXmlCollectionDeserializer<T extends Collection<?>>
java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<T>
com.norconex.commons.lang.bean.jackson.JsonXmlCollectionDeserializer<T>
- Type Parameters:
T- type of collection
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.ContextualDeserializer,com.fasterxml.jackson.databind.deser.NullValueProvider,com.fasterxml.jackson.databind.deser.ResolvableDeserializer
public class JsonXmlCollectionDeserializer<T extends Collection<?>>
extends com.fasterxml.jackson.databind.JsonDeserializer<T>
implements com.fasterxml.jackson.databind.deser.ContextualDeserializer, com.fasterxml.jackson.databind.deser.ResolvableDeserializer
XML collection deserializer. Adds support for
JsonXmlCollection
annotation and properly writes self-closing and empty tag pairs.
for null and empty, respectively.- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
com.fasterxml.jackson.databind.JsonDeserializer.None -
Constructor Summary
ConstructorsConstructorDescriptionJsonXmlCollectionDeserializer(com.fasterxml.jackson.databind.JsonDeserializer<?> defaultDeserializer) -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonDeserializer<?> createContextual(com.fasterxml.jackson.databind.DeserializationContext ctx, com.fasterxml.jackson.databind.BeanProperty property) deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctx) voidresolve(com.fasterxml.jackson.databind.DeserializationContext ctxt) Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
-
Constructor Details
-
JsonXmlCollectionDeserializer
public JsonXmlCollectionDeserializer(com.fasterxml.jackson.databind.JsonDeserializer<?> defaultDeserializer)
-
-
Method Details
-
createContextual
public com.fasterxml.jackson.databind.JsonDeserializer<?> createContextual(com.fasterxml.jackson.databind.DeserializationContext ctx, com.fasterxml.jackson.databind.BeanProperty property) throws com.fasterxml.jackson.databind.JsonMappingException - Specified by:
createContextualin interfacecom.fasterxml.jackson.databind.deser.ContextualDeserializer- Throws:
com.fasterxml.jackson.databind.JsonMappingException
-
resolve
public void resolve(com.fasterxml.jackson.databind.DeserializationContext ctxt) throws com.fasterxml.jackson.databind.JsonMappingException - Specified by:
resolvein interfacecom.fasterxml.jackson.databind.deser.ResolvableDeserializer- Throws:
com.fasterxml.jackson.databind.JsonMappingException
-
deserialize
public T deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctx) throws IOException - Specified by:
deserializein classcom.fasterxml.jackson.databind.JsonDeserializer<T extends Collection<?>>- Throws:
IOException
-