org.openxava.util
Class Classes

java.lang.Object
  extended by org.openxava.util.Classes

public class Classes
extends java.lang.Object

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

Classes

public Classes()
Method Detail

getSimpleName

public static java.lang.String getSimpleName(java.lang.Class theClass)
Returns the name of the class without package.

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.


hasMethod

public static boolean hasMethod(java.lang.Class theClass,
                                java.lang.String method)
If the class contains the exact method without argumetns.