Package org.jvnet.basicjaxb.lang
Class ClassUtils
java.lang.Object
org.jvnet.basicjaxb.lang.ClassUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final charstatic final char -
Method Summary
Modifier and TypeMethodDescriptionfindClasses(Package pkg) static StringgetShortClassName(Class cls) Gets the class name minus the package name from aClass.static StringgetShortClassName(String className) Gets the class name minus the package name from a String.
-
Field Details
-
PACKAGE_SEPARATOR_CHAR
public static final char PACKAGE_SEPARATOR_CHAR- See Also:
-
INNER_CLASS_SEPARATOR_CHAR
public static final char INNER_CLASS_SEPARATOR_CHAR- See Also:
-
-
Method Details
-
getShortClassName
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
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
-
findClasses
- Throws:
IOException
-