Package org.cyclonedx.util.serializer
Class ComponentWrapperSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<T>
-
- com.fasterxml.jackson.databind.ser.std.StdSerializer<ComponentWrapper>
-
- org.cyclonedx.util.serializer.ComponentWrapperSerializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable,com.fasterxml.jackson.databind.jsonschema.SchemaAware,java.io.Serializable
public class ComponentWrapperSerializer extends com.fasterxml.jackson.databind.ser.std.StdSerializer<ComponentWrapper>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private com.fasterxml.jackson.databind.ObjectMappermapper
-
Constructor Summary
Constructors Constructor Description ComponentWrapperSerializer(com.fasterxml.jackson.databind.ObjectMapper mapper)ComponentWrapperSerializer(java.lang.Class<ComponentWrapper> t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidserialize(ComponentWrapper componentWrapper, com.fasterxml.jackson.core.JsonGenerator generator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider)-
Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
-
-
-
-
Constructor Detail
-
ComponentWrapperSerializer
public ComponentWrapperSerializer(com.fasterxml.jackson.databind.ObjectMapper mapper)
-
ComponentWrapperSerializer
public ComponentWrapperSerializer(java.lang.Class<ComponentWrapper> t)
-
-
Method Detail
-
serialize
public void serialize(ComponentWrapper componentWrapper, com.fasterxml.jackson.core.JsonGenerator generator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider) throws java.io.IOException
- Specified by:
serializein classcom.fasterxml.jackson.databind.ser.std.StdSerializer<ComponentWrapper>- Throws:
java.io.IOException
-
-