Class SerializerUtils
java.lang.Object
org.cyclonedx.util.serializer.SerializerUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidserializeHashJson(com.fasterxml.jackson.core.JsonGenerator gen, Hash hash) static voidserializeHashXml(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator toXmlGenerator, Hash hash) static voidserializeProperty(String propertyName, Property prop, com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator xmlGenerator) static booleanshouldSerializeField(Object obj, Version version, String fieldName) static voidwriteField(com.fasterxml.jackson.core.JsonGenerator jsonGenerator, String fieldName, Object fieldValue)
-
Constructor Details
-
SerializerUtils
public SerializerUtils()
-
-
Method Details
-
serializeHashXml
public static void serializeHashXml(com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator toXmlGenerator, Hash hash) throws IOException - Throws:
IOException
-
serializeHashJson
public static void serializeHashJson(com.fasterxml.jackson.core.JsonGenerator gen, Hash hash) throws IOException - Throws:
IOException
-
shouldSerializeField
-
serializeProperty
public static void serializeProperty(String propertyName, Property prop, com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator xmlGenerator) throws IOException - Throws:
IOException
-
writeField
public static void writeField(com.fasterxml.jackson.core.JsonGenerator jsonGenerator, String fieldName, Object fieldValue) throws IOException - Throws:
IOException
-