|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.convert.ConverterHelp
Helper class for Datatype conversions
| Constructor Summary | |
ConverterHelp()
|
|
| Method Summary | |
static java.lang.Object |
getAsObject(RequestContext ctx,
java.lang.Class dataType,
java.lang.String newValue)
Uses a Bean Converter to convert the given String into an Object. |
static java.lang.Object |
getAsObject(RequestContext ctx,
java.lang.Class dataType,
java.lang.String[] newValues)
Uses a Bean Converter to convert the given String Array into an Object Array. |
static java.lang.String |
getAsString(RequestContext ctx,
Converter converter,
java.lang.Object value)
Uses a Bean Converter to convert the given object to a String representation. |
static Converter |
getInstance(java.lang.String converterId)
Retrieves a Converter instance for the given Converter class name |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConverterHelp()
| Method Detail |
public static Converter getInstance(java.lang.String converterId)
throws ConverterException
converterId - Converter class name (full qualified Java class name)
ConverterException - Is thrown when the instance could not be created
public static java.lang.String getAsString(RequestContext ctx,
Converter converter,
java.lang.Object value)
throws ConverterException
ctx - Request contextconverter - The Converter to usevalue - The Bean to convert
null
ConverterException - Is thrown when the instance could not be created
public static java.lang.Object getAsObject(RequestContext ctx,
java.lang.Class dataType,
java.lang.String newValue)
throws ConverterException
ctx - Request contextdataType - the target DatatypenewValue - The String to convert
null
ConverterException - Is thrown when the instance could not be created
public static java.lang.Object getAsObject(RequestContext ctx,
java.lang.Class dataType,
java.lang.String[] newValues)
throws ConverterException
ctx - Request contextdataType - the target DatatypenewValues - The Strings to convert
null
ConverterException - Is thrown when the instance could not be created
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||