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>,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 Summary
Constructors Constructor Description XmlOptionsHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Cleanup, set XML options to nullorg.apache.xmlbeans.XmlOptionsget()org.apache.xmlbeans.XmlOptionsgetXmlOptions()Get the XML options for SOS 1.0.0voidsetCharacterEncoding(String characterEncoding)voidsetEncoderRepository(EncoderRepository encoderRepository)voidsetPrettyPrint(boolean prettyPrint)
-
-
-
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:
destroyin interfaceDestroyable
-
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:
getin interfaceProducer<org.apache.xmlbeans.XmlOptions>- Specified by:
getin interfacejavax.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>
-
-