org.omnaest.utils.xml
Class JAXBXMLHelper.MarshallingConfiguration

java.lang.Object
  extended by org.omnaest.utils.xml.JAXBXMLHelper.MarshallingAndUnmarshallingConfigurationAbstractBase
      extended by org.omnaest.utils.xml.JAXBXMLHelper.MarshallingConfiguration
Enclosing class:
JAXBXMLHelper

public static class JAXBXMLHelper.MarshallingConfiguration
extends JAXBXMLHelper.MarshallingAndUnmarshallingConfigurationAbstractBase

Author:
Omnaest

Nested Class Summary
static class JAXBXMLHelper.MarshallingConfiguration.Configurator
          A JAXBXMLHelper.UnmarshallingConfiguration.Configurator is able to configure several internal instances like JAXBContext and Marshaller.
 
Field Summary
 
Fields inherited from class org.omnaest.utils.xml.JAXBXMLHelper.MarshallingAndUnmarshallingConfigurationAbstractBase
encoding, exceptionHandler, knownTypes
 
Constructor Summary
JAXBXMLHelper.MarshallingConfiguration()
           
 
Method Summary
 JAXBXMLHelper.UnmarshallingConfiguration asUnmarshallingConfiguration()
          Returns an JAXBXMLHelper.UnmarshallingConfiguration based on the settings of this JAXBXMLHelper.MarshallingConfiguration instance
static JAXBXMLHelper.MarshallingConfiguration defaultMarshallingConfiguration(JAXBXMLHelper.MarshallingConfiguration marshallingConfiguration)
          Returns a new JAXBXMLHelper.MarshallingConfiguration if a null reference is given, otherwise the given instance.
 JAXBXMLHelper.MarshallingConfiguration.Configurator getConfigurator()
           
 boolean isFormattingOutput()
           
 JAXBXMLHelper.MarshallingConfiguration setConfigurator(JAXBXMLHelper.MarshallingConfiguration.Configurator configurator)
           
 JAXBXMLHelper.MarshallingConfiguration setEncoding(String encoding)
           
 JAXBXMLHelper.MarshallingConfiguration setExceptionHandler(ExceptionHandler exceptionHandler)
           
 JAXBXMLHelper.MarshallingConfiguration setFormattingOutput(boolean formattingOutput)
           
 JAXBXMLHelper.MarshallingConfiguration setKnownTypes(Class<?>... knownTypes)
           
 String toString()
           
 
Methods inherited from class org.omnaest.utils.xml.JAXBXMLHelper.MarshallingAndUnmarshallingConfigurationAbstractBase
getEncoding, getExceptionHandler, getKnownTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JAXBXMLHelper.MarshallingConfiguration

public JAXBXMLHelper.MarshallingConfiguration()
Method Detail

isFormattingOutput

public boolean isFormattingOutput()
Returns:

setFormattingOutput

public JAXBXMLHelper.MarshallingConfiguration setFormattingOutput(boolean formattingOutput)
Parameters:
formattingOutput -
Returns:
this

defaultMarshallingConfiguration

public static JAXBXMLHelper.MarshallingConfiguration defaultMarshallingConfiguration(JAXBXMLHelper.MarshallingConfiguration marshallingConfiguration)
Returns a new JAXBXMLHelper.MarshallingConfiguration if a null reference is given, otherwise the given instance.

Parameters:
marshallingConfiguration -
Returns:

toString

public String toString()
Overrides:
toString in class Object

asUnmarshallingConfiguration

public JAXBXMLHelper.UnmarshallingConfiguration asUnmarshallingConfiguration()
Returns an JAXBXMLHelper.UnmarshallingConfiguration based on the settings of this JAXBXMLHelper.MarshallingConfiguration instance

Returns:
new JAXBXMLHelper.UnmarshallingConfiguration

setEncoding

public JAXBXMLHelper.MarshallingConfiguration setEncoding(String encoding)
Overrides:
setEncoding in class JAXBXMLHelper.MarshallingAndUnmarshallingConfigurationAbstractBase
Parameters:
encoding - the encoding to set
Returns:
this

setExceptionHandler

public JAXBXMLHelper.MarshallingConfiguration setExceptionHandler(ExceptionHandler exceptionHandler)
Overrides:
setExceptionHandler in class JAXBXMLHelper.MarshallingAndUnmarshallingConfigurationAbstractBase
Parameters:
exceptionHandler - ExceptionHandler
Returns:
this

setKnownTypes

public JAXBXMLHelper.MarshallingConfiguration setKnownTypes(Class<?>... knownTypes)
Overrides:
setKnownTypes in class JAXBXMLHelper.MarshallingAndUnmarshallingConfigurationAbstractBase
Parameters:
knownTypes - the knownTypes to set
Returns:
this

getConfigurator

public JAXBXMLHelper.MarshallingConfiguration.Configurator getConfigurator()

setConfigurator

public JAXBXMLHelper.MarshallingConfiguration setConfigurator(JAXBXMLHelper.MarshallingConfiguration.Configurator configurator)
Parameters:
configurator - JAXBXMLHelper.MarshallingConfiguration.Configurator
Returns:
this


Copyright © 2013. All Rights Reserved.