|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uk.ac.ebi.intact.model.IntactObjectImpl
|
+--uk.ac.ebi.intact.model.BasicObjectImpl
|
+--uk.ac.ebi.intact.model.AnnotatedObjectImpl
Represents an object with biological annotation.
| Field Summary | |
java.util.Collection |
annotations
|
Person |
curator
The curator who has last edited the object. |
protected java.lang.String |
curatorAc
|
protected java.lang.String |
fullName
The full name or a minimal description of the object. |
java.util.Collection |
references
|
protected java.lang.String |
shortLabel
Short name for the object, not necessarily unique. |
java.util.Collection |
xrefs
|
| Fields inherited from class uk.ac.ebi.intact.model.IntactObjectImpl |
ac, NEW_LINE |
| Constructor Summary | |
protected |
AnnotatedObjectImpl()
no-arg constructor provided for compatibility with subclasses that have no-arg constructors. |
protected |
AnnotatedObjectImpl(java.lang.String shortLabel,
Institution owner)
Constructor for subclass use only. |
| Method Summary | |
void |
addAlias(Alias alias)
Adds an alias to the object. |
void |
addAnnotation(Annotation annotation)
|
void |
addReference(Reference reference)
|
void |
addXref(Xref aXref)
Adds an xref to the object. |
boolean |
equals(java.lang.Object o)
Equality for AnnotatedObjects is currently based on equality for Xrefs, shortLabels and fullNames. |
java.util.Collection |
getAliases()
|
java.util.Collection |
getAnnotations()
|
Person |
getCurator()
|
java.lang.String |
getCuratorAc()
|
java.lang.String |
getFullName()
|
java.util.Collection |
getReferences()
|
java.lang.String |
getShortLabel()
|
java.util.Collection |
getXrefs()
|
int |
hashCode()
This class overwrites equals. |
void |
removeAlias(Alias alias)
|
void |
removeAnnotation(Annotation annotation)
|
void |
removeReference(Reference reference)
|
void |
removeXref(Xref xref)
|
void |
setAliases(java.util.Collection someAliases)
|
void |
setAnnotation(java.util.Collection someAnnotation)
|
void |
setCurator(Person person)
|
void |
setCuratorAc(java.lang.String ac)
|
void |
setFullName(java.lang.String fullName)
|
void |
setReferences(java.util.Collection someReferences)
|
void |
setShortLabel(java.lang.String shortLabel)
|
void |
setXrefs(java.util.Collection someXrefs)
|
java.lang.String |
toString()
|
AnnotatedObject |
update(IntactHelper helper)
Update an annotated object in the database. |
Annotation |
updateUniqueAnnotation(CvTopic topic,
java.lang.String description,
Institution owner)
Create or update an annotation. |
| 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.BasicObject |
addEvidence, getEvidences, getOwner, getOwnerAc, removeEvidence, setEvidences, setOwner, setOwnerAc |
| Methods inherited from interface uk.ac.ebi.intact.model.IntactObject |
getAc, getCreated, getUpdated, setAc, setCreated, setUpdated |
| Field Detail |
protected java.lang.String curatorAc
protected java.lang.String shortLabel
protected java.lang.String fullName
public java.util.Collection annotations
public Person curator
public java.util.Collection xrefs
public java.util.Collection references
| Constructor Detail |
protected AnnotatedObjectImpl()
protected AnnotatedObjectImpl(java.lang.String shortLabel,
Institution owner)
shortLabel - The memorable label to identify this AnnotatedObjectowner - The Institution which owns this AnnotatedObject
java.lang.NullPointerException - thrown if either parameters are not specified| Method Detail |
public java.lang.String getShortLabel()
getShortLabel in interface AnnotatedObjectpublic void setShortLabel(java.lang.String shortLabel)
setShortLabel in interface AnnotatedObjectpublic java.lang.String getFullName()
getFullName in interface AnnotatedObjectpublic void setFullName(java.lang.String fullName)
setFullName in interface AnnotatedObjectpublic void setAnnotation(java.util.Collection someAnnotation)
setAnnotation in interface AnnotatedObjectpublic java.util.Collection getAnnotations()
getAnnotations in interface AnnotatedObjectpublic void addAnnotation(Annotation annotation)
addAnnotation in interface AnnotatedObjectpublic void removeAnnotation(Annotation annotation)
removeAnnotation in interface AnnotatedObjectpublic Person getCurator()
getCurator in interface AnnotatedObjectpublic void setCurator(Person person)
setCurator in interface AnnotatedObjectpublic void setXrefs(java.util.Collection someXrefs)
setXrefs in interface AnnotatedObjectpublic java.util.Collection getXrefs()
getXrefs in interface AnnotatedObjectpublic void addXref(Xref aXref)
addXref in interface AnnotatedObjectpublic void removeXref(Xref xref)
removeXref in interface AnnotatedObjectpublic void setAliases(java.util.Collection someAliases)
setAliases in interface AnnotatedObjectpublic java.util.Collection getAliases()
getAliases in interface AnnotatedObjectpublic void addAlias(Alias alias)
addAlias in interface AnnotatedObjectpublic void removeAlias(Alias alias)
removeAlias in interface AnnotatedObjectpublic void setReferences(java.util.Collection someReferences)
setReferences in interface AnnotatedObjectpublic java.util.Collection getReferences()
getReferences in interface AnnotatedObjectpublic void addReference(Reference reference)
addReference in interface AnnotatedObjectpublic void removeReference(Reference reference)
removeReference in interface AnnotatedObjectpublic java.lang.String getCuratorAc()
getCuratorAc in interface AnnotatedObjectpublic void setCuratorAc(java.lang.String ac)
setCuratorAc in interface AnnotatedObject
public AnnotatedObject update(IntactHelper helper)
throws IntactException
update in interface AnnotatedObjectIntactException
public Annotation updateUniqueAnnotation(CvTopic topic,
java.lang.String description,
Institution owner)
updateUniqueAnnotation in interface AnnotatedObjectpublic boolean equals(java.lang.Object o)
Xrefs, shortLabels and fullNames.
equals in interface AnnotatedObjectequals in class java.lang.Objecto - The object to check
Xrefpublic int hashCode()
hashCode in interface AnnotatedObjecthashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface AnnotatedObjecttoString in class BasicObjectImpl
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||