public class XmlOptionsFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<org.apache.xmlbeans.XmlOptions>
FactoryBean
that configures an XMLBeans XmlOptions
object
and provides it as a bean reference.
Typical usage will be to set XMLBeans options on this bean, and refer to it
in the XmlBeansMarshaller
.
XmlOptions
,
setOptions(java.util.Map)
,
XmlBeansMarshaller.setXmlOptions(XmlOptions)
Constructor and Description |
---|
XmlOptionsFactoryBean() |
Modifier and Type | Method and Description |
---|---|
org.apache.xmlbeans.XmlOptions |
getObject() |
Class<? extends org.apache.xmlbeans.XmlOptions> |
getObjectType() |
boolean |
isSingleton() |
void |
setOptions(Map<String,?> optionsMap)
Set options on the underlying
XmlOptions object. |
public void setOptions(Map<String,?> optionsMap)
XmlOptions
object.
The keys of the supplied map should be one of the String constants
defined in XmlOptions
, the values vary per option.
XmlOptions.put(Object, Object)
,
XmlOptions.SAVE_PRETTY_PRINT
,
XmlOptions.LOAD_STRIP_COMMENTS
public org.apache.xmlbeans.XmlOptions getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean<org.apache.xmlbeans.XmlOptions>
public Class<? extends org.apache.xmlbeans.XmlOptions> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<org.apache.xmlbeans.XmlOptions>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<org.apache.xmlbeans.XmlOptions>