org.andromda.cartridges.support.webservice.client
Class DefaultTypeMapper

java.lang.Object
  extended by org.andromda.cartridges.support.webservice.client.DefaultTypeMapper
All Implemented Interfaces:
TypeMapper

public class DefaultTypeMapper
extends Object
implements TypeMapper

The default TypeMapper implementation.

Author:
Chad Brandon

Constructor Summary
DefaultTypeMapper()
           
 
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".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTypeMapper

public DefaultTypeMapper()
Method Detail

getObject

public Object getObject(Class type)
Description copied from interface: TypeMapper
Gets the object for the given type.

Specified by:
getObject in interface TypeMapper
Parameters:
type - the type from which to construct the object.
Returns:
the object.
See Also:
TypeMapper.getObject(Class)

getObject

public Object getObject(Class type,
                        String value)
Description copied from interface: TypeMapper
Gets the object for the given type optionally using the value on the returned object.

Specified by:
getObject in interface TypeMapper
Parameters:
type - the type to construct
value - the optional value used to construct or retrieve the object.
Returns:
the object.
See Also:
TypeMapper.getObject(Class, String)

getStringValue

public String getStringValue(Object object)
Description copied from interface: TypeMapper
Gets the appropriate string value of the given object.

Specified by:
getStringValue in interface TypeMapper
Parameters:
object - the object to convert to a string.
Returns:
the string value.
See Also:
TypeMapper.getStringValue(Object)

isSimpleType

public boolean isSimpleType(Class type)
Description copied from interface: TypeMapper
Indicates whether or not the given type is considered "simple".

Specified by:
isSimpleType in interface TypeMapper
Parameters:
type - the type to consider.
Returns:
true/false
See Also:
TypeMapper.isSimpleType(Class)


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