Java Doc for BundleItem.java in  » Internationalization-Localization » RBManager » com » ibm » rbm » 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 » Internationalization Localization » RBManager » com.ibm.rbm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibm.rbm.BundleItem

BundleItem
public class BundleItem (Code)
A class representing a single translation item and all of the meta-data associated with that translation
author:
   Jared Jackson - Email: jjared@almaden.ibm.com
See Also:   com.ibm.rbm.RBManager



Constructor Summary
public  BundleItem(BundleGroup parent, String name, String value)
     Basic data constructor for a resource bundle item.
Parameters:
  parent - The BundleGroup to which the item belongs.

Method Summary
public  StringgetComment()
     Returns a comment associated with the item.
public  DategetCreatedDate()
     Returns the date the item was first created.
public  StringgetCreator()
     Returns the login name of the user that created the item.
public  StringgetKey()
     Returns the NLS lookup key for the item.
public  HashtablegetLookups()
     Returns a hashtable of the various lookups associated with the item.
public  DategetModifiedDate()
     Returns the date this item was last modified.
public  StringgetModifier()
     Returns the login name of the user that last modified the item.
public  BundleGroupgetParentGroup()
    
public  StringgetTranslation()
     Returns the translation value for the item.
public  booleanisTranslated()
    
public  voidsetComment(String comment)
     Sets the comment associated with this item.
public  voidsetCreatedDate(String dateStr)
     Sets the created date of the item given a date formatted string. The format can be either 'YYYY-MM-DD' (e.g.
public  voidsetCreatedDate(Date date)
     Sets the created date of the item.
public  voidsetCreator(String name)
     Associates a login name of the creator of the item with the item.
public  voidsetKey(String keyName)
     Sets the NLS key associated with this item.
public  voidsetLookups(Hashtable lookups)
     Given a hashtable of lookups, associates those lookups with this item.
public  voidsetModifiedDate(String dateStr)
     Sets the last modififcation date of the item given a date formatted string. The format can be either 'YYYY-MM-DD' (e.g.
public  voidsetModifiedDate(Date date)
     Sets the last modification date of the item.
public  voidsetModifier(String name)
     Associates a login name of the last modifier of the item with the item.
public  voidsetParentGroup(BundleGroup group)
     Sets the parent BundleGroup of the item.
public  voidsetTranslated(boolean isTranslated)
     Sets the translated value of the item.
public  voidsetTranslation(String translationValue)
     Sets the translation value of the item.
public  StringtoOutputString()
     Returns the formatted output of this bundle item as it would be included in a .properties formatted resource bundle file.
public  StringtoString()
     Simply returns the lookup name of the item.
public  voidwriteContents(PrintStream ps)
     Writes the formatted contents to a PrintStream.
public  voidwriteContents(Writer w)
     Writes the formatted contents to a writer such as a FileWriter.


Constructor Detail
BundleItem
public BundleItem(BundleGroup parent, String name, String value)(Code)
Basic data constructor for a resource bundle item.
Parameters:
  parent - The BundleGroup to which the item belongs. This group will have its own Bundle parent.
Parameters:
  name - The NLS lookup key common across all bundle files in the resource bundle
Parameters:
  value - The translated value of the item appropriate for the encoding of the bundle file to which the item belongs




Method Detail
getComment
public String getComment()(Code)
Returns a comment associated with the item.



getCreatedDate
public Date getCreatedDate()(Code)
Returns the date the item was first created.



getCreator
public String getCreator()(Code)
Returns the login name of the user that created the item.



getKey
public String getKey()(Code)
Returns the NLS lookup key for the item.



getLookups
public Hashtable getLookups()(Code)
Returns a hashtable of the various lookups associated with the item. Lookups are context sensitive information stored within the resource item and have their own meta-data associated with themselves.



getModifiedDate
public Date getModifiedDate()(Code)
Returns the date this item was last modified.



getModifier
public String getModifier()(Code)
Returns the login name of the user that last modified the item.



getParentGroup
public BundleGroup getParentGroup()(Code)
Returns the BundleGroup to which this item belongs



getTranslation
public String getTranslation()(Code)
Returns the translation value for the item.



isTranslated
public boolean isTranslated()(Code)
Has the item yet been translated, or was it merely derived from a previous bundle file?



setComment
public void setComment(String comment)(Code)
Sets the comment associated with this item.



setCreatedDate
public void setCreatedDate(String dateStr)(Code)
Sets the created date of the item given a date formatted string. The format can be either 'YYYY-MM-DD' (e.g. 20002-02-05) or the format can be 'YYYMMDDTHHMMSSZ' (e.g. 20020205T103000Z)



setCreatedDate
public void setCreatedDate(Date date)(Code)
Sets the created date of the item.



setCreator
public void setCreator(String name)(Code)
Associates a login name of the creator of the item with the item.



setKey
public void setKey(String keyName)(Code)
Sets the NLS key associated with this item. Be careful using this method, as it does not change the lookup value of any other items in the resource bundle. This must be done at a higher level.



setLookups
public void setLookups(Hashtable lookups)(Code)
Given a hashtable of lookups, associates those lookups with this item.



setModifiedDate
public void setModifiedDate(String dateStr)(Code)
Sets the last modififcation date of the item given a date formatted string. The format can be either 'YYYY-MM-DD' (e.g. 2002-02-05) or the format can be 'YYYMMDDTHHMMSSZ' (e.g. 20020205T103000Z)



setModifiedDate
public void setModifiedDate(Date date)(Code)
Sets the last modification date of the item.



setModifier
public void setModifier(String name)(Code)
Associates a login name of the last modifier of the item with the item.



setParentGroup
public void setParentGroup(BundleGroup group)(Code)
Sets the parent BundleGroup of the item.



setTranslated
public void setTranslated(boolean isTranslated)(Code)
Sets the translated value of the item. A true mark indicates that the item has been examined or modified and is ready for use in the encoding specified by the parent Bundle.



setTranslation
public void setTranslation(String translationValue)(Code)
Sets the translation value of the item.



toOutputString
public String toOutputString()(Code)
Returns the formatted output of this bundle item as it would be included in a .properties formatted resource bundle file. This format also contains the meta-data used by RBManager in the form of parseable comments.



toString
public String toString()(Code)
Simply returns the lookup name of the item.



writeContents
public void writeContents(PrintStream ps)(Code)
Writes the formatted contents to a PrintStream.



writeContents
public void writeContents(Writer w) throws IOException(Code)
Writes the formatted contents to a writer such as a FileWriter.



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.