Methods Summary |
---|
public static java.lang.String | correctPackageName(java.lang.String p)
if (p==null) return p;
if ( hasOffendingPrefix(p))
{
return PACKAGE_PREFIX+p;
}
return p;
|
public static boolean | hasBeenPrefixed(java.lang.String p)
return p.startsWith(packagePrefix());
|
public static boolean | hasOffendingPrefix(java.lang.String p)
return
( p.startsWith("java.") || p.equals("java")
// || p.startsWith("com.sun.") || p.equals("com.sun")
|| p.startsWith("net.jini.") || p.equals("net.jini")
|| p.startsWith("jini.") || p.equals("jini")
|| p.startsWith("javax.") || p.equals("javax")
);
|
public static boolean | isOffendingPackage(java.lang.String p)
return
!(p==null)
&&
( false || hasOffendingPrefix(p) );
|
public static java.lang.String | packagePrefix()
return PACKAGE_PREFIX;
|
public static java.lang.String | withoutPackagePrefix(java.lang.String p)
if(hasBeenPrefixed(p)) return p.substring(packagePrefix().length());
else return p;
|