| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ClassUtils
is a Zeus utility class that provides
methods that deal with the various classes and types that
may be used in data binding. Specifically, this will deal
with the String
Java types that
Generator
s deal with,
and relate them to Java Class
objects.
Method Summary | |
static String | getCollectionImplClass(String collectionClass) For a supplied Collection class, this will return an implementation
of that class. |
static Object | getParameter(String value, Class paramType) This will take the String value supplied and convert it
to an Object of the type specified in paramType . |
static boolean | isCollectionClass(String javaType) This will determine if the supplied Java type (in String form) is one of the Java
Collection classes. |
Method Detail |
public static String getCollectionImplClass(String collectionClass)
For a supplied Collection
class, this will return an implementation
of that class. For example, specifying java.util.List
to this method
would return java.util.LinkedList
, which is a concrete class. If the
supplied class is already a concrete class, it is returned unchanged.
String
name of collection class/interfaceString
- fully qualified concrete class to use.public static Object getParameter(String value, Class paramType)
This will take the String
value supplied and convert it
to an Object
of the type specified in paramType
.
String
value to convert.Class
with type to convert to.Object
- value in correct type.public static boolean isCollectionClass(String javaType)
This will determine if the supplied Java type (in
String
form) is one of the Java
Collection
classes.
String
name of the Java
type to check for.boolean
- whether the class is a
Java Collection
.
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |