psman.data
Class PseudonymType

java.lang.Object
  |
  +--psman.data.PseudonymType

public final class PseudonymType
extends java.lang.Object

The type of pseudonyms.

Version:
$Id: PseudonymType.java,v 1.3 2003/11/03 16:08:55 tk4 Exp $
Author:
Martin Godisch

Field Summary
(package private)  int id
           
(package private)  java.lang.String name
           
 
Constructor Summary
PseudonymType(int id, java.lang.String name)
          Constructor, only for existing pseudonym types.
PseudonymType(java.lang.String name)
          Constructor, only for new pseudonym types.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean equals(psman.data.PseudonymType data)
          Check whether this pseudonym type is equal to another one.
 int getID()
          Return the database ID of this pseudonym type.
 java.lang.String getName()
          Return the name of this pseudonym type.
 int hashCode()
           
 void setID(int id)
          Set the database ID of this pseudonym type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

int id

name

java.lang.String name
Constructor Detail

PseudonymType

public PseudonymType(int id,
                     java.lang.String name)
Constructor, only for existing pseudonym types.

Parameters:
id - the database ID of this pseudonym type
name - the name of this pseudonym type

PseudonymType

public PseudonymType(java.lang.String name)
Constructor, only for new pseudonym types.

Parameters:
name - the name of this pseudonym type
Method Detail

getID

public int getID()
Return the database ID of this pseudonym type.

Returns:
the database ID of this pseudonym type

getName

public java.lang.String getName()
Return the name of this pseudonym type.

Returns:
the name of this pseudonym type

setID

public void setID(int id)
Set the database ID of this pseudonym type.

Parameters:
id - the database ID of this pseudonym type.

equals

public boolean equals(psman.data.PseudonymType data)
Check whether this pseudonym type is equal to another one.

Returns:
true if they are equal, false otherwise

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003 DRIM Team. All Rights Reserved.