openfuture.util.masterdata
Class LocalizedMasterDataContainer

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

public class LocalizedMasterDataContainer
extends java.lang.Object
implements IMasterDataContainer

LocalizedMasterDataContainer.java Created: Wed Jan 10 14:25:03 2001

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

Constructor Summary
LocalizedMasterDataContainer()
          Creates a new LocalizedMasterDataContainer instance.
 
Method Summary
 void addMasterData(java.lang.String language, java.util.Vector data)
           
 java.util.Vector getData()
          Returns the master data for all languages.
protected  java.util.Hashtable getDataHash()
          Get the value of dataHash.
 IMasterDataContainer getMasterData(java.lang.String language)
          Returns the master data container for the given language key.
 boolean hasMasterData(java.lang.String language)
          Returns true, iff this container has master data for the given language key.
protected  void setDataHash(java.util.Hashtable v)
          Set the value of dataHash.
 void setLanguage(java.lang.String language)
          Set the default language.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalizedMasterDataContainer

public LocalizedMasterDataContainer()
Creates a new LocalizedMasterDataContainer instance.
Method Detail

getData

public java.util.Vector getData()
Returns the master data for all languages.
Specified by:
getData in interface IMasterDataContainer
Returns:
the concatenation of the language dependant master data vectors.

getMasterData

public IMasterDataContainer getMasterData(java.lang.String language)
Returns the master data container for the given language key.
Specified by:
getMasterData in interface IMasterDataContainer
Parameters:
language - language key
Returns:
master data container

hasMasterData

public boolean hasMasterData(java.lang.String language)
Returns true, iff this container has master data for the given language key.
Specified by:
hasMasterData in interface IMasterDataContainer
Parameters:
language - language key
Returns:
(see description)

setLanguage

public void setLanguage(java.lang.String language)
Set the default language.
Specified by:
setLanguage in interface IMasterDataContainer
Parameters:
language - language key

addMasterData

public void addMasterData(java.lang.String language,
                          java.util.Vector data)

getDataHash

protected java.util.Hashtable getDataHash()
Get the value of dataHash.
Returns:
value of dataHash.

setDataHash

protected void setDataHash(java.util.Hashtable v)
Set the value of dataHash.
Parameters:
v - Value to assign to dataHash.


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