Class WrappedListDeserializer<T>
java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<List<T>>
org.cyclonedx.util.deserializer.WrappedListDeserializer<T>
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
- Direct Known Subclasses:
AffectsDeserializer, CommitListDeserializer, ComponentListDeserializer, ExternalReferencesDeserializer, HashesDeserializer, IssueListDeserializer, LicensingTypeDeserializer, NotesDeserializer, OrganizationalContactsDeserializer, PatchListDeserializer, PropertiesDeserializer, ResolvesDeserializer, UrlListDeserializer
public class WrappedListDeserializer<T>
extends com.fasterxml.jackson.databind.JsonDeserializer<List<T>>
Deserializes a list from a JSON array, or from XML where a container element wraps the items,
e.g.
<commits><commit/></commits>, where repeated items arrive as repeated fields.
Items deserialized to null are dropped.-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
com.fasterxml.jackson.databind.JsonDeserializer.None -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWrappedListDeserializer(String elementName, Class<T> elementType) -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) 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
-
WrappedListDeserializer
-
-
Method Details
-
deserialize
public List<T> deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException - Specified by:
deserializein classcom.fasterxml.jackson.databind.JsonDeserializer<List<T>>- Throws:
IOException
-