net.sf.jsefa.common.mapping
Class TypeMapping<N>

java.lang.Object
  extended by net.sf.jsefa.common.mapping.TypeMapping<N>
Type Parameters:
N - the type of the data type name
Direct Known Subclasses:
ComplexTypeMapping, ListTypeMapping, MapTypeMapping, SimpleTypeMapping, TypeMappingFactory.TypeMappingPlaceholder

public abstract class TypeMapping<N>
extends Object

A mapping between a java object type and a data type of the exchange format. The latter type is denoted by its name which has a generic type.

Author:
Norman Lahme-Huetig

Constructor Summary
TypeMapping(Class<?> objectType, N dataTypeName)
          Constructs a new TypeMapping.
 
Method Summary
 N getDataTypeName()
          Returns the name of the data type this mapping is for.
 Class<?> getObjectType()
          Returns the object type this mapping is for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeMapping

public TypeMapping(Class<?> objectType,
                   N dataTypeName)
Constructs a new TypeMapping.

Parameters:
objectType - the object type.
dataTypeName - the data type name.
Method Detail

getObjectType

public final Class<?> getObjectType()
Returns the object type this mapping is for.

Returns:
the object type

getDataTypeName

public final N getDataTypeName()
Returns the name of the data type this mapping is for.

Returns:
the data type name


Copyright © 2014. All rights reserved.