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 -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(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
-
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:
deserializein classcom.fasterxml.jackson.databind.JsonDeserializer<PatentAssertion>- Throws:
IOException
-