|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxava.util.Classes
public class Classes
Utility class to work with classes.
| Constructor Summary | |
|---|---|
Classes()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getSimpleName(java.lang.Class theClass)
Returns the name of the class without package. |
static boolean |
hasMethod(java.lang.Class theClass,
java.lang.String method)
If the class contains the exact method without argumetns. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Classes()
| Method Detail |
|---|
public static java.lang.String getSimpleName(java.lang.Class theClass)
It's the same of Class.getSimpleName() of Java 5 but
it works on Java 1.4.
If you code does not need to be Java 1.4 compliant you can use
directly the Class.getSimpleName() of Java 5.
public static boolean hasMethod(java.lang.Class theClass,
java.lang.String method)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||