Class JacksonXml

java.lang.Object
de.iip_ecosphere.platform.support.xml.Xml
de.oktoflow.platform.support.json.jackson.JacksonXml
Direct Known Subclasses:
JacksonXml.JacksonXml4All

public class JacksonXml extends de.iip_ecosphere.platform.support.xml.Xml
Implements the XML interface using Jackson.
Author:
Holger Eichelberger, SSE
  • Field Details

    • mapper

      private com.fasterxml.jackson.dataformat.xml.XmlMapper mapper
    • introspector

      private OktoAnnotationIntrospector introspector
  • Constructor Details

    • JacksonXml

      public JacksonXml()
  • Method Details

    • createInstanceImpl

      protected de.iip_ecosphere.platform.support.xml.Xml createInstanceImpl(boolean considerAnnotations)
      Specified by:
      createInstanceImpl in class de.iip_ecosphere.platform.support.xml.Xml
    • configureFor

      public de.iip_ecosphere.platform.support.xml.Xml configureFor(Class<?> cls)
      Specified by:
      configureFor in class de.iip_ecosphere.platform.support.xml.Xml
    • defineOptionals

      public de.iip_ecosphere.platform.support.xml.Xml defineOptionals(Class<?> cls, String... fieldNames)
      Specified by:
      defineOptionals in class de.iip_ecosphere.platform.support.xml.Xml
    • defineFields

      public de.iip_ecosphere.platform.support.xml.Xml defineFields(String... fieldNames)
      Specified by:
      defineFields in class de.iip_ecosphere.platform.support.xml.Xml
    • exceptFields

      public de.iip_ecosphere.platform.support.xml.Xml exceptFields(String... fieldNames)
      Specified by:
      exceptFields in class de.iip_ecosphere.platform.support.xml.Xml
    • handleIipDataClasses

      public de.iip_ecosphere.platform.support.xml.Xml handleIipDataClasses()
      Specified by:
      handleIipDataClasses in class de.iip_ecosphere.platform.support.xml.Xml
    • failOnUnknownProperties

      public de.iip_ecosphere.platform.support.xml.Xml failOnUnknownProperties(boolean fail)
      Specified by:
      failOnUnknownProperties in class de.iip_ecosphere.platform.support.xml.Xml
    • readValue

      public <T> T readValue(String src, Class<T> cls) throws IOException
      Specified by:
      readValue in class de.iip_ecosphere.platform.support.xml.Xml
      Throws:
      IOException
    • readValue

      public <T> T readValue(byte[] src, Class<T> valueType) throws IOException
      Specified by:
      readValue in class de.iip_ecosphere.platform.support.xml.Xml
      Throws:
      IOException
    • writeValueAsBytes

      public byte[] writeValueAsBytes(Object value) throws IOException
      Specified by:
      writeValueAsBytes in class de.iip_ecosphere.platform.support.xml.Xml
      Throws:
      IOException
    • writeValueAsString

      public String writeValueAsString(Object value) throws IOException
      Specified by:
      writeValueAsString in class de.iip_ecosphere.platform.support.xml.Xml
      Throws:
      IOException