|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.zeus.util.ClassUtils
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
s deal with,
and relate them to Java Generator
Class
objects.
Constructor Summary | |
ClassUtils()
|
Method Summary | |
static java.lang.String |
getCollectionImplClass(java.lang.String collectionClass)
For a supplied Collection class, this will return an implementation
of that class. |
static java.lang.Object |
getParameter(java.lang.String value,
java.lang.Class paramType)
This will take the String value supplied and convert it
to an Object of the type specified in paramType . |
static boolean |
isCollectionClass(java.lang.String javaType)
This will determine if the supplied Java type (in String form) is one of the Java
Collection classes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassUtils()
Method Detail |
public static boolean isCollectionClass(java.lang.String javaType)
This will determine if the supplied Java type (in
String
form) is one of the Java
Collection
classes.
javaType
- the String
name of the Java
type to check for.boolean
- whether the class is a
Java Collection
.public static java.lang.String getCollectionImplClass(java.lang.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.
collectionClass
- String
name of collection class/interfaceString
- fully qualified concrete class to use.public static java.lang.Object getParameter(java.lang.String value, java.lang.Class paramType)
This will take the String
value supplied and convert it
to an Object
of the type specified in paramType
.
value
- String
value to convert.paramType
- Class
with type to convert to.Object
- value in correct type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |