Class XmlOptionsHelper

java.lang.Object
org.n52.svalbard.util.XmlOptionsHelper
All Implemented Interfaces:
com.google.common.base.Supplier<org.apache.xmlbeans.XmlOptions>, jakarta.inject.Provider<org.apache.xmlbeans.XmlOptions>, Supplier<org.apache.xmlbeans.XmlOptions>, Destroyable, Producer<org.apache.xmlbeans.XmlOptions>

@Configurable public final class XmlOptionsHelper extends Object implements Destroyable, Producer<org.apache.xmlbeans.XmlOptions>
XML utility class
Since:
1.0.0
  • Constructor Details

    • XmlOptionsHelper

      public XmlOptionsHelper()
  • Method Details

    • setEncoderRepository

      @Inject public void setEncoderRepository(EncoderRepository encoderRepository)
    • getXmlOptions

      public org.apache.xmlbeans.XmlOptions getXmlOptions()
      Get the XML options for SOS 1.0.0
      Returns:
      SOS 1.0.0 XML options
    • destroy

      public void destroy()
      Cleanup, set XML options to null
      Specified by:
      destroy in interface Destroyable
    • setPrettyPrint

      public void setPrettyPrint(boolean prettyPrint)
    • setCharacterEncoding

      @Setting(value="coding.characterEncoding", required=false) public void setCharacterEncoding(String characterEncoding)
    • get

      public org.apache.xmlbeans.XmlOptions get()
      Specified by:
      get in interface Producer<org.apache.xmlbeans.XmlOptions>
      Specified by:
      get in interface jakarta.inject.Provider<org.apache.xmlbeans.XmlOptions>
      Specified by:
      get in interface com.google.common.base.Supplier<org.apache.xmlbeans.XmlOptions>
      Specified by:
      get in interface Supplier<org.apache.xmlbeans.XmlOptions>