Package org.cyclonedx.util.deserializer
Class PropertiesDeserializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonDeserializer<java.util.List<Property>>
-
- org.cyclonedx.util.deserializer.PropertiesDeserializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
public class PropertiesDeserializer extends com.fasterxml.jackson.databind.JsonDeserializer<java.util.List<Property>>
-
-
Field Summary
Fields Modifier and Type Field Description private com.fasterxml.jackson.databind.ObjectMapperobjectMapperprivate PropertyDeserializerpropertyDeserializer
-
Constructor Summary
Constructors Constructor Description PropertiesDeserializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Property>deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt)private java.util.List<Property>parseProperties(com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt)private PropertyparseProperty(com.fasterxml.jackson.databind.JsonNode node, 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
-
-
-
-
Field Detail
-
propertyDeserializer
private final PropertyDeserializer propertyDeserializer
-
objectMapper
private final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Method Detail
-
deserialize
public java.util.List<Property> deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws java.io.IOException
- Specified by:
deserializein classcom.fasterxml.jackson.databind.JsonDeserializer<java.util.List<Property>>- Throws:
java.io.IOException
-
parseProperties
private java.util.List<Property> parseProperties(com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws java.io.IOException
- Throws:
java.io.IOException
-
parseProperty
private Property parseProperty(com.fasterxml.jackson.databind.JsonNode node, com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws java.io.IOException
- Throws:
java.io.IOException
-
-