Package org.cyclonedx.util.serializer
Class LicenseChoiceSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<LicenseChoice>
com.fasterxml.jackson.databind.ser.std.StdSerializer<LicenseChoice>
org.cyclonedx.util.serializer.LicenseChoiceSerializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable,com.fasterxml.jackson.databind.jsonschema.SchemaAware,Serializable
public class LicenseChoiceSerializer
extends com.fasterxml.jackson.databind.ser.std.StdSerializer<LicenseChoice>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None -
Field Summary
FieldsFields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType -
Constructor Summary
ConstructorsConstructorDescriptionLicenseChoiceSerializer(boolean isXml, Version version) LicenseChoiceSerializer(Class<LicenseChoice> t, boolean isXml, Version version) -
Method Summary
Modifier and TypeMethodDescriptionvoidserialize(LicenseChoice licenseChoice, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) private voidserializeExpressionToJson(LicenseChoice licenseChoice, com.fasterxml.jackson.core.JsonGenerator gen) private voidserializeExpressionToXml(LicenseChoice licenseChoice, com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator toXmlGenerator) private voidserializeJson(LicenseChoice licenseChoice, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) private voidserializeLicensesToJsonArray(LicenseChoice licenseChoice, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) private voidserializeXml(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator toXmlGenerator, LicenseChoice lc, com.fasterxml.jackson.databind.SerializerProvider provider) private voidserializeXmlAttributes(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator toXmlGenerator, String bomRef, String acknowledgement, Object object) private booleanshouldSerialize(Object obj) private booleanshouldSerializeField(Object obj, String fieldName) 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, wrapAndThrowMethods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties
-
Field Details
-
isXml
private final boolean isXml -
version
-
-
Constructor Details
-
LicenseChoiceSerializer
-
LicenseChoiceSerializer
-
-
Method Details
-
serialize
public void serialize(LicenseChoice licenseChoice, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException - Specified by:
serializein classcom.fasterxml.jackson.databind.ser.std.StdSerializer<LicenseChoice>- Throws:
IOException
-
serializeXml
private void serializeXml(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator toXmlGenerator, LicenseChoice lc, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException - Throws:
IOException
-
serializeXmlAttributes
private void serializeXmlAttributes(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator toXmlGenerator, String bomRef, String acknowledgement, Object object) throws IOException - Throws:
IOException
-
serializeJson
private void serializeJson(LicenseChoice licenseChoice, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException - Throws:
IOException
-
serializeExpressionToXml
private void serializeExpressionToXml(LicenseChoice licenseChoice, com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator toXmlGenerator) throws IOException - Throws:
IOException
-
serializeLicensesToJsonArray
private void serializeLicensesToJsonArray(LicenseChoice licenseChoice, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException - Throws:
IOException
-
serializeExpressionToJson
private void serializeExpressionToJson(LicenseChoice licenseChoice, com.fasterxml.jackson.core.JsonGenerator gen) throws IOException - Throws:
IOException
-
shouldSerialize
-
shouldSerializeField
-