openfuture.masterdata
Class MasterData

java.lang.Object
  |
  +--openfuture.masterdata.MasterData
All Implemented Interfaces:
java.lang.Comparable, IMasterData, java.io.Serializable
Direct Known Subclasses:
LDMasterData, Manufacturer

public class MasterData
extends java.lang.Object
implements IMasterData

This class is a simple implementation of the IMasterData interface. Creation date: (09.09.00 19:14:10)

See Also:
Serialized Form

Constructor Summary
MasterData()
          Constructor
MasterData(java.lang.String id, java.lang.String text)
          Constructor Creation date: (09.09.00 22:06:16)
 
Method Summary
 int compareTo(IMasterData o)
          compareTo method comment.
 int compareTo(java.lang.Object o)
          compareTo method comment.
 boolean equals(java.lang.Object obj)
          Compares two objects for equality.
 java.lang.String getId()
          Return contents of field id
 java.lang.String getText()
          Return contents of field text
 int hashCode()
          Generates a hash code for the receiver.
 void setId(java.lang.String newValue)
          Set contents of field id to the given value
 void setText(java.lang.String newValue)
          Set contents of field text 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
 

Constructor Detail

MasterData

public MasterData()
Constructor

MasterData

public MasterData(java.lang.String id,
                  java.lang.String text)
Constructor Creation date: (09.09.00 22:06:16)
Parameters:
id - java.lang.String
text - java.lang.String
Method Detail

compareTo

public int compareTo(java.lang.Object o)
compareTo method comment.
Specified by:
compareTo in interface java.lang.Comparable

compareTo

public int compareTo(IMasterData o)
compareTo method comment.

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 java.lang.Object
Parameters:
obj - the Object to compare with
Returns:
true if these Objects are equal; false otherwise.
See Also:
Hashtable

getId

public final java.lang.String getId()
Return contents of field id
Specified by:
getId in interface IMasterData
Returns:
(String) contents of field id

getText

public final java.lang.String getText()
Return contents of field text
Specified by:
getText in interface IMasterData
Returns:
(String) contents of field text

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 java.lang.Object
Returns:
an integer hash code for the receiver
See Also:
Hashtable

setId

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

setText

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

toString

public java.lang.String toString()
Returns a String that represents the value of this object.
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the receiver


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