uk.ac.ebi.intact.model
Class Alias

java.lang.Object
  |
  +--uk.ac.ebi.intact.model.IntactObjectImpl
        |
        +--uk.ac.ebi.intact.model.BasicObjectImpl
              |
              +--uk.ac.ebi.intact.model.Alias
All Implemented Interfaces:
BasicObject, IntactObject, java.io.Serializable

public class Alias
extends BasicObjectImpl

An alternative name for the object.

Currently, the name of the Alias is set to lowercase.

Version:
$Id: Alias.java,v 1.8 2004/02/20 10:39:12 skerrien Exp $
Author:
hhe, Samuel Kerrien (skerrien@ebi.ac.uk)
See Also:
CvAliasType, Serialized Form

Field Summary
 java.lang.String cvAliasTypeAc
           
 
Fields inherited from class uk.ac.ebi.intact.model.IntactObjectImpl
ac, NEW_LINE
 
Constructor Summary
Alias(Institution anOwner, AnnotatedObject annotatedObject, CvAliasType cvAliasType, java.lang.String name)
          Create a new Alias for the given Annotated object
 
Method Summary
 boolean equals(java.lang.Object o)
          Equality for Aliases is currently based on equality for CvAliasTypes and names.
 CvAliasType getCvAliasType()
           
 java.lang.String getName()
           
 java.lang.String getParentAc()
           
 int hashCode()
           
 void setCvAliasType(CvAliasType cvAliasType)
           
 void setName(java.lang.String name)
           
 void setParentAc(java.lang.String parentAc)
           
 java.lang.String toString()
           
 
Methods inherited from class uk.ac.ebi.intact.model.BasicObjectImpl
addEvidence, getEvidences, getOwner, getOwnerAc, removeEvidence, setEvidences, setOwner, setOwnerAc
 
Methods inherited from class uk.ac.ebi.intact.model.IntactObjectImpl
getAc, getCreated, getUpdated, setAc, setCreated, setUpdated
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface uk.ac.ebi.intact.model.IntactObject
getAc, getCreated, getUpdated, setAc, setCreated, setUpdated
 

Field Detail

cvAliasTypeAc

public java.lang.String cvAliasTypeAc
Constructor Detail

Alias

public Alias(Institution anOwner,
             AnnotatedObject annotatedObject,
             CvAliasType cvAliasType,
             java.lang.String name)
Create a new Alias for the given Annotated object

Parameters:
anOwner - The institution owning this Alias
annotatedObject - the object to which we'll add a new Alias
cvAliasType - the CvAliasType (may be null)
name - the name of the alias (namy be null)
See Also:
CvAliasType, AnnotatedObject
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getParentAc

public java.lang.String getParentAc()

setParentAc

public void setParentAc(java.lang.String parentAc)

getCvAliasType

public CvAliasType getCvAliasType()

setCvAliasType

public void setCvAliasType(CvAliasType cvAliasType)

equals

public boolean equals(java.lang.Object o)
Equality for Aliases is currently based on equality for CvAliasTypes and names.

Overrides:
equals in class java.lang.Object
Parameters:
o - The object to check
Returns:
true if the parameter equals this object, false otherwise
See Also:
CvAliasType

hashCode

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

toString

public java.lang.String toString()
Specified by:
toString in interface BasicObject
Overrides:
toString in class BasicObjectImpl


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk