Class ClassNameUtil

java.lang.Object
org.faktorips.codegen.ClassNameUtil

public class ClassNameUtil extends Object
Author:
Jan Ortmann
  • Method Details

    • unqualifiedName

      public static final String unqualifiedName(String qualifiedName)
      Takes a name like a class name and removes the package information from the beginning.
    • qualifiedName

      public static final String qualifiedName(String packageName, String unqualifiedName)
      Returns the qualified name for the given package name and unqualified name. If packageName is null or the empty String the unqualified name is returned.
      Throws:
      NullPointerException - if unqualifiedName is null.
    • getPackageName

      public static final String getPackageName(String qualifiedClassName)
      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.