|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidadinternal.convert.GenericConverter
public abstract class GenericConverter
This class is capable of converting one Object into another. A converter may be capable of converting a single Object into many different types.
| Constructor Summary | |
|---|---|
GenericConverter()
|
|
| Method Summary | |
|---|---|
abstract java.lang.Object |
convert(java.lang.Object source,
java.lang.Class<?> targetType)
converts the given Object into an instance of the targetType. |
abstract java.util.List<java.lang.Class<?>> |
getTargetTypes(java.lang.Class<?> sourceType)
Gets all the supported targetTypes for the given sourceType. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericConverter()
| Method Detail |
|---|
public abstract java.lang.Object convert(java.lang.Object source,
java.lang.Class<?> targetType)
convert in interface TypeConverterpublic abstract java.util.List<java.lang.Class<?>> getTargetTypes(java.lang.Class<?> sourceType)
Class. An empty list must be
returned if the given sourceType cannot be converted into anything.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||