Package org.n52.svalbard.util
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Cleanup, set XML options to nullorg.apache.xmlbeans.XmlOptionsget()org.apache.xmlbeans.XmlOptionsGet the XML options for SOS 1.0.0voidsetCharacterEncoding(String characterEncoding) voidsetEncoderRepository(EncoderRepository encoderRepository) voidsetPrettyPrint(boolean prettyPrint) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.common.base.Supplier
equals
-
Constructor Details
-
XmlOptionsHelper
public XmlOptionsHelper()
-
-
Method Details
-
setEncoderRepository
-
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:
destroyin interfaceDestroyable
-
setPrettyPrint
public void setPrettyPrint(boolean prettyPrint) -
setCharacterEncoding
-
get
public org.apache.xmlbeans.XmlOptions get()- Specified by:
getin interfaceProducer<org.apache.xmlbeans.XmlOptions>- Specified by:
getin interfacejakarta.inject.Provider<org.apache.xmlbeans.XmlOptions>- Specified by:
getin interfacecom.google.common.base.Supplier<org.apache.xmlbeans.XmlOptions>- Specified by:
getin interfaceSupplier<org.apache.xmlbeans.XmlOptions>
-