|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectolg.csv.bean.Util
public final class Util
Util in loading objects from XML Documents and identifying getter and setter method.
| Method Summary | ||
|---|---|---|
static boolean |
asSubClass(Class<?> clazzA,
Class<?> clazzB)
Definie if a class is a subclass of an another class. |
|
static String |
emptyToNull(String str)
Convert empty String to null. |
|
static
|
identifyGetter(Class<T> clazz,
String field)
Returns public getter corresponding to the given field. |
|
static
|
identifySetter(Class<T> clazz,
String field)
Returns public setter corresponding to the given field. |
|
static
|
identifySetType(Class<T> clazz,
String field)
Returns Class corresponding to the given field identify by its setter. |
|
static
|
isConcrete(Class<T> clazz)
Returns if a class is concrete and not an enum class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> Class<?> identifySetType(Class<T> clazz,
String field)
throws NoSuchMethodException
T - the type of the classclazz - class which has the given fieldfield - field name
NoSuchMethodException - if no setter found
public static <T> Method identifySetter(Class<T> clazz,
String field)
T - the type of the class.clazz - class which has the given fieldfield - field name
null if no public setter found
public static <T> Method identifyGetter(Class<T> clazz,
String field)
T - the type of the class.clazz - class which has the given fieldfield - field name
null if no public getter foundpublic static String emptyToNull(String str)
null.
str - String to convert
public static boolean asSubClass(Class<?> clazzA,
Class<?> clazzB)
clazzA - the class.clazzB - the subclass candidate.
public static <T> boolean isConcrete(Class<T> clazz)
T - the type of the class.clazz - the class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||