uk.ac.ebi.intenz.domain.constants
Class EventConstant

java.lang.Object
  extended by uk.ac.ebi.intenz.domain.constants.EventConstant

Deprecated. use enumeration Event instead.

public class EventConstant
extends Object

This class provides all event constants.

Instances of this class are immutable.

Version:
$Revision: 1.3 $ $Date: 2009/04/16 15:01:04 $
Author:
Michael Darsow

Field Summary
static EventConstant CREATION
          Deprecated.  
static EventConstant DELETION
          Deprecated.  
static EventConstant MODIFICATION
          Deprecated.  
static EventConstant TRANSFER
          Deprecated.  
 
Method Summary
 boolean equals(Object o)
          Deprecated. Standard equals method.
 String getCode()
          Deprecated. Returns the code of this event.
 int hashCode()
          Deprecated. Returns the hash code of this object.
 String toString()
          Deprecated. Returns the database code.
static EventConstant valueOf(String eventCode)
          Deprecated. Returns the corresponding instance of the given event code.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DELETION

public static final EventConstant DELETION
Deprecated. 

TRANSFER

public static final EventConstant TRANSFER
Deprecated. 

MODIFICATION

public static final EventConstant MODIFICATION
Deprecated. 

CREATION

public static final EventConstant CREATION
Deprecated. 
Method Detail

valueOf

public static EventConstant valueOf(String eventCode)
Deprecated. 
Returns the corresponding instance of the given event code.

If the event code does not match any code an exception is thrown.

Parameters:
eventCode - The event code.
Returns:
the class constant corresponding to the given code.
Throws:
IllegalArgumentException - if the code is invalid.

equals

public boolean equals(Object o)
Deprecated. 
Standard equals method.

Overrides:
equals in class Object
Parameters:
o - Object to be compared to this one.
Returns:
true if the objects are equal.

hashCode

public int hashCode()
Deprecated. 
Returns the hash code of this object.

Overrides:
hashCode in class Object
Returns:
the hash code of this object.

toString

public String toString()
Deprecated. 
Returns the database code.

Overrides:
toString in class Object
Returns:
the database code.

getCode

public String getCode()
Deprecated. 
Returns the code of this event.

Returns:
the event's code.


Copyright © 2013 EMBL-EBI. All Rights Reserved.