org.vizzini.util
Class ClassUtilities

java.lang.Object
  extended by org.vizzini.util.ClassUtilities

public class ClassUtilities
extends Object

Provides convenience methods related classes.

Since:
v0.1
Version:
v0.3
Author:
Jeffrey M. Thompson

Method Summary
 Class getClassFrom(String className)
          Return the class specified by the given class name.
static ClassUtilities getInstance()
          Return the singleton instance of this class.
 String getPackageAsFilepath(Class aClass)
          Return the package name in the form of a filepath.
 String getPackageAsFilepath(Class aClass, boolean isPlatformSpecific)
          Return the package name in the form of a filepath.
 String getPackageName(Class aClass)
          Return the package name derived from the class.
 String getSimpleClassName(Class aClass)
          Return the class name without the full package descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ClassUtilities getInstance()
Return the singleton instance of this class.

Returns:
The single instance.
Since:
v0.3

getClassFrom

public Class getClassFrom(String className)
Return the class specified by the given class name.

Parameters:
className - Fully qualified class name.
Since:
v0.1

getPackageAsFilepath

public String getPackageAsFilepath(Class aClass)
Return the package name in the form of a filepath.

Since:
v0.1

getPackageAsFilepath

public String getPackageAsFilepath(Class aClass,
                                   boolean isPlatformSpecific)
Return the package name in the form of a filepath.

Parameters:
aClass - The class of interest.
isPlatformSpecific - Flag indicating whether the platform specific file separator should be used.
Since:
v0.1

getPackageName

public String getPackageName(Class aClass)
Return the package name derived from the class.

Since:
v0.1

getSimpleClassName

public String getSimpleClassName(Class aClass)
Return the class name without the full package descriptor.

Since:
v0.1


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02