Class XmlOptionsHelper

  • All Implemented Interfaces:
    com.google.common.base.Supplier<org.apache.xmlbeans.XmlOptions>, Supplier<org.apache.xmlbeans.XmlOptions>, javax.inject.Provider<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 Detail

      • XmlOptionsHelper

        public XmlOptionsHelper()
    • Method Detail

      • 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 javax.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>