Class PatentAssertionDeserializer

java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<PatentAssertion>
org.cyclonedx.util.deserializer.PatentAssertionDeserializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider

public class PatentAssertionDeserializer extends com.fasterxml.jackson.databind.JsonDeserializer<PatentAssertion>
Custom deserializer for PatentAssertion that handles the bom-ref attribute/element conflict in XML. In XML, "bom-ref" appears as both an attribute on <patentAssertion> and as child elements inside <patentRefs>. Jackson XML's default property resolution confuses these, so this deserializer handles them manually.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer

    com.fasterxml.jackson.databind.JsonDeserializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(com.fasterxml.jackson.core.JsonParser p, 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

    Methods inherited from class Object

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

    • PatentAssertionDeserializer

      public PatentAssertionDeserializer()
  • Method Details

    • deserialize

      public PatentAssertion deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException
      Specified by:
      deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<PatentAssertion>
      Throws:
      IOException