Package org.faktorips.codegen
Class ClassNameUtil
java.lang.Object
org.faktorips.codegen.ClassNameUtil
- Author:
- Jan Ortmann
-
Method Summary
Modifier and TypeMethodDescriptionstatic final StringgetPackageName(String qualifiedClassName) Returns the package name for a given class name.static final StringqualifiedName(String packageName, String unqualifiedName) Returns the qualified name for the given package name and unqualified name.static final StringunqualifiedName(String qualifiedName) Takes a name like a class name and removes the package information from the beginning.
-
Method Details
-
unqualifiedName
Takes a name like a class name and removes the package information from the beginning. -
qualifiedName
Returns the qualified name for the given package name and unqualified name. If packageName isnullor the empty String the unqualified name is returned.- Throws:
NullPointerException- if unqualifiedName isnull.
-
getPackageName
Returns the package name for a given class name. Returns an empty String if the class name does not contain a package name.- Throws:
NullPointerException- if the qualifiedClassName is null.
-