wicket.util.lang
Class Classes

java.lang.Object
  extended bywicket.util.lang.Classes

public final class Classes
extends java.lang.Object

Utilities for dealing with classes.

Author:
Jonathan Locke

Method Summary
static java.lang.String name(java.lang.Class c)
          Gets the name of a given class
static java.lang.Class relativeClass(java.lang.Package p, java.lang.String path)
          Takes a package and a relative path to a class and returns any class at that relative path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

name

public static java.lang.String name(java.lang.Class c)
Gets the name of a given class

Parameters:
c - The class
Returns:
The class name

relativeClass

public static java.lang.Class relativeClass(java.lang.Package p,
                                            java.lang.String path)
                                     throws java.lang.ClassNotFoundException
Takes a package and a relative path to a class and returns any class at that relative path. For example, if the given package was java.lang and the relative path was "../util/List", then the java.util.List class would be returned.

Parameters:
p - The package to start at
path - The relative path to the class
Returns:
The class
Throws:
java.lang.ClassNotFoundException


Copyright © 2004-2005 Wicket developers. All Rights Reserved.