| |
|
| java.lang.Object com.ibm.rbm.BundleGroup
BundleGroup | public class BundleGroup (Code) | | A class representing a group of BundleItems and the meta data associated with that group
author: Jared Jackson See Also: com.ibm.rbm.RBManager |
BundleGroup | public BundleGroup(Bundle parent, String name)(Code) | | Basic data constructor.
Creates a BundleGroup with a parent bundle and a given name.
|
addBundleItem | public void addBundleItem(BundleItem item)(Code) | | Adds a BundleItem to the group as long as that item is not currently in the group.
If the item.group is not equal to this group, then it is changed to be this group.
This method should, in most cases, only be called from the Bundle class.
|
equals | public boolean equals(Object o)(Code) | | Two bundle groups are considered equal iff their names are the same.
|
getBundleItem | public BundleItem getBundleItem(int index)(Code) | | Returns a BundleItem from the set of items at a particular index point.
If the index is greater than or equal to the number of items in the set,
null is returned.
|
getComment | public String getComment()(Code) | | Returns the comment associated with this bundle
|
getItemCount | public int getItemCount()(Code) | | Returns the number of items stored in the group
|
getName | public String getName()(Code) | | Returns the name of the bundle
|
getParentBundle | public Bundle getParentBundle()(Code) | | Returns the bundle to which this group belongs
|
removeBundleItem | public void removeBundleItem(String itemName)(Code) | | Remove an item of the given name from the group
|
setParentBundle | protected void setParentBundle(Bundle bundle)(Code) | | |
toOutputString | public String toOutputString()(Code) | | Returns the output for a group heading.
This will be found in comment lines above the group items
|
toString | public String toString()(Code) | | The translation to a string returns the name of the group
|
writeContents | public void writeContents(PrintStream ps)(Code) | | Writes the output contents to a particular PrintStream.
The output will be suitable for a properly formatted .properties file.
|
writeContents | public void writeContents(Writer w) throws IOException(Code) | | Writes the output contents to a particular Writer.
The output will be suitable for a properly formatted .properties file.
|
|
|
|