net.sf.jsefa.xml.config
Class XmlConfiguration

java.lang.Object
  extended by net.sf.jsefa.common.config.Configuration<XmlTypeMappingRegistry,XmlEntryPoint>
      extended by net.sf.jsefa.xml.config.XmlConfiguration

public final class XmlConfiguration
extends Configuration<XmlTypeMappingRegistry,XmlEntryPoint>

A configuration object used when creating an XML IO factory. It uses lazy initialization.

Author:
Norman Lahme-Huetig
See Also:
Configuration

Nested Class Summary
static interface XmlConfiguration.Defaults
          Set of default configuration values.
 
Constructor Summary
XmlConfiguration()
          Constructs a new XmlConfiguration.
 
Method Summary
 XmlConfiguration createCopy()
          Creates a copy of this Configuration.
protected  XmlTypeMappingRegistry createDefaultTypeMappingRegistry()
          Creates the default type mapping registry to be used if none is explicitly given.
 QName getDataTypeAttributeName()
          Returns the name of the attribute denoting a data type.
 XmlDataTypeDefaultNameRegistry getDataTypeDefaultNameRegistry()
          Returns the data type default name registry to be used.
 String getLineBreak()
          Returns the line break used for serializing.
 String getLineIndentation()
          Returns the line indentation used for serializing.
 XmlLowLevelConfiguration getLowLevelConfiguration()
          Returns the low level configuration object.
 NamespaceManager getNamespaceManager()
          Returns the NamespaceManager to be used for serialization only.
 void setDataTypeAttributeName(QName dataTypeAttributeName)
          Sets the name of the attribute that denotes the data type of the respective element.
 void setDataTypeDefaultNameRegistry(XmlDataTypeDefaultNameRegistry dataTypeDefaultNameRegistry)
          Sets the data type default name registry.
 void setLineBreak(String lineBreak)
          Sets the line break to be used for serializing.
 void setLineIndentation(String lineIndentation)
          Sets the line indentation to be used for serializing.
 void setLowLevelConfiguration(XmlLowLevelConfiguration lowLevelConfig)
          Sets the xml low level configuration object.
 void setNamespaceManager(NamespaceManager namespaceManager)
          Sets the namespace manager.
 
Methods inherited from class net.sf.jsefa.common.config.Configuration
getEntryPoints, getObjectAccessorProvider, getSimpleTypeConverterProvider, getTypeMappingRegistry, getValidationMode, getValidatorProvider, setEntryPoints, setObjectAccessorProvider, setSimpleTypeConverterProvider, setTypeMappingRegistry, setValidationMode, setValidatorProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlConfiguration

public XmlConfiguration()
Constructs a new XmlConfiguration.

Method Detail

createCopy

public XmlConfiguration createCopy()
Creates a copy of this Configuration.

Specified by:
createCopy in class Configuration<XmlTypeMappingRegistry,XmlEntryPoint>
Returns:
a copy of this Configuration

getDataTypeDefaultNameRegistry

public XmlDataTypeDefaultNameRegistry getDataTypeDefaultNameRegistry()
Returns the data type default name registry to be used.

Returns:
the data type default name registry.

getLowLevelConfiguration

public XmlLowLevelConfiguration getLowLevelConfiguration()
Returns the low level configuration object.

Returns:
the low level configuration object

setLowLevelConfiguration

public void setLowLevelConfiguration(XmlLowLevelConfiguration lowLevelConfig)
Sets the xml low level configuration object.

Parameters:
lowLevelConfig - the xml low level configuration object.

getNamespaceManager

public NamespaceManager getNamespaceManager()
Returns the NamespaceManager to be used for serialization only.

Returns:
a the namespace manager
See Also:
XmlLowLevelConfiguration.getNamespaceManager()

getDataTypeAttributeName

public QName getDataTypeAttributeName()
Returns the name of the attribute denoting a data type.

Returns:
the data type attribute name
See Also:
XmlLowLevelConfiguration.getDataTypeAttributeName()

getLineBreak

public String getLineBreak()
Returns the line break used for serializing.

Returns:
the line break
See Also:
LowLevelConfiguration.getLineBreak()

getLineIndentation

public String getLineIndentation()
Returns the line indentation used for serializing.

Returns:
the line indentation
See Also:
XmlLowLevelConfiguration.getLineIndentation()

setDataTypeDefaultNameRegistry

public void setDataTypeDefaultNameRegistry(XmlDataTypeDefaultNameRegistry dataTypeDefaultNameRegistry)
Sets the data type default name registry.

Parameters:
dataTypeDefaultNameRegistry - the data type default name registry

setNamespaceManager

public void setNamespaceManager(NamespaceManager namespaceManager)
Sets the namespace manager.

Parameters:
namespaceManager - the namespace manager.
See Also:
XmlLowLevelConfiguration.setNamespaceManager(net.sf.jsefa.xml.namespace.NamespaceManager)

setDataTypeAttributeName

public void setDataTypeAttributeName(QName dataTypeAttributeName)
Sets the name of the attribute that denotes the data type of the respective element.

Parameters:
dataTypeAttributeName - the data type attribute name
See Also:
XmlLowLevelConfiguration.setDataTypeAttributeName(net.sf.jsefa.xml.namespace.QName)

setLineIndentation

public void setLineIndentation(String lineIndentation)
Sets the line indentation to be used for serializing.

Parameters:
lineIndentation - the line indentation
See Also:
XmlLowLevelConfiguration.setLineIndentation(java.lang.String)

setLineBreak

public void setLineBreak(String lineBreak)
Sets the line break to be used for serializing.

Parameters:
lineBreak - the line break
See Also:
LowLevelConfiguration.setLineBreak(java.lang.String)

createDefaultTypeMappingRegistry

protected XmlTypeMappingRegistry createDefaultTypeMappingRegistry()
Creates the default type mapping registry to be used if none is explicitly given.

Specified by:
createDefaultTypeMappingRegistry in class Configuration<XmlTypeMappingRegistry,XmlEntryPoint>
Returns:
the default type mapping registry


Copyright © 2014. All rights reserved.