org.andromda.cartridges.support.webservice.client
Interface TypeMapper

All Known Implementing Classes:
DefaultTypeMapper

public interface TypeMapper

Used to for mapping types to and from objects.

Author:
Chad Brandon

Method Summary
 Object getObject(Class type)
          Gets the object for the given type.
 Object getObject(Class type, String value)
          Gets the object for the given type optionally using the value on the returned object.
 String getStringValue(Object object)
          Gets the appropriate string value of the given object.
 boolean isSimpleType(Class type)
          Indicates whether or not the given type is considered "simple".
 

Method Detail

getObject

Object getObject(Class type)
Gets the object for the given type.

Parameters:
type - the type from which to construct the object.
Returns:
the object.

getObject

Object getObject(Class type,
                 String value)
Gets the object for the given type optionally using the value on the returned object.

Parameters:
type - the type to construct
value - the optional value used to construct or retrieve the object.
Returns:
the object.

getStringValue

String getStringValue(Object object)
Gets the appropriate string value of the given object.

Parameters:
object - the object to convert to a string.
Returns:
the string value.

isSimpleType

boolean isSimpleType(Class type)
Indicates whether or not the given type is considered "simple".

Parameters:
type - the type to consider.
Returns:
true/false


Copyright © 2003-2012 AndroMDA.org. All Rights Reserved.