Java Doc for I18NAspectResourceBundleImpl.java in  » Web-Framework » roma-webwizard » org » romaframework » aspect » i18n » rb » 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 Framework » roma webwizard » org.romaframework.aspect.i18n.rb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.romaframework.aspect.i18n.I18NAspectAbstract
   org.romaframework.aspect.i18n.rb.I18NAspectResourceBundleImpl

I18NAspectResourceBundleImpl
public class I18NAspectResourceBundleImpl extends I18NAspectAbstract implements UserObjectEventListener,AutoReloadListener(Code)
Internazionalization Manager. It gets the label checking in the configured I18N resource bundle.
author:
   Luca Garulli (luca.garulli@assetdata.it), Luigi Dell'Aquila (luigi.dellaquila@assetdata.it)


Field Summary
final public static  StringDEFAULT_FILE_NAME
    
final public static  StringDOMAIN_FILE_NAME
    
final public static  StringDOMAIN_NAME
    
final public static  StringLABEL_NAME
    
final public static  StringSEPARATOR
    

Constructor Summary
public  I18NAspectResourceBundleImpl()
    
public  I18NAspectResourceBundleImpl(AutoReloadManager iAutoReloadManager)
    

Method Summary
public  DateFormatgetDateFormat()
    
public  DateFormatgetDateFormat(Locale iLocale)
    
public  DateFormatgetDateTimeFormat()
    
public  DateFormatgetDateTimeFormat(Locale iLocale)
    
public  StringgetLabel(SchemaObject iObject, String iElementName, String iElementLabel)
     Find the label walking on entity inheritance tree.
protected  List<ResourceBundle>getResourceBundle()
    
protected  List<ResourceBundle>getResourceBundle(Locale iLocale)
    
protected synchronized  List<ResourceBundle>getResourceBundle(Locale iLocale, String iContextName)
     Search the ResourceBundle by context name.
public  StringgetString(String iText)
    
public  StringgetString(String iText, Locale iLocale)
    
public  DateFormatgetTimeFormat()
    
public  DateFormatgetTimeFormat(Locale iLocale)
    
public  voidonAfterActionExecution(Object iContent, SchemaElement iAction)
    
public  ObjectonAfterFieldRead(Object content, SchemaField field, Object currentValue)
    
public  ObjectonAfterFieldWrite(Object content, SchemaField field, Object currentValue)
    
public  booleanonBeforeActionExecution(Object iContent, SchemaElement iAction)
    
public  ObjectonBeforeFieldRead(Object iContent, SchemaField iField, Object iCurrentValue)
    
public  ObjectonBeforeFieldWrite(Object content, SchemaField field, Object currentValue)
    
public  voidonFieldRefresh(SessionInfo iSession, Object iContent, SchemaField iField)
    
public  StringresolveString(Class iObjectClass, String iText, Object... iArgs)
     Resolve a string using the I18N.
public  StringresolveString(String iText, Object... iArgs)
     Resolve a string using the I18N.
public  StringsearchStringInResources(List<ResourceBundle> iResources, String iText)
    
public  voidsignalUpdatedFile(File iFile)
     Reload I18N configuration from file.
public  voidstartup()
    

Field Detail
DEFAULT_FILE_NAME
final public static String DEFAULT_FILE_NAME(Code)



DOMAIN_FILE_NAME
final public static String DOMAIN_FILE_NAME(Code)



DOMAIN_NAME
final public static String DOMAIN_NAME(Code)



LABEL_NAME
final public static String LABEL_NAME(Code)



SEPARATOR
final public static String SEPARATOR(Code)




Constructor Detail
I18NAspectResourceBundleImpl
public I18NAspectResourceBundleImpl()(Code)



I18NAspectResourceBundleImpl
public I18NAspectResourceBundleImpl(AutoReloadManager iAutoReloadManager)(Code)




Method Detail
getDateFormat
public DateFormat getDateFormat()(Code)



getDateFormat
public DateFormat getDateFormat(Locale iLocale)(Code)



getDateTimeFormat
public DateFormat getDateTimeFormat()(Code)



getDateTimeFormat
public DateFormat getDateTimeFormat(Locale iLocale)(Code)



getLabel
public String getLabel(SchemaObject iObject, String iElementName, String iElementLabel)(Code)
Find the label walking on entity inheritance tree.
Parameters:
  resource -
Parameters:
  iObject -
Parameters:
  iElementName -



getResourceBundle
protected List<ResourceBundle> getResourceBundle()(Code)



getResourceBundle
protected List<ResourceBundle> getResourceBundle(Locale iLocale)(Code)



getResourceBundle
protected synchronized List<ResourceBundle> getResourceBundle(Locale iLocale, String iContextName)(Code)
Search the ResourceBundle by context name. Once loaded, ResourceBundles are cached by Locale settings.
Parameters:
  iLocale - Locale object identify I18N region
Parameters:
  iContextName - Name of context to search



getString
public String getString(String iText)(Code)



getString
public String getString(String iText, Locale iLocale)(Code)



getTimeFormat
public DateFormat getTimeFormat()(Code)



getTimeFormat
public DateFormat getTimeFormat(Locale iLocale)(Code)



onAfterActionExecution
public void onAfterActionExecution(Object iContent, SchemaElement iAction)(Code)



onAfterFieldRead
public Object onAfterFieldRead(Object content, SchemaField field, Object currentValue)(Code)



onAfterFieldWrite
public Object onAfterFieldWrite(Object content, SchemaField field, Object currentValue)(Code)



onBeforeActionExecution
public boolean onBeforeActionExecution(Object iContent, SchemaElement iAction)(Code)



onBeforeFieldRead
public Object onBeforeFieldRead(Object iContent, SchemaField iField, Object iCurrentValue)(Code)



onBeforeFieldWrite
public Object onBeforeFieldWrite(Object content, SchemaField field, Object currentValue)(Code)



onFieldRefresh
public void onFieldRefresh(SessionInfo iSession, Object iContent, SchemaField iField)(Code)



resolveString
public String resolveString(Class iObjectClass, String iText, Object... iArgs)(Code)
Resolve a string using the I18N. If the string starts with $ prefix, then search that name in the resource bundle configured, otherwise returns the same string passed in input.
Parameters:
  iObjectClass - The class of object for tree search
Parameters:
  iText - The string to analyze and search The I18N string if it starts with $ prefix



resolveString
public String resolveString(String iText, Object... iArgs)(Code)
Resolve a string using the I18N. If the string starts with $ prefix, then search that name in the resource bundle configured, otherwise returns the same string passed in input.
Parameters:
  iText - The string to analyze and search The I18N string if it starts with $ prefix, otherwise iLabel



searchStringInResources
public String searchStringInResources(List<ResourceBundle> iResources, String iText)(Code)



signalUpdatedFile
public void signalUpdatedFile(File iFile)(Code)
Reload I18N configuration from file. This event is invoked when the file is changed.



startup
public void startup()(Code)



Methods inherited from org.romaframework.aspect.i18n.I18NAspectAbstract
public String aspectName()(Code)(Java Doc)
public void configField(SchemaField iField, Annotation iFieldAnnotation, Annotation iGenericAnnotation, Annotation iGetterAnnotation, XmlConfigFieldType iXmlNode)(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.