Java Doc for CmsMultiMessages.java in  » Content-Management-System » opencms » org » opencms » 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 » Content Management System » opencms » org.opencms.i18n 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.opencms.i18n.CmsMessages
      org.opencms.i18n.CmsMultiMessages

All known Subclasses:   org.opencms.workplace.CmsWorkplaceMessages,
CmsMultiMessages
public class CmsMultiMessages extends CmsMessages (Code)
Provides access to the localized messages for several resource bundles simultaneously.

Messages are cached for faster lookup. If a localized key is contained in more then one resource bundle, it will be used only from the resource bundle where it was first found in. The resource bundle order is undefined. It is therefore recommended to ensure the uniqueness of all module keys by placing a special prefix in front of all keys of a resource bundle.


author:
   Alexander Kandzior
author:
   Michael Moossen
version:
   $Revision: 1.18 $
since:
   6.0.0



Field Summary
final public static  StringMULTI_BUNDLE_NAME
     Constant for the multi bundle name.
final public static  StringNULL_STRING
     Null String value for caching of null message results.

Constructor Summary
public  CmsMultiMessages(Locale locale)
    

Method Summary
public  voidaddBundle(I_CmsMessageBundle bundle)
    
public  voidaddMessages(CmsMessages messages)
     Adds a messages instance to this multi message bundle.

The messages instance should have been initialized with the same locale as this multi bundle, if not, the locale of the messages instance is automatically replaced.

public  voidaddMessages(List messages)
    
public  ListgetMessages()
    
public  StringgetString(String keyName)
    
public  booleanisInitialized()
    
public  Stringkey(String keyName, boolean allowNull)
    

Field Detail
MULTI_BUNDLE_NAME
final public static String MULTI_BUNDLE_NAME(Code)
Constant for the multi bundle name.



NULL_STRING
final public static String NULL_STRING(Code)
Null String value for caching of null message results.




Constructor Detail
CmsMultiMessages
public CmsMultiMessages(Locale locale)(Code)
Constructor for creating a new messages object initialized with the given locale.


Parameters:
  locale - the locale to use for localization of the messages





Method Detail
addBundle
public void addBundle(I_CmsMessageBundle bundle)(Code)
Adds a bundle instance to this multi message bundle.

The added bundle will be localized with the locale of this multi message bundle.


Parameters:
  bundle - the bundle instance to add




addMessages
public void addMessages(CmsMessages messages) throws CmsIllegalArgumentException(Code)
Adds a messages instance to this multi message bundle.

The messages instance should have been initialized with the same locale as this multi bundle, if not, the locale of the messages instance is automatically replaced. However, this will not work if the added messages instance is in face also of type CmsMultiMessages .


Parameters:
  messages - the messages instance to add
throws:
  CmsIllegalArgumentException - if the locale of the given CmsMultiMessages does not match the locale of this multi messages




addMessages
public void addMessages(List messages)(Code)
Adds a list a messages instances to this multi message bundle.


Parameters:
  messages - the messages instance to add




getMessages
public List getMessages()(Code)
Returns the list of all individual message objects in this multi message instance.

the list of all individual message objects in this multi message instance




getString
public String getString(String keyName)(Code)

See Also:   org.opencms.i18n.CmsMessages.getString(java.lang.String)



isInitialized
public boolean isInitialized()(Code)

See Also:   org.opencms.i18n.CmsMessages.isInitialized



key
public String key(String keyName, boolean allowNull)(Code)

See Also:   org.opencms.i18n.CmsMessages.key(java.lang.Stringboolean)



Fields inherited from org.opencms.i18n.CmsMessages
final public static String KEY_SHORT_SUFFIX(Code)(Java Doc)
final public static String UNKNOWN_KEY_EXTENSION(Code)(Java Doc)

Methods inherited from org.opencms.i18n.CmsMessages
public boolean equals(Object obj)(Code)(Java Doc)
public static String formatUnknownKey(String keyName)(Code)(Java Doc)
protected String getBundleName()(Code)(Java Doc)
public String getDate(Date date)(Code)(Java Doc)
public String getDate(Date date, int format)(Code)(Java Doc)
public String getDate(long time)(Code)(Java Doc)
public String getDateTime(Date date)(Code)(Java Doc)
public String getDateTime(Date date, int format)(Code)(Java Doc)
public String getDateTime(long time)(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
public ResourceBundle getResourceBundle()(Code)(Java Doc)
public String getString(String keyName) throws CmsMessageException(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isInitialized()(Code)(Java Doc)
public static boolean isUnknownKey(String value)(Code)(Java Doc)
public String key(String keyName)(Code)(Java Doc)
public String key(String keyName, boolean allowNull)(Code)(Java Doc)
public String key(String key, Object arg0)(Code)(Java Doc)
public String key(String key, Object arg0, Object arg1)(Code)(Java Doc)
public String key(String key, Object arg0, Object arg1, Object arg2)(Code)(Java Doc)
public String key(String key, Object[] args)(Code)(Java Doc)
public String keyDefault(String keyName, String defaultValue)(Code)(Java Doc)
public String keyWithParams(String keyName)(Code)(Java Doc)
protected void setBundleName(String bundleName)(Code)(Java Doc)
protected void setLocale(Locale locale)(Code)(Java Doc)
protected void setResourceBundle(ResourceBundle resourceBundle)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.