wt.util.xml.xslt.extn
Class JavaRBTranslator

java.lang.Object
  extended bywt.util.xml.xslt.extn.JavaRBTranslator

public class JavaRBTranslator
extends Object

This class serves as an XSLT extension function implementation.


Constructor Summary
JavaRBTranslator()
           
 
Method Summary
static ResourceBundle getBundle(JavaRBTranslator jrbt, String bundleName, String localeName)
          Workaround for old Xalan bug
static ResourceBundle getBundle(String bundleName, String localeName)
          Construct a resource bundle given its name and locale name
static String translate(JavaRBTranslator jrbt, ResourceBundle bundle, String key)
          Workaround for old Xalan bug
static String translate(ResourceBundle bundle, String key)
          Translate 'key' if 'bundle is non-null, return 'key' if no translation available
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaRBTranslator

public JavaRBTranslator()
Method Detail

getBundle

public static ResourceBundle getBundle(String bundleName,
                                       String localeName)
Construct a resource bundle given its name and locale name


getBundle

public static ResourceBundle getBundle(JavaRBTranslator jrbt,
                                       String bundleName,
                                       String localeName)
Workaround for old Xalan bug


translate

public static String translate(ResourceBundle bundle,
                               String key)
Translate 'key' if 'bundle is non-null, return 'key' if no translation available


translate

public static String translate(JavaRBTranslator jrbt,
                               ResourceBundle bundle,
                               String key)
Workaround for old Xalan bug