org.andromda.core.common
Class Converter

java.lang.Object
  extended by org.andromda.core.common.Converter

public class Converter
extends java.lang.Object

A class used for converting simple types to other types (i.e. java.lang.String -> java.lang.Integer, etc).

Author:
Chad Brandon

Constructor Summary
Converter()
           
 
Method Summary
static java.lang.Object convert(java.lang.Object object, java.lang.Class expectedType)
          Attempts to convert the object to the expectedType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Converter

public Converter()
Method Detail

convert

public static java.lang.Object convert(java.lang.Object object,
                                       java.lang.Class expectedType)
Attempts to convert the object to the expectedType.

Parameters:
object - the object to convert.
expectedType - the type to which it should be converted.
Returns:
the converted object


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