openfuture.bugbase.domain
Class MasterDataProvider

java.lang.Object
  |
  +--openfuture.bugbase.domain.MasterDataProvider
All Implemented Interfaces:
IMasterDataProvider, java.io.Serializable

public class MasterDataProvider
extends java.lang.Object
implements IMasterDataProvider, java.io.Serializable

MasterData Provider. Created: Wed Jan 10 16:49:20 2001

Version:
$Revision: 1.5 $
Author:
Wolfgang Reissenberger
See Also:
Serialized Form

Constructor Summary
MasterDataProvider(IMasterDataService service)
          Creates a new MasterDataProvider instance with the system's default locale.
MasterDataProvider(IMasterDataService service, java.util.Locale locale)
          Creates a new MasterDataProvider instance.
 
Method Summary
 java.util.Vector getErrorLevelKeys()
          Convienience method accessing the keys from MasterDataService.ERRORLEVELS.
 java.util.Vector getErrorLevels()
          Convienience method accessing the master data from MasterDataService.ERRORLEVELS.
 java.util.Vector getErrorLevelValues()
          Convienience method accessing the values from MasterDataService.ERRORLEVELS.
 java.util.Locale getLocale()
          Get the used locale.
 java.util.Vector getMasterData(java.lang.String type)
          Get the master data for the given type.
 IMasterData getMasterData(java.lang.String type, java.lang.String key)
          Get the master data for the given key from type in the set locale.
 java.lang.String getMasterDataText(java.lang.String type, java.lang.String key)
          Return the value of the masterdata of given type and given key.
 IMasterDataService getService()
          Get the value of service.
 java.util.Vector getYesNoDefault()
          Convienience method accessing the master data from MasterDataService.YES_NO_DEFAULT.
 java.util.Vector getYesNoDefaultKeys()
          Convienience method accessing the keys from MasterDataService.YES_NO_DEFAULT.
 java.util.Vector getYesNoDefaultValues()
          Convienience method accessing the values from MasterDataService.YES_NO_DEFAULT.
 void setLocale(java.util.Locale v)
          Set the locale, for which master data will be returned.
 void setService(IMasterDataService v)
          Set the value of service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MasterDataProvider

public MasterDataProvider(IMasterDataService service,
                          java.util.Locale locale)
Creates a new MasterDataProvider instance.
Parameters:
service - a master data service
locale - the used locale

MasterDataProvider

public MasterDataProvider(IMasterDataService service)
Creates a new MasterDataProvider instance with the system's default locale.
Parameters:
service - a master data service
Method Detail

getMasterData

public java.util.Vector getMasterData(java.lang.String type)
Get the master data for the given type.
Specified by:
getMasterData in interface IMasterDataProvider
Parameters:
type - type of master data
Returns:
master data for the system default locale.

getMasterData

public IMasterData getMasterData(java.lang.String type,
                                 java.lang.String key)
Get the master data for the given key from type in the set locale.
Specified by:
getMasterData in interface IMasterDataProvider
Parameters:
type - type of master data
key - master data key.
Returns:

getMasterDataText

public java.lang.String getMasterDataText(java.lang.String type,
                                          java.lang.String key)
Return the value of the masterdata of given type and given key.
Parameters:
type - masterdata type
key - masterdata key
Returns:
the text value of the masterdata entry.

getYesNoDefault

public java.util.Vector getYesNoDefault()
Convienience method accessing the master data from MasterDataService.YES_NO_DEFAULT.
Returns:
vector of master data for the locale set.

getYesNoDefaultValues

public java.util.Vector getYesNoDefaultValues()
Convienience method accessing the values from MasterDataService.YES_NO_DEFAULT.
Returns:
vector of master data values for the locale set.

getYesNoDefaultKeys

public java.util.Vector getYesNoDefaultKeys()
Convienience method accessing the keys from MasterDataService.YES_NO_DEFAULT.
Returns:
vector of master data keys for the locale set.

getErrorLevels

public java.util.Vector getErrorLevels()
Convienience method accessing the master data from MasterDataService.ERRORLEVELS.
Returns:
vector of master data for the locale set.

getErrorLevelValues

public java.util.Vector getErrorLevelValues()
Convienience method accessing the values from MasterDataService.ERRORLEVELS.
Returns:
vector of master data values for the locale set.

getErrorLevelKeys

public java.util.Vector getErrorLevelKeys()
Convienience method accessing the keys from MasterDataService.ERRORLEVELS.
Returns:
vector of master data keys for the locale set.

getService

public IMasterDataService getService()
Get the value of service.
Returns:
value of service.

setService

public void setService(IMasterDataService v)
Set the value of service.
Parameters:
v - Value to assign to service.

getLocale

public java.util.Locale getLocale()
Get the used locale.
Returns:
value of locale.

setLocale

public void setLocale(java.util.Locale v)
Set the locale, for which master data will be returned.
Parameters:
v - Value to assign to locale.


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.