net.sf.jsefa.common.converter
Class SimpleTypeConverterConfiguration

java.lang.Object
  extended by net.sf.jsefa.common.converter.SimpleTypeConverterConfiguration

public final class SimpleTypeConverterConfiguration
extends Object

A configuration for a simple type converter.

Author:
Norman Lahme-Huetig

Field Summary
static SimpleTypeConverterConfiguration EMPTY
          The empty configuration.
 
Method Summary
static SimpleTypeConverterConfiguration create(Class<?> objectType, String[] format)
          Constructs a new SimpleTypeConverterConfiguration.
static SimpleTypeConverterConfiguration create(Class<?> objectType, String[] format, SimpleTypeConverter itemTypeConverter)
          Constructs a new SimpleTypeConverterConfiguration.
 String[] getFormat()
          Returns the format the converter shall be initialized with.
 SimpleTypeConverter getItemTypeConverter()
          Returns the item type converter.
<T> Class<T>
getObjectType()
          /** Returns the object type the converter is intended for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final SimpleTypeConverterConfiguration EMPTY
The empty configuration. This indicates that the default configuration values should be used for the respective simple type converter.

Method Detail

create

public static SimpleTypeConverterConfiguration create(Class<?> objectType,
                                                      String[] format)
Constructs a new SimpleTypeConverterConfiguration.

Parameters:
objectType - the object type the converter is intended for
format - the format the converter shall be initialized with
Returns:
a simple type converter configuration

create

public static SimpleTypeConverterConfiguration create(Class<?> objectType,
                                                      String[] format,
                                                      SimpleTypeConverter itemTypeConverter)
Constructs a new SimpleTypeConverterConfiguration.

Parameters:
objectType - the object type the converter is intended for
format - the format the converter shall be initialized with
itemTypeConverter - the item type converter
Returns:
a simple type converter configuration

getObjectType

public <T> Class<T> getObjectType()
/** Returns the object type the converter is intended for.

Type Parameters:
T - the expected type
Returns:
the object type

getFormat

public String[] getFormat()
Returns the format the converter shall be initialized with.

Returns:
the format

getItemTypeConverter

public SimpleTypeConverter getItemTypeConverter()
Returns the item type converter.

Returns:
the item type converter


Copyright © 2014. All rights reserved.