org.netbeans.lib.cvsclient.util
Class BundleUtilities

java.lang.Object
  extended by org.netbeans.lib.cvsclient.util.BundleUtilities

public class BundleUtilities
extends java.lang.Object


Constructor Summary
BundleUtilities()
           
 
Method Summary
static java.lang.String getPackageName(java.lang.Class clazz)
          Returns the package name of the specified class.
static java.util.ResourceBundle getResourceBundle(java.lang.Class classInSamePackage, java.lang.String shortName)
          Returns the resource bundle for the specified resource' shortName relative to classInSamePackage.
static java.lang.String getResourceName(java.lang.Class classInSamePackage, java.lang.String shortName)
          Returns the resourcename for the resource' shortName relative to the classInSamePackage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleUtilities

public BundleUtilities()
Method Detail

getPackageName

public static java.lang.String getPackageName(java.lang.Class clazz)
Returns the package name of the specified class. An empty String is returned, if the class is in the default package.


getResourceName

public static java.lang.String getResourceName(java.lang.Class classInSamePackage,
                                               java.lang.String shortName)
Returns the resourcename for the resource' shortName relative to the classInSamePackage.


getResourceBundle

public static java.util.ResourceBundle getResourceBundle(java.lang.Class classInSamePackage,
                                                         java.lang.String shortName)
Returns the resource bundle for the specified resource' shortName relative to classInSamePackage.


 

Built on August 7 2008.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.