Class SerializerUtils

java.lang.Object
org.cyclonedx.util.serializer.SerializerUtils

public class SerializerUtils extends Object
  • 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

      public static boolean shouldSerializeField(Object obj, Version version, String fieldName)
    • 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