openfuture.masterdata
Class LDMasterData
java.lang.Object
|
+--openfuture.masterdata.MasterData
|
+--openfuture.masterdata.LDMasterData
- All Implemented Interfaces:
- java.lang.Comparable, ILanguageDependent, IMasterData, java.io.Serializable
- Direct Known Subclasses:
- Language, Paint
- public class LDMasterData
- extends MasterData
- implements ILanguageDependent
This class extends the MasterData class to provide a simple
language dependent Master Data class.
Creation date: (09.09.00 19:17:24)
- See Also:
- Serialized Form
Constructor Summary |
LDMasterData()
Constructor |
LDMasterData(java.lang.String id,
java.lang.String language,
java.lang.String text)
Constructor
Creation date: (09.09.00 22:07:08) |
Method Summary |
boolean |
equals(java.lang.Object obj)
Compares two objects for equality. |
java.lang.String |
getLanguage()
Return contents of field language |
int |
hashCode()
Generates a hash code for the receiver.
|
void |
setLanguage(java.lang.String newValue)
Set contents of field language to the given value |
java.lang.String |
toString()
Returns a String that represents the value of this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
LDMasterData
public LDMasterData()
- Constructor
LDMasterData
public LDMasterData(java.lang.String id,
java.lang.String language,
java.lang.String text)
- Constructor
Creation date: (09.09.00 22:07:08)
- Parameters:
id
- java.lang.Stringlanguage
- java.lang.Stringtext
- java.lang.String
equals
public boolean equals(java.lang.Object obj)
- Compares two objects for equality. Returns a boolean that indicates
whether this object is equivalent to the specified object. This method
is used when an object is stored in a hashtable.
- Overrides:
equals
in class MasterData
- Parameters:
obj
- the Object to compare with- Returns:
- true if these Objects are equal; false otherwise.
- See Also:
Hashtable
getLanguage
public final java.lang.String getLanguage()
- Return contents of field language
- Specified by:
getLanguage
in interface ILanguageDependent
- Returns:
- (String) contents of field language
hashCode
public int hashCode()
- Generates a hash code for the receiver.
This method is supported primarily for
hash tables, such as those provided in java.util.
- Overrides:
hashCode
in class MasterData
- Returns:
- an integer hash code for the receiver
- See Also:
Hashtable
setLanguage
public final void setLanguage(java.lang.String newValue)
- Set contents of field language to the given value
- Specified by:
setLanguage
in interface ILanguageDependent
- Parameters:
newValue
- (String) new value for field language
toString
public java.lang.String toString()
- Returns a String that represents the value of this object.
- Overrides:
toString
in class MasterData
- Returns:
- a string representation of the receiver
Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.