Class AbstractXmlEntity<F extends Feature>
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml253.AbstractXmlEntity<F>
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable,FileSourceContext,Entity<F>,ExtendedPsiXmlEntity<F>
- Direct Known Subclasses:
AbstractXmlParticipant,XmlExperimentalParticipantCandidate,XmlModelledParticipantCandidate
public abstract class AbstractXmlEntity<F extends Feature> extends Object implements ExtendedPsiXmlEntity<F>, FileSourceContext, com.sun.xml.bind.Locatable
Abstract class for XmlEntity- Since:
07/10/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractXmlEntity.JAXBFeatureWrapper<F extends Feature>
-
Constructor Summary
Constructors Constructor Description AbstractXmlEntity()Constructor for AbstractXmlEntity.AbstractXmlEntity(Interactor interactor)Constructor for AbstractXmlEntity.AbstractXmlEntity(Interactor interactor, Stoichiometry stoichiometry)Constructor for AbstractXmlEntity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAllFeatures(Collection<? extends F> features)This method will add all features and set the entity of the new features to this current entitybooleanaddFeature(F feature)addFeature.Collection<CausalRelationship>getCausalRelationships()Getter for the fieldcausalRelationships.EntityInteractorChangeListenergetChangeListener()Getter for the fieldchangeListener.Collection<F>getFeatures()getFeatures.intgetId()Gets the value of the id property.InteractorgetInteractor()Getter for the fieldinteractor.protected FileSourceLocatorgetParticipantLocator()getParticipantLocator.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.StoichiometrygetStoichiometry()Getter for the fieldstoichiometry.protected voidinitialiseFeatureWrapper()initialiseFeatureWrapper.protected voidinitialiseUnspecifiedInteractor()initialiseUnspecifiedInteractor.protected voidprocessAddedFeature(F feature)processAddedFeature.booleanremoveAllFeatures(Collection<? extends F> features)This method will remove all the features and set the entity of the removed features to null.booleanremoveFeature(F feature)removeFeature.voidsetChangeListener(EntityInteractorChangeListener listener)Sets the entity change listenerprotected voidsetFeatureWrapper(AbstractXmlEntity.JAXBFeatureWrapper<F> jaxbFeatureWrapper)setFeatureWrapper.voidsetId(int value)setId.voidsetInteractor(Interactor interactor)Sets the interactorvoidsetJAXBInteractor(DefaultXmlInteractor interactor)setJAXBInteractor.voidsetJAXBInteractorRef(Integer value)Sets the value of the interactorRef property.voidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorvoidsetStoichiometry(Integer stoichiometry)Sets the mean stoichiometry for this participant.voidsetStoichiometry(Stoichiometry stoichiometry)Setter for the fieldstoichiometry.LocatorsourceLocation()StringtoString()toString
-
-
-
Constructor Detail
-
AbstractXmlEntity
public AbstractXmlEntity()
Constructor for AbstractXmlEntity.
-
AbstractXmlEntity
public AbstractXmlEntity(Interactor interactor)
Constructor for AbstractXmlEntity.
- Parameters:
interactor- aInteractorobject.
-
AbstractXmlEntity
public AbstractXmlEntity(Interactor interactor, Stoichiometry stoichiometry)
Constructor for AbstractXmlEntity.
- Parameters:
interactor- aInteractorobject.stoichiometry- aStoichiometryobject.
-
-
Method Detail
-
getInteractor
public Interactor getInteractor()
Getter for the field
interactor.- Specified by:
getInteractorin interfaceEntity<F extends Feature>- Returns:
- a
Interactorobject.
-
setInteractor
public void setInteractor(Interactor interactor)
Sets the interactor- Specified by:
setInteractorin interfaceEntity<F extends Feature>- Parameters:
interactor- : interactor
-
getCausalRelationships
public Collection<CausalRelationship> getCausalRelationships()
Getter for the field
causalRelationships.- Specified by:
getCausalRelationshipsin interfaceEntity<F extends Feature>- Returns:
- a
Collectionobject.
-
getStoichiometry
public Stoichiometry getStoichiometry()
Getter for the field
stoichiometry.- Specified by:
getStoichiometryin interfaceEntity<F extends Feature>- Returns:
- a
Stoichiometryobject.
-
setStoichiometry
public void setStoichiometry(Integer stoichiometry)
Sets the mean stoichiometry for this participant.- Specified by:
setStoichiometryin interfaceEntity<F extends Feature>- Parameters:
stoichiometry- : mean stoichiometry value
-
setStoichiometry
public void setStoichiometry(Stoichiometry stoichiometry)
Setter for the field
stoichiometry.- Specified by:
setStoichiometryin interfaceEntity<F extends Feature>- Parameters:
stoichiometry- aStoichiometryobject.
-
getChangeListener
public EntityInteractorChangeListener getChangeListener()
Getter for the field
changeListener.- Specified by:
getChangeListenerin interfaceEntity<F extends Feature>- Returns:
- a
EntityInteractorChangeListenerobject.
-
setChangeListener
public void setChangeListener(EntityInteractorChangeListener listener)
Sets the entity change listener- Specified by:
setChangeListenerin interfaceEntity<F extends Feature>- Parameters:
listener- : the entity change listener
-
getFeatures
public Collection<F> getFeatures()
getFeatures.
- Specified by:
getFeaturesin interfaceEntity<F extends Feature>- Returns:
- a
Collectionobject.
-
addFeature
public boolean addFeature(F feature)
addFeature.
- Specified by:
addFeaturein interfaceEntity<F extends Feature>- Parameters:
feature- a F object.- Returns:
- a boolean.
-
removeFeature
public boolean removeFeature(F feature)
removeFeature.
- Specified by:
removeFeaturein interfaceEntity<F extends Feature>- Parameters:
feature- a F object.- Returns:
- a boolean.
-
addAllFeatures
public boolean addAllFeatures(Collection<? extends F> features)
This method will add all features and set the entity of the new features to this current entity- Specified by:
addAllFeaturesin interfaceEntity<F extends Feature>- Parameters:
features- : features to add- Returns:
- true if features are added to the list of features
-
removeAllFeatures
public boolean removeAllFeatures(Collection<? extends F> features)
This method will remove all the features and set the entity of the removed features to null.- Specified by:
removeAllFeaturesin interfaceEntity<F extends Feature>- Parameters:
features- : features to remove- Returns:
- true if features are removed from the list of features
-
setJAXBInteractor
public void setJAXBInteractor(DefaultXmlInteractor interactor)
setJAXBInteractor.
- Parameters:
interactor- aDefaultXmlInteractorobject.
-
setJAXBInteractorRef
public void setJAXBInteractorRef(Integer value)
Sets the value of the interactorRef property.- Parameters:
value- allowed object isInteger
-
getId
public int getId()
Gets the value of the id property.- Specified by:
getIdin interfaceExtendedPsiXmlEntity<F extends Feature>- Returns:
- a int.
-
setId
public void setId(int value)
setId.
Sets the value of the id property.- Specified by:
setIdin interfaceExtendedPsiXmlEntity<F extends Feature>- Parameters:
value- a int.
-
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
-
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
-
setFeatureWrapper
protected void setFeatureWrapper(AbstractXmlEntity.JAXBFeatureWrapper<F> jaxbFeatureWrapper)
setFeatureWrapper.
- Parameters:
jaxbFeatureWrapper- aAbstractXmlEntity.JAXBFeatureWrapperobject.
-
processAddedFeature
protected void processAddedFeature(F feature)
processAddedFeature.
- Parameters:
feature- a F object.
-
initialiseUnspecifiedInteractor
protected void initialiseUnspecifiedInteractor()
initialiseUnspecifiedInteractor.
-
initialiseFeatureWrapper
protected void initialiseFeatureWrapper()
initialiseFeatureWrapper.
-
getParticipantLocator
protected FileSourceLocator getParticipantLocator()
getParticipantLocator.
- Returns:
- a
FileSourceLocatorobject.
-
-