openfuture.masterdata
Class MasterDataContainer

java.lang.Object
  |
  +--openfuture.masterdata.MasterDataContainer
All Implemented Interfaces:
IMasterDataContainer, java.io.Serializable

public class MasterDataContainer
extends java.lang.Object
implements IMasterDataContainer

This class implements the IMasterDataContainer interface in order to provide a container for non-language dependent master data. Creation date: (10.09.00 09:32:50)

See Also:
Serialized Form

Constructor Summary
MasterDataContainer()
          Constructor
MasterDataContainer(java.util.Vector data)
          Constructor Creation date: (10.09.00 09:34:37)
 
Method Summary
 java.util.Vector getData()
          Return contents of field data
 IMasterDataContainer getMasterData(java.lang.String language)
          Provides another container with master data for the given language As this implementation is used to manage non-language dependent master data, it always returns a new container which contains all master data Creation date: (10.09.00 10:10:44)
 boolean hasMasterData(java.lang.String language)
          Indicates if this container can provide data for a given language.
 void setData(java.util.Vector newValue)
          Set contents of field data to the given value
 void setLanguage(java.lang.String newValue)
          Set contents of field language to the given value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MasterDataContainer

public MasterDataContainer()
Constructor

MasterDataContainer

public MasterDataContainer(java.util.Vector data)
Constructor Creation date: (10.09.00 09:34:37)
Parameters:
data - java.util.Vector
Method Detail

getData

public final java.util.Vector getData()
Return contents of field data
Specified by:
getData in interface IMasterDataContainer
Returns:
(Vector) contents of field data

getMasterData

public IMasterDataContainer getMasterData(java.lang.String language)
Provides another container with master data for the given language As this implementation is used to manage non-language dependent master data, it always returns a new container which contains all master data Creation date: (10.09.00 10:10:44)
Specified by:
getMasterData in interface IMasterDataContainer
Parameters:
language - java.lang.String
Returns:
IMasterDataContainer

hasMasterData

public boolean hasMasterData(java.lang.String language)
Indicates if this container can provide data for a given language. As this implementation is used to manage non-language dependent master data, it always contains data for the "right" language, whatever the argument is. Creation date: (10.09.00 10:10:44)
Specified by:
hasMasterData in interface IMasterDataContainer
Parameters:
language - java.lang.String
Returns:
boolean

setData

public final void setData(java.util.Vector newValue)
Set contents of field data to the given value
Parameters:
newValue - (Vector) new value for field data

setLanguage

public final void setLanguage(java.lang.String newValue)
Set contents of field language to the given value
Specified by:
setLanguage in interface IMasterDataContainer
Parameters:
newValue - (String) new value for field language


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