org.omnaest.utils.xml
Class JAXBXMLHelper.MarshallingConfiguration.Configurator
java.lang.Object
org.omnaest.utils.xml.JAXBXMLHelper.MarshallingConfiguration.Configurator
- Enclosing class:
- JAXBXMLHelper.MarshallingConfiguration
public abstract static class JAXBXMLHelper.MarshallingConfiguration.Configurator
- extends Object
A JAXBXMLHelper.UnmarshallingConfiguration.Configurator is able to configure several internal instances like JAXBContext and Marshaller.
To do this override any method available.
Example:
new Configurator()
{
@Override
public void configure( Marshaller marshaller )
{
marshaller.setProperty( "com.sun.xml.bind.xmlHeaders", "<!DOCTYPE ....>\n" ); *
}
}
- Author:
- Omnaest
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAXBXMLHelper.MarshallingConfiguration.Configurator
public JAXBXMLHelper.MarshallingConfiguration.Configurator()
configure
public void configure(Marshaller marshaller)
throws Exception
- Configures the
Marshaller
- Parameters:
marshaller -
- Throws:
Exception
configure
public void configure(JAXBContext jaxbContext)
throws Exception
- Configures the
JAXBContext
- Parameters:
jaxbContext -
- Throws:
Exception
Copyright © 2013. All Rights Reserved.