org.ejtools.util
Class ClassTools

java.lang.Object
  |
  +--org.ejtools.util.ClassTools

public class ClassTools
extends java.lang.Object

Utility class to handle Class realted stuff.

Version:
$Revision: 1.7 $
Author:
Laurent Etiemble

Constructor Summary
ClassTools()
           
 
Method Summary
static java.lang.String classDisplay(java.lang.String className)
          Pretty print a full qualified class name.
static java.lang.Class getClass(java.lang.String fullPathClassName)
          Get the class by its name.
static double getValue(java.lang.Object o)
          Get the double value from a numeric class
static boolean isNumeric(java.lang.Class clazz)
          Return whether or not a class is numeric
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassTools

public ClassTools()
Method Detail

classDisplay

public static java.lang.String classDisplay(java.lang.String className)
Pretty print a full qualified class name. Specially useful for object arrays.

Parameters:
className - The fully qualified class name
Returns:
The pretty class name

getClass

public static java.lang.Class getClass(java.lang.String fullPathClassName)
Get the class by its name.

Parameters:
fullPathClassName - The full qualified name of the class
Returns:
The class if it is found, otherwise null

getValue

public static double getValue(java.lang.Object o)
Get the double value from a numeric class

Parameters:
o - Object to transform
Returns:
The double value

isNumeric

public static boolean isNumeric(java.lang.Class clazz)
Return whether or not a class is numeric

Parameters:
clazz - The class to test
Returns:
true if the class is numeric


Copyright © 2002-2003 EJTools Org.. All Rights Reserved.