org.andromda.core.common
Class Converter
java.lang.Object
org.andromda.core.common.Converter
public class Converter
- extends Object
A class used for converting simple types to other types (i.e.
java.lang.String -> java.lang.Integer, etc).
- Author:
- Chad Brandon, Bob Fields
|
Method Summary |
static Object |
convert(Object object,
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 |
Converter
public Converter()
convert
public static Object convert(Object object,
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-2012 AndroMDA.org. All Rights Reserved.