Interface CategoryTreeResourceBundleService


public interface CategoryTreeResourceBundleService
CategoryTreeResourceBundleService is a service class to fetch the appropriate resource bundle associated with, and containing the name of, a QMS Classification/Category Tree.

Sample Service XConf Entry:
<Service name="com.ptc.qualitymanagement.qms.categorytree.CategoryTreeResourceBundleService">
    <Option requestor="null" serviceClass="org.rnd.SampleCategoryTreeResourceBundleService" selector="category.tree.internal.name" cardinality="duplicate" />
</Service>

Resource Bundle Entry:
@RBEntry("Sample Category Tree")
public static final String sampleCategoryTree = "category.tree.internal.name";


Note: the value of the resource bundle entry is the same as the xconf entry's selector value. The value should be the internal name of the category tree.

Supported API: true
Extendable: true
  • Method Summary

    Modifier and Type
    Method
    Description
    getBundle(Locale locale)
    Returns a ResourceBundle object of the desired resource bundle.
  • Method Details

    • getBundle

      ResourceBundle getBundle(Locale locale)
      Returns a ResourceBundle object of the desired resource bundle. ex: return ResourceBundle.getBundle(qmsResource.class.getName(), locale);

      Supported API: true
      Parameters:
      locale - - Desired locale of the resource bundle.
      Returns:
      ResourceBundle