Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Class RBMasterDataSource  view RBMasterDataSource download

  extended byopenfuture.util.masterdata.RBMasterDataSource
All Implemented Interfaces:

public class RBMasterDataSource
extends java.lang.Object
implements openfuture.masterdata.IMasterDataSource

Source of master data using resource bundles.

Created: Wed Jan 10 10:36:15 2001

$Revision: 1.3 $

Field Summary
private  LocalizedMasterDataContainer container
private  java.lang.String type
Constructor Summary
RBMasterDataSource(java.lang.String type, java.util.Vector bundles, java.util.Vector keys, java.lang.String prefix)
          Creates a new RBMasterDataSource instance.
Method Summary
protected  LocalizedMasterDataContainer getContainer()
          Get the value of container.
 openfuture.masterdata.IMasterDataContainer getMasterData(java.lang.String type)
          If getType() 55 returns null or is equal to type, the container with master data is returned.
 java.lang.String getType()
          Get the value of type.
protected  void setContainer(LocalizedMasterDataContainer v)
          Set the value of container.
protected  void setType(java.lang.String v)
          Set the value of type.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


private java.lang.String type


private LocalizedMasterDataContainer container
Constructor Detail


public RBMasterDataSource(java.lang.String type,
                          java.util.Vector bundles,
                          java.util.Vector keys,
                          java.lang.String prefix)
Creates a new RBMasterDataSource instance. For each given ResourceBundle, a vector of LDMasterData is added, one for each of the given keys. The description is retreived from the given resource bundle. The given search string in the resource bundle is the concatenation of the given prefix and the respective key.

Special case: If the key is null or an empty string, the empty string is added as key and as value for each resource bundle.

Method Detail


public openfuture.masterdata.IMasterDataContainer getMasterData(java.lang.String type)
If getType() 55 returns null or is equal to type, the container with master data is returned. Otherwise, null will be returned.

Specified by:
getMasterData in interface openfuture.masterdata.IMasterDataSource


public java.lang.String getType()
Get the value of type.


protected void setType(java.lang.String v)
Set the value of type.


protected LocalizedMasterDataContainer getContainer()
Get the value of container.


protected void setContainer(LocalizedMasterDataContainer v)
Set the value of container.