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.
setCreator(String name) Associates a login name of the creator of the item with the item.
public void
setKey(String keyName) Sets the NLS key associated with this item.
public void
setLookups(Hashtable lookups) Given a hashtable of lookups, associates those lookups with this item.
public void
setModifiedDate(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.
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
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.
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)
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.
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)
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)
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.