org.omnaest.utils.xml
Class JAXBXMLHelper.MarshallingConfiguration.Configurator

java.lang.Object
  extended by 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

Constructor Summary
JAXBXMLHelper.MarshallingConfiguration.Configurator()
           
 
Method Summary
 void configure(JAXBContext jaxbContext)
          Configures the JAXBContext
 void configure(Marshaller marshaller)
          Configures the Marshaller
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBXMLHelper.MarshallingConfiguration.Configurator

public JAXBXMLHelper.MarshallingConfiguration.Configurator()
Method Detail

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.