Class AbstractXmlInteraction<T extends Participant>
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml253.AbstractXmlInteraction<T>
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable,FileSourceContext,Interaction<T>,NamedInteraction<T>
- Direct Known Subclasses:
AbstractPsiXmlInteraction
public abstract class AbstractXmlInteraction<T extends Participant> extends Object implements FileSourceContext, com.sun.xml.bind.Locatable, NamedInteraction<T>
Abstract class for xml interactions- Since:
09/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractXmlInteraction.JAXBAttributeWrapperstatic classAbstractXmlInteraction.JAXBParticipantWrapper<T extends Participant>
-
Constructor Summary
Constructors Constructor Description AbstractXmlInteraction()Constructor for AbstractXmlInteraction.AbstractXmlInteraction(String shortName)Constructor for AbstractXmlInteraction.AbstractXmlInteraction(String shortName, CvTerm type)Constructor for AbstractXmlInteraction.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanaddAllParticipants(Collection<? extends T> participants)This method will add all the participant and set the interaction of the new participant to this current interactionbooleanaddParticipant(T part)addParticipant.voidassignComplexAc(String value)Sets the value of the complexAc propertyvoidassignImexId(String value)Sets the value of the imexId propertyList<Alias>getAliases()Collection of aliases for an interaction.Collection<Annotation>getAnnotations()getAnnotations.protected AbstractXmlInteraction.JAXBAttributeWrappergetAttributeWrapper()getAttributeWrapper.Collection<Checksum>getChecksums()getChecksums.StringgetComplexAc()Gets the value of the complexAc property.StringgetComplexVersion()Gets the value of the complexVersion property.DategetCreatedDate()Getter for the fieldcreatedDate.EntrygetEntry()Getter for the fieldentry.StringgetFullName()The full name of the interaction.intgetId()Gets the value of the id property.Collection<Xref>getIdentifiers()getIdentifiers.StringgetImexId()Gets the value of the imexId property.protected NamesContainergetInteractionNamesContainer()Getter for the fieldinteractionNamesContainer.abstract CvTermgetInteractionType()getInteractionType.protected InteractionXrefContainergetInteractionXrefContainer()getInteractionXrefContainer.Collection<T>getParticipants()getParticipants.StringgetRigid()getRigid.StringgetShortName()getShortName.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.DategetUpdatedDate()Getter for the fieldupdatedDate.Collection<Xref>getXrefs()getXrefs.protected voidinitialiseAnnotationWrapper()initialiseAnnotationWrapper.protected voidinitialiseNamesContainer()initialiseNamesContainer.protected voidinitialiseParticipantWrapper()initialiseParticipantWrapper.booleanisIntraMolecular()isIntraMolecular.protected voidprocessAddedParticipant(T participant)processAddedParticipant.booleanremoveAllParticipants(Collection<? extends T> participants)This method will remove the participant and set the interaction of the removed participant to null.booleanremoveParticipant(T part)removeParticipant.voidsetCreatedDate(Date created)Sets the created datevoidsetEntry(Entry entry)Setter for the fieldentry.voidsetFullName(String name)Sets the full name of the interactionvoidsetId(int value)Sets the value of the id property.voidsetInteractionNamesContainer(NamesContainer value)Sets the value of the names property.abstract voidsetInteractionType(CvTerm term)Sets the interaction type.voidsetInteractionXrefContainer(InteractionXrefContainer value)Sets the value of the interactionXrefContainer property.voidsetIntraMolecular(boolean value)Sets the value of the intraMolecular property.voidsetJAXBAttributeWrapper(AbstractXmlInteraction.JAXBAttributeWrapper jaxbAttributeWrapper)setJAXBAttributeWrapper.voidsetParticipantWrapper(AbstractXmlInteraction.JAXBParticipantWrapper<T> jaxbParticipantWrapper)setParticipantWrapper.voidsetRigid(String rigid)Sets the rigid of this interaction.voidsetShortName(String name)Sets the short name of the interactionvoidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorvoidsetUpdatedDate(Date updated)Sets the last update dateLocatorsourceLocation()StringtoString()toString
-
-
-
Method Detail
-
getShortName
public String getShortName()
getShortName.
- Specified by:
getShortNamein interfaceInteraction<T extends Participant>- Returns:
- a
Stringobject.
-
setShortName
public void setShortName(String name)
Sets the short name of the interaction- Specified by:
setShortNamein interfaceInteraction<T extends Participant>- Parameters:
name- : short name
-
getAliases
public List<Alias> getAliases()
Collection of aliases for an interaction. The Collection cannot be null and if the interaction does not have any aliases, the method should return an empty Collection.- Specified by:
getAliasesin interfaceNamedInteraction<T extends Participant>- Returns:
- the aliases
-
setFullName
public void setFullName(String name)
Sets the full name of the interaction- Specified by:
setFullNamein interfaceNamedInteraction<T extends Participant>- Parameters:
name- : full name
-
getFullName
public String getFullName()
The full name of the interaction. It can be null- Specified by:
getFullNamein interfaceNamedInteraction<T extends Participant>- Returns:
- the full name
-
getRigid
public String getRigid()
getRigid.
- Specified by:
getRigidin interfaceInteraction<T extends Participant>- Returns:
- a
Stringobject.
-
setRigid
public void setRigid(String rigid)
Sets the rigid of this interaction. It will remove the previous rigid from the list of checksum and add the new one. If rigid is null, it will remove all the rigid in the list of checksum- Specified by:
setRigidin interfaceInteraction<T extends Participant>- Parameters:
rigid- : the rigid
-
getIdentifiers
public Collection<Xref> getIdentifiers()
getIdentifiers.
- Specified by:
getIdentifiersin interfaceInteraction<T extends Participant>- Returns:
- a
Collectionobject.
-
getXrefs
public Collection<Xref> getXrefs()
getXrefs.
- Specified by:
getXrefsin interfaceInteraction<T extends Participant>- Returns:
- a
Collectionobject.
-
getChecksums
public Collection<Checksum> getChecksums()
getChecksums.
- Specified by:
getChecksumsin interfaceInteraction<T extends Participant>- Returns:
- a
Collectionobject.
-
getAnnotations
public Collection<Annotation> getAnnotations()
getAnnotations.
- Specified by:
getAnnotationsin interfaceInteraction<T extends Participant>- Returns:
- a
Collectionobject.
-
getUpdatedDate
public Date getUpdatedDate()
Getter for the field
updatedDate.- Specified by:
getUpdatedDatein interfaceInteraction<T extends Participant>- Returns:
- a
Dateobject.
-
setUpdatedDate
public void setUpdatedDate(Date updated)
Sets the last update date- Specified by:
setUpdatedDatein interfaceInteraction<T extends Participant>- Parameters:
updated- : last update date
-
getCreatedDate
public Date getCreatedDate()
Getter for the field
createdDate.- Specified by:
getCreatedDatein interfaceInteraction<T extends Participant>- Returns:
- a
Dateobject.
-
setCreatedDate
public void setCreatedDate(Date created)
Sets the created date- Specified by:
setCreatedDatein interfaceInteraction<T extends Participant>- Parameters:
created- : created date
-
getInteractionType
public abstract CvTerm getInteractionType()
getInteractionType.
- Specified by:
getInteractionTypein interfaceInteraction<T extends Participant>- Returns:
- a
CvTermobject.
-
setInteractionType
public abstract void setInteractionType(CvTerm term)
Sets the interaction type.- Specified by:
setInteractionTypein interfaceInteraction<T extends Participant>- Parameters:
term- : interaction type
-
getParticipants
public Collection<T> getParticipants()
getParticipants.
- Specified by:
getParticipantsin interfaceInteraction<T extends Participant>- Returns:
- a
Collectionobject.
-
addParticipant
public boolean addParticipant(T part)
addParticipant.
- Specified by:
addParticipantin interfaceInteraction<T extends Participant>- Parameters:
part- a T object.- Returns:
- a boolean.
-
removeParticipant
public boolean removeParticipant(T part)
removeParticipant.
- Specified by:
removeParticipantin interfaceInteraction<T extends Participant>- Parameters:
part- a T object.- Returns:
- a boolean.
-
addAllParticipants
public boolean addAllParticipants(Collection<? extends T> participants)
This method will add all the participant and set the interaction of the new participant to this current interaction- Specified by:
addAllParticipantsin interfaceInteraction<T extends Participant>- Parameters:
participants- : participants to add- Returns:
- true if participant are added to the list of participants
-
removeAllParticipants
public boolean removeAllParticipants(Collection<? extends T> participants)
This method will remove the participant and set the interaction of the removed participant to null.- Specified by:
removeAllParticipantsin interfaceInteraction<T extends Participant>- Parameters:
participants- : participants to remove- Returns:
- true if participant are removed from the list of participants
-
getInteractionNamesContainer
protected NamesContainer getInteractionNamesContainer()
Getter for the field
interactionNamesContainer.- Returns:
- a
NamesContainerobject.
-
setInteractionNamesContainer
public void setInteractionNamesContainer(NamesContainer value)
Sets the value of the names property.- Parameters:
value- allowed object isNamesContainer
-
getInteractionXrefContainer
protected InteractionXrefContainer getInteractionXrefContainer()
getInteractionXrefContainer.
- Returns:
- a
InteractionXrefContainerobject.
-
setInteractionXrefContainer
public void setInteractionXrefContainer(InteractionXrefContainer value)
Sets the value of the interactionXrefContainer property.- Parameters:
value- allowed object isInteractionXrefContainer
-
isIntraMolecular
public boolean isIntraMolecular()
isIntraMolecular.
- Returns:
- a boolean.
-
setIntraMolecular
public void setIntraMolecular(boolean value)
Sets the value of the intraMolecular property.- Parameters:
value- allowed object isBoolean
-
getId
public int getId()
Gets the value of the id property.- Returns:
- a int.
-
setId
public void setId(int value)
Sets the value of the id property.- Parameters:
value- a int.
-
getImexId
public String getImexId()
Gets the value of the imexId property.- Returns:
- a
Stringobject.
-
assignImexId
public void assignImexId(String value)
Sets the value of the imexId property- Parameters:
value- aStringobject.
-
getComplexAc
public String getComplexAc()
Gets the value of the complexAc property.- Returns:
- a
Stringobject.
-
getComplexVersion
public String getComplexVersion()
Gets the value of the complexVersion property.- Returns:
- a
Stringobject.
-
assignComplexAc
public void assignComplexAc(String value)
Sets the value of the complexAc property- Parameters:
value- aStringobject.
-
sourceLocation
public Locator sourceLocation()
- Specified by:
sourceLocationin interfacecom.sun.xml.bind.Locatable
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator.- Specified by:
getSourceLocatorin interfaceFileSourceContext- Returns:
- a
FileSourceLocatorobject.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocatorin interfaceFileSourceContext- Parameters:
sourceLocator- : the file locator
-
setEntry
public void setEntry(Entry entry)
Setter for the field
entry.- Parameters:
entry- aEntryobject.
-
toString
public String toString()
toString
- Specified by:
toStringin interfaceFileSourceContext- Overrides:
toStringin classObject- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
setJAXBAttributeWrapper
public void setJAXBAttributeWrapper(AbstractXmlInteraction.JAXBAttributeWrapper jaxbAttributeWrapper)
setJAXBAttributeWrapper.
- Parameters:
jaxbAttributeWrapper- aAbstractXmlInteraction.JAXBAttributeWrapperobject.
-
setParticipantWrapper
public void setParticipantWrapper(AbstractXmlInteraction.JAXBParticipantWrapper<T> jaxbParticipantWrapper)
setParticipantWrapper.
- Parameters:
jaxbParticipantWrapper- aAbstractXmlInteraction.JAXBParticipantWrapperobject.
-
processAddedParticipant
protected void processAddedParticipant(T participant)
processAddedParticipant.
- Parameters:
participant- a T object.
-
initialiseAnnotationWrapper
protected void initialiseAnnotationWrapper()
initialiseAnnotationWrapper.
-
initialiseParticipantWrapper
protected void initialiseParticipantWrapper()
initialiseParticipantWrapper.
-
getAttributeWrapper
protected AbstractXmlInteraction.JAXBAttributeWrapper getAttributeWrapper()
getAttributeWrapper.
- Returns:
- a
AbstractXmlInteraction.JAXBAttributeWrapperobject.
-
initialiseNamesContainer
protected void initialiseNamesContainer()
initialiseNamesContainer.
-
-