org.jvnet.jaxb2_commons.lang
Class ClassUtils

java.lang.Object
  extended by org.jvnet.jaxb2_commons.lang.ClassUtils

public class ClassUtils
extends Object


Field Summary
static char INNER_CLASS_SEPARATOR_CHAR
           
static char PACKAGE_SEPARATOR_CHAR
           
 
Method Summary
static String getShortClassName(Class cls)
           Gets the class name minus the package name from a Class.
static String getShortClassName(String className)
           Gets the class name minus the package name from a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PACKAGE_SEPARATOR_CHAR

public static final char PACKAGE_SEPARATOR_CHAR
See Also:
Constant Field Values

INNER_CLASS_SEPARATOR_CHAR

public static final char INNER_CLASS_SEPARATOR_CHAR
See Also:
Constant Field Values
Method Detail

getShortClassName

public static String getShortClassName(Class cls)

Gets the class name minus the package name from a Class.

Parameters:
cls - the class to get the short name for.
Returns:
the class name without the package name or an empty string

getShortClassName

public static String getShortClassName(String className)

Gets the class name minus the package name from a String.

The string passed in is assumed to be a class name - it is not checked.

Parameters:
className - the className to get the short name for
Returns:
the class name of the class without the package name or an empty string


Copyright © 2005-2012. All Rights Reserved.