uk.ac.ebi.intact.model
Class Reference

java.lang.Object
  |
  +--uk.ac.ebi.intact.model.IntactObjectImpl
        |
        +--uk.ac.ebi.intact.model.BasicObjectImpl
              |
              +--uk.ac.ebi.intact.model.Reference
All Implemented Interfaces:
BasicObject, IntactObject, java.io.Serializable
Direct Known Subclasses:
JournalRef, SubmissionRef

public class Reference
extends BasicObjectImpl

TODO COMMENTS

Version:
$Id: Reference.java,v 1.5 2004/01/31 11:33:13 skerrien Exp $
Author:
hhe
See Also:
Serialized Form

Field Summary
protected  java.lang.String submissionRefAc
           
protected  java.lang.String xrefAc
           
 
Fields inherited from class uk.ac.ebi.intact.model.IntactObjectImpl
ac, NEW_LINE
 
Constructor Summary
protected Reference()
          This constructor exists only for the benefit of subclasses so that they can call the BasicObject no-arg constructor.
  Reference(Institution owner, java.lang.String title, java.lang.String authors)
           
 
Method Summary
 void addAnnotatedObject(AnnotatedObject annotatedObject)
           
 boolean equals(java.lang.Object o)
          Equality for References is currently based on equality for author, title and Xrefs.
 java.util.Collection getAnnotatedObjects()
           
 java.lang.String getAuthors()
           
 SubmissionRef getSubmissionRef()
           
 java.lang.String getSubmissionRefAc()
           
 java.lang.String getTitle()
           
 java.lang.String getXrefAc()
           
 int hashCode()
           
 void removeAnnotatedObject(AnnotatedObject annotatedObject)
           
 void setAuthors(java.lang.String authors)
           
 void setSubmissionRef(SubmissionRef submissionRef)
           
 void setSubmissionRefAc(java.lang.String ac)
           
 void setTitle(java.lang.String title)
           
 void setXrefAc(java.lang.String ac)
           
 
Methods inherited from class uk.ac.ebi.intact.model.BasicObjectImpl
addEvidence, getEvidences, getOwner, getOwnerAc, removeEvidence, setEvidences, setOwner, setOwnerAc, toString
 
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

submissionRefAc

protected java.lang.String submissionRefAc

xrefAc

protected java.lang.String xrefAc
Constructor Detail

Reference

protected Reference()
This constructor exists only for the benefit of subclasses so that they can call the BasicObject no-arg constructor. This is an expcetion to the general rule as this is the only concrete class which itself is already subclassed.


Reference

public Reference(Institution owner,
                 java.lang.String title,
                 java.lang.String authors)
Method Detail

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

getAuthors

public java.lang.String getAuthors()

setAuthors

public void setAuthors(java.lang.String authors)

getAnnotatedObjects

public java.util.Collection getAnnotatedObjects()

addAnnotatedObject

public void addAnnotatedObject(AnnotatedObject annotatedObject)

removeAnnotatedObject

public void removeAnnotatedObject(AnnotatedObject annotatedObject)

getSubmissionRef

public SubmissionRef getSubmissionRef()

setSubmissionRef

public void setSubmissionRef(SubmissionRef submissionRef)

equals

public boolean equals(java.lang.Object o)
Equality for References is currently based on equality for author, title and Xrefs.

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:
Xref

hashCode

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

getSubmissionRefAc

public java.lang.String getSubmissionRefAc()

setSubmissionRefAc

public void setSubmissionRefAc(java.lang.String ac)

getXrefAc

public java.lang.String getXrefAc()

setXrefAc

public void setXrefAc(java.lang.String ac)


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