public static String canonicalClassName(Class<?> c,Package pkg,String postfix){
  String name=c.getName();
  if (pkg != null) {
    String prefix=pkg.getName() + ".";
    if (name.startsWith(prefix)) {
      name=name.substring(prefix.length());
    }
  }
  if (postfix != null && name.endsWith(postfix)) {
    name=name.substring(0,name.length() - postfix.length());
  }
  return name;
}

public static String canonicalClassName ( Class < ? > c , Package pkg , String postfix ) { String name = c . getName ( ) ; if ( pkg != null ) { String prefix = pkg . getName ( ) + "." ; if ( name . startsWith ( prefix ) ) { name = name . substring ( prefix . length ( ) ) ; } } if ( postfix != null && name . endsWith ( postfix ) ) { name = name . substring ( 0 , name . length ( ) - postfix . length ( ) ) ; } return name ; }
get the " simple " form of a class name .
