Java Doc for RB.java in  » Web-Services-AXIS2 » metadata » org » apache » axis2 » jaxws » i18n » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Services AXIS2 » metadata » org.apache.axis2.jaxws.i18n 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.axis2.jaxws.i18n.RB

RB
public class RB (Code)
CURRENTLY NOT USED KEEPING FOR REFERENCE 9/19/2002

Wrapper class for resource bundles. Property files are used to store resource strings, which are the only types of resources available. Property files can inherit properties from other files so that a base property file can be used and a small number of properties can be over-ridden by another property file. For example you may create an english version of a resource file named "resource.properties". You then decide that the British English version of all of the properties except one are the same, so there is no need to redefine all of the properties in "resource_en_GB", just the one that is different.

The property file lookup searches for classes with various suffixes on the basis if the desired local and the current default local (as returned by Local.getDefault()). As property files are found the property values are merged so that inheritance is preserved.

The order of searching is:

basename + "_" + langage + "_" + country + "_" + variant basename + "_" + langage + "_" + country basename + "_" + langage basename + "_" + defaultLanguage + "_" + defaultCountry + "_" + defaultVariant basename + "_" + defaultLanguage + "_" + defaultCountry basename + "_" + defaultLanguage basename

The basename is the name of the property file without the ".properties" extension.

Properties will be cached for performance.

Property values stored in the property files can also contain dynamic variables. Any dynamic variable defined in PropertiesUtil.getVariableValue() can be used (such as {date}), as well as arguments in the form {0}, {1}, etc. Argument values are specified in the various overloaded getString() methods.



Field Summary
final public static  StringBASE_NAME
    
final public static  StringPROPERTY_EXT
    
protected  StringbasePropertyFileName
    
static  HashtablepropertyCache
    
protected  PropertiesresourceProperties
    

Constructor Summary
public  RB(String name)
    
public  RB(Object caller, String name)
     Construct a new RB
Parameters:
  caller - The calling object.
public  RB(Object caller, String name, Locale locale)
     Construct a new RB
Parameters:
  caller - The calling object.

Method Summary
public static  voidclearCache()
     Clears the internal cache.
public static  StringgetMessage(Object caller, String basename, Locale locale, String key, Object[] args)
    
public  PropertiesgetProperties()
    
public  StringgetString(String key)
    
public  StringgetString(String key, Object arg0)
    

Gets a string message from the resource bundle for the given key.

public  StringgetString(String key, Object arg0, Object arg1)
    

Gets a string message from the resource bundle for the given key.

public  StringgetString(String key, Object arg0, Object arg1, Object arg2)
    

Gets a string message from the resource bundle for the given key.

public  StringgetString(String key, Object[] array)
    

Gets a string message from the resource bundle for the given key.

public static  StringgetString(Object caller, String key)
     Get a message from resource.properties from the package of the given object.
public static  StringgetString(Object caller, String key, Object arg0)
     Get a message from resource.properties from the package of the given object.
public static  StringgetString(Object caller, String key, Object arg0, Object arg1)
     Get a message from resource.properties from the package of the given object.
public static  StringgetString(Object caller, String key, Object arg0, Object arg1, Object arg2)
     Get a message from resource.properties from the package of the given object.
public static  StringgetString(Object caller, String key, Object arg0, Object arg1, Object arg2, Object arg3)
     Get a message from resource.properties from the package of the given object.
public static  StringgetString(Object caller, String key, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4)
     Get a message from resource.properties from the package of the given object.
public static  StringgetString(Object caller, String key, Object[] args)
     Get a message from resource.properties from the package of the given object.
public static  StringgetString(Object caller, Locale locale, String key)
     Get a message from resource.properties from the package of the given object.
public static  StringgetString(Object caller, Locale locale, String key, Object arg0)
     Get a message from resource.properties from the package of the given object.
public static  StringgetString(Object caller, Locale locale, String key, Object arg0, Object arg1)
     Get a message from resource.properties from the package of the given object.
public static  StringgetString(Object caller, Locale locale, String key, Object arg0, Object arg1, Object arg2)
     Get a message from resource.properties from the package of the given object.
public static  StringgetString(Object caller, Locale locale, String key, Object arg0, Object arg1, Object arg2, Object arg3)
     Get a message from resource.properties from the package of the given object.
public static  StringgetString(Object caller, Locale locale, String key, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4)
     Get a message from resource.properties from the package of the given object.
public static  StringgetString(Object caller, Locale locale, String key, Object[] args)
     Get a message from resource.properties from the package of the given object.
protected  voidloadProperties(String basename, ClassLoader loader, Locale locale, Locale defaultLocale)
    
protected  PropertiesloadProperties(String basename, ClassLoader loader, Locale locale, Properties props)
    
protected  PropertiesloadProperties(String resname, ClassLoader loader)
    
protected  Propertiesmerge(Properties p1, Properties p2)
    

Field Detail
BASE_NAME
final public static String BASE_NAME(Code)



PROPERTY_EXT
final public static String PROPERTY_EXT(Code)



basePropertyFileName
protected String basePropertyFileName(Code)



propertyCache
static Hashtable propertyCache(Code)



resourceProperties
protected Properties resourceProperties(Code)




Constructor Detail
RB
public RB(String name) throws MissingResourceException(Code)
Construct a new RB
Parameters:
  name - The name of the property file without the ".properties" extension



RB
public RB(Object caller, String name) throws MissingResourceException(Code)
Construct a new RB
Parameters:
  caller - The calling object. This is used to get the package name to further constructthe basename as well as to get the proper ClassLoader
Parameters:
  name - The name of the property file without the ".properties" extension



RB
public RB(Object caller, String name, Locale locale) throws MissingResourceException(Code)
Construct a new RB
Parameters:
  caller - The calling object. This is used to get the package name to further constructthe basename as well as to get the proper ClassLoader
Parameters:
  name - The name of the property file without the ".properties" extension
Parameters:
  locale - The locale




Method Detail
clearCache
public static void clearCache()(Code)
Clears the internal cache.



getMessage
public static String getMessage(Object caller, String basename, Locale locale, String key, Object[] args) throws MissingResourceException(Code)



getProperties
public Properties getProperties()(Code)
Get the underlying properties



getString
public String getString(String key) throws MissingResourceException(Code)
Gets a string message from the resource bundle for the given key
Parameters:
  key - The resource key The message



getString
public String getString(String key, Object arg0) throws MissingResourceException(Code)

Gets a string message from the resource bundle for the given key. The message may contain variables that will be substituted with the given arguments. Variables have the format:

This message has two variables: {0} and {1}
Parameters:
  key - The resource key
Parameters:
  arg0 - The argument to place in variable {0} The message



getString
public String getString(String key, Object arg0, Object arg1) throws MissingResourceException(Code)

Gets a string message from the resource bundle for the given key. The message may contain variables that will be substituted with the given arguments. Variables have the format:

This message has two variables: {0} and {1}
Parameters:
  key - The resource key
Parameters:
  arg0 - The argument to place in variable {0}
Parameters:
  arg1 - The argument to place in variable {1} The message



getString
public String getString(String key, Object arg0, Object arg1, Object arg2) throws MissingResourceException(Code)

Gets a string message from the resource bundle for the given key. The message may contain variables that will be substituted with the given arguments. Variables have the format:

This message has two variables: {0} and {1}
Parameters:
  key - The resource key
Parameters:
  arg0 - The argument to place in variable {0}
Parameters:
  arg1 - The argument to place in variable {1}
Parameters:
  arg2 - The argument to place in variable {1} The message



getString
public String getString(String key, Object[] array) throws MissingResourceException(Code)

Gets a string message from the resource bundle for the given key. The message may contain variables that will be substituted with the given arguments. Variables have the format:

This message has two variables: {0} and {1}
Parameters:
  key - The resource key
Parameters:
  array - An array of objects to place in corresponding variables The message



getString
public static String getString(Object caller, String key) throws MissingResourceException(Code)
Get a message from resource.properties from the package of the given object.
Parameters:
  caller - The calling object, used to get the package name and class loader
Parameters:
  key - The resource key The formatted message



getString
public static String getString(Object caller, String key, Object arg0) throws MissingResourceException(Code)
Get a message from resource.properties from the package of the given object.
Parameters:
  caller - The calling object, used to get the package name and class loader
Parameters:
  key - The resource key
Parameters:
  arg0 - The argument to place in variable {0} The formatted message



getString
public static String getString(Object caller, String key, Object arg0, Object arg1) throws MissingResourceException(Code)
Get a message from resource.properties from the package of the given object.
Parameters:
  caller - The calling object, used to get the package name and class loader
Parameters:
  key - The resource key
Parameters:
  arg0 - The argument to place in variable {0}
Parameters:
  arg1 - The argument to place in variable {1} The formatted message



getString
public static String getString(Object caller, String key, Object arg0, Object arg1, Object arg2) throws MissingResourceException(Code)
Get a message from resource.properties from the package of the given object.
Parameters:
  caller - The calling object, used to get the package name and class loader
Parameters:
  key - The resource key
Parameters:
  arg0 - The argument to place in variable {0}
Parameters:
  arg1 - The argument to place in variable {1}
Parameters:
  arg2 - The argument to place in variable {2} The formatted message



getString
public static String getString(Object caller, String key, Object arg0, Object arg1, Object arg2, Object arg3) throws MissingResourceException(Code)
Get a message from resource.properties from the package of the given object.
Parameters:
  caller - The calling object, used to get the package name and class loader
Parameters:
  key - The resource key
Parameters:
  arg0 - The argument to place in variable {0}
Parameters:
  arg1 - The argument to place in variable {1}
Parameters:
  arg2 - The argument to place in variable {2}
Parameters:
  arg3 - The argument to place in variable {3} The formatted message



getString
public static String getString(Object caller, String key, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4) throws MissingResourceException(Code)
Get a message from resource.properties from the package of the given object.
Parameters:
  caller - The calling object, used to get the package name and class loader
Parameters:
  key - The resource key
Parameters:
  arg0 - The argument to place in variable {0}
Parameters:
  arg1 - The argument to place in variable {1}
Parameters:
  arg2 - The argument to place in variable {2}
Parameters:
  arg3 - The argument to place in variable {3}
Parameters:
  arg4 - The argument to place in variable {4} Returns the formatted message.



getString
public static String getString(Object caller, String key, Object[] args) throws MissingResourceException(Code)
Get a message from resource.properties from the package of the given object.
Parameters:
  caller - The calling object, used to get the package name and class loader
Parameters:
  key - The resource key
Parameters:
  args - An array of objects to place in corresponding variables Returns the formatted message.



getString
public static String getString(Object caller, Locale locale, String key) throws MissingResourceException(Code)
Get a message from resource.properties from the package of the given object.
Parameters:
  caller - The calling object, used to get the package name and class loader
Parameters:
  locale - The locale
Parameters:
  key - The resource key The formatted message



getString
public static String getString(Object caller, Locale locale, String key, Object arg0) throws MissingResourceException(Code)
Get a message from resource.properties from the package of the given object.
Parameters:
  caller - The calling object, used to get the package name and class loader
Parameters:
  locale - The locale
Parameters:
  key - The resource key
Parameters:
  arg0 - The argument to place in variable {0} The formatted message



getString
public static String getString(Object caller, Locale locale, String key, Object arg0, Object arg1) throws MissingResourceException(Code)
Get a message from resource.properties from the package of the given object.
Parameters:
  caller - The calling object, used to get the package name and class loader
Parameters:
  locale - The locale
Parameters:
  key - The resource key
Parameters:
  arg0 - The argument to place in variable {0}
Parameters:
  arg1 - The argument to place in variable {1} The formatted message



getString
public static String getString(Object caller, Locale locale, String key, Object arg0, Object arg1, Object arg2) throws MissingResourceException(Code)
Get a message from resource.properties from the package of the given object.
Parameters:
  caller - The calling object, used to get the package name and class loader
Parameters:
  locale - The locale
Parameters:
  key - The resource key
Parameters:
  arg0 - The argument to place in variable {0}
Parameters:
  arg1 - The argument to place in variable {1}
Parameters:
  arg2 - The argument to place in variable {2} The formatted message



getString
public static String getString(Object caller, Locale locale, String key, Object arg0, Object arg1, Object arg2, Object arg3) throws MissingResourceException(Code)
Get a message from resource.properties from the package of the given object.
Parameters:
  caller - The calling object, used to get the package name and class loader
Parameters:
  locale - The locale
Parameters:
  key - The resource key
Parameters:
  arg0 - The argument to place in variable {0}
Parameters:
  arg1 - The argument to place in variable {1}
Parameters:
  arg2 - The argument to place in variable {2}
Parameters:
  arg3 - The argument to place in variable {3} The formatted message



getString
public static String getString(Object caller, Locale locale, String key, Object arg0, Object arg1, Object arg2, Object arg3, Object arg4) throws MissingResourceException(Code)
Get a message from resource.properties from the package of the given object.
Parameters:
  caller - The calling object, used to get the package name and class loader
Parameters:
  locale - The locale
Parameters:
  key - The resource key
Parameters:
  arg0 - The argument to place in variable {0}
Parameters:
  arg1 - The argument to place in variable {1}
Parameters:
  arg2 - The argument to place in variable {2}
Parameters:
  arg3 - The argument to place in variable {3} Returns the formatted message.



getString
public static String getString(Object caller, Locale locale, String key, Object[] args) throws MissingResourceException(Code)
Get a message from resource.properties from the package of the given object.
Parameters:
  caller - The calling object, used to get the package name and class loader
Parameters:
  locale - The locale
Parameters:
  key - The resource key
Parameters:
  args - An array of objects to place in corresponding variables Returns the formatted message.



loadProperties
protected void loadProperties(String basename, ClassLoader loader, Locale locale, Locale defaultLocale) throws MissingResourceException(Code)



loadProperties
protected Properties loadProperties(String basename, ClassLoader loader, Locale locale, Properties props)(Code)



loadProperties
protected Properties loadProperties(String resname, ClassLoader loader)(Code)



merge
protected Properties merge(Properties p1, Properties p2)(Code)
Merge two Properties objects



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.