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

    Constructors
    Modifier
    Constructor
    Description
    protected
    WrappedListDeserializer(String elementName, Class<T> elementType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WrappedListDeserializer

      protected WrappedListDeserializer(String elementName, Class<T> elementType)
  • Method Details

    • deserialize

      public List<T> deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException
      Specified by:
      deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<List<T>>
      Throws:
      IOException