Class AbstractXmlModelledInteractionWriter<I extends ModelledInteraction>
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.abstracts.AbstractXmlInteractionWriter<I,ModelledParticipant>
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.abstracts.AbstractXmlModelledInteractionWriter<I>
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.extended.AbstractXmlModelledInteractionWriter<I>
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.extended.xml30.AbstractXmlModelledInteractionWriter<I>
-
- All Implemented Interfaces:
PsiXmlElementWriter<I>,PsiXmlExtendedInteractionWriter<I>,PsiXmlInteractionWriter<I>
- Direct Known Subclasses:
XmlModelledBinaryInteractionWriter,XmlModelledBinaryInteractionWriter,XmlModelledInteractionWriter,XmlModelledInteractionWriter
public abstract class AbstractXmlModelledInteractionWriter<I extends ModelledInteraction> extends AbstractXmlModelledInteractionWriter<I> implements PsiXmlExtendedInteractionWriter<I>
Abstract class for XML 3.0 writers of modelled interaction- Since:
18/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlModelledInteractionWriter(XMLStreamWriter writer, PsiXmlObjectCache objectIndex)Constructor for AbstractXmlModelledInteractionWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Experiment>extractDefaultExperimentsFrom(I interaction)extractDefaultExperimentsFrom.PsiXmlElementWriter<Allostery>getAllosteryWriter()Getter for the fieldallosteryWriter.PsiXmlElementWriter<Set<Feature>>getBindingFeaturesWriter()Getter for the fieldbindingFeaturesWriter.PsiXmlCausalRelationshipWritergetCausalRelationshipWriter()Getter for the fieldcausalRelationshipWriter.List<Experiment>getDefaultExperiments()The default experiments that will be used to write a valid XML file but are not real experiments attached to the interaction.PsiXmlElementWriter<Organism>getOrganismWriter()Getter for the fieldorganismWriter.PsiXmlElementWriter<Preassembly>getPreAssemblyWriter()Getter for the fieldpreAssemblyWriter.protected voidinitialiseCausalRelationshipWriter()initialiseCausalRelationshipWriter.protected voidinitialiseConfidenceWriter()initialiseConfidenceWriter.protected voidinitialiseExperimentWriter()initialiseExperimentWriter.protected voidinitialiseParameterWriter()initialiseParameterWriter.voidsetAllosteryWriter(PsiXmlElementWriter<Allostery> allosteryWriter)Setter for the fieldallosteryWriter.voidsetBindingFeaturesWriter(PsiXmlElementWriter<Set<Feature>> bindingFeaturesWriter)Setter for the fieldbindingFeaturesWriter.voidsetCausalRelationshipWriter(PsiXmlCausalRelationshipWriter causalRelationshipWriter)Setter for the fieldcausalRelationshipWriter.voidsetDefaultExperiments(List<Experiment> exp)Sets the default experiments that will be used to write a valid XML file even if the interaction does not have any valid experimentvoidsetOrganismWriter(PsiXmlElementWriter<Organism> organismWriter)Setter for the fieldorganismWriter.voidsetPreAssemblyWriter(PsiXmlElementWriter<Preassembly> preAssemblyWriter)Setter for the fieldpreAssemblyWriter.protected voidwriteCausalRelationships(I object)writeCausalRelationships.protected voidwriteCooperativeEffect(I object, boolean startAttributeList)writeCooperativeEffect.protected voidwriteCooperativeEffects(I object)writeCooperativeEffects.protected voidwriteEvidenceType(I object)writeEvidenceType.protected CvTermwriteExperimentDescription()writeExperimentDescription.protected CvTermwriteExperimentRef()writeExperimentRef.protected CvTermwriteExperiments(I object)writeExperiments.protected voidwriteInferredInteractions(I object)writeInferredInteractions.protected voidwriteInteractorType(Complex complex)writeInteractorType.protected voidwriteIntraMolecular(I object)writeIntraMolecular.protected voidwriteOrganism(Complex complex)writeOrganism.protected voidwriteOtherProperties(I object)writeOtherProperties.protected voidwriteStartInteraction()writeStartInteraction.-
Methods inherited from class psidev.psi.mi.jami.xml.io.writer.elements.impl.extended.AbstractXmlModelledInteractionWriter
initialiseInferredInteractionWriter, initialiseInteractionTypeWriter, initialiseXrefWriter
-
Methods inherited from class psidev.psi.mi.jami.xml.io.writer.elements.impl.abstracts.AbstractXmlModelledInteractionWriter
getAliasWriter, getConfidenceWriter, getParameterWriter, initialiseDefaultExperiment, setAliasWriter, setConfidenceWriter, setDefaultExperiment, setParameterWriter, writeAttributes, writeAvailability, writeConfidences, writeModelled, writeNames, writeNegative, writeOtherAttributes, writeParameters
-
Methods inherited from class psidev.psi.mi.jami.xml.io.writer.elements.impl.abstracts.AbstractXmlInteractionWriter
collectInferredInteractionsFrom, extractDefaultExperimentFrom, getAttributeWriter, getChecksumWriter, getDefaultExperiment, getExperimentWriter, getInferredInteractionWriter, getInteractionTypeWriter, getObjectIndex, getParticipantWriter, getStreamWriter, getVersion, getXrefWriter, initialiseParticipantWriter, newExperiment, newPublication, newPublication, newXmlCvTerm, setAttributeWriter, setChecksumWriter, setComplexAsInteractor, setExperimentWriter, setInferredInteractionWriter, setInteractionTypeWriter, setParticipantWriter, setXrefWriter, write, writeAttribute, writeComplexAsInteractor, writeInteractionType, writeParticipants, writeXref, writeXrefFromInteractionIdentifiers, writeXrefFromInteractionXrefs
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface psidev.psi.mi.jami.xml.io.writer.elements.PsiXmlElementWriter
write
-
Methods inherited from interface psidev.psi.mi.jami.xml.io.writer.elements.PsiXmlInteractionWriter
extractDefaultExperimentFrom, getDefaultExperiment, setComplexAsInteractor, setDefaultExperiment, writeComplexAsInteractor
-
-
-
-
Constructor Detail
-
AbstractXmlModelledInteractionWriter
public AbstractXmlModelledInteractionWriter(XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for AbstractXmlModelledInteractionWriter.
- Parameters:
writer- aXMLStreamWriterobject.objectIndex- aPsiXmlObjectCacheobject.
-
-
Method Detail
-
getCausalRelationshipWriter
public PsiXmlCausalRelationshipWriter getCausalRelationshipWriter()
Getter for the field
causalRelationshipWriter.- Returns:
- a
PsiXmlCausalRelationshipWriterobject.
-
initialiseCausalRelationshipWriter
protected void initialiseCausalRelationshipWriter()
initialiseCausalRelationshipWriter.
-
setCausalRelationshipWriter
public void setCausalRelationshipWriter(PsiXmlCausalRelationshipWriter causalRelationshipWriter)
Setter for the field
causalRelationshipWriter.- Parameters:
causalRelationshipWriter- aPsiXmlCausalRelationshipWriterobject.
-
getPreAssemblyWriter
public PsiXmlElementWriter<Preassembly> getPreAssemblyWriter()
Getter for the field
preAssemblyWriter.- Returns:
- a
PsiXmlElementWriterobject.
-
setPreAssemblyWriter
public void setPreAssemblyWriter(PsiXmlElementWriter<Preassembly> preAssemblyWriter)
Setter for the field
preAssemblyWriter.- Parameters:
preAssemblyWriter- aPsiXmlElementWriterobject.
-
getAllosteryWriter
public PsiXmlElementWriter<Allostery> getAllosteryWriter()
Getter for the field
allosteryWriter.- Returns:
- a
PsiXmlElementWriterobject.
-
setAllosteryWriter
public void setAllosteryWriter(PsiXmlElementWriter<Allostery> allosteryWriter)
Setter for the field
allosteryWriter.- Parameters:
allosteryWriter- aPsiXmlElementWriterobject.
-
getOrganismWriter
public PsiXmlElementWriter<Organism> getOrganismWriter()
Getter for the field
organismWriter.- Returns:
- a
PsiXmlElementWriterobject.
-
setOrganismWriter
public void setOrganismWriter(PsiXmlElementWriter<Organism> organismWriter)
Setter for the field
organismWriter.- Parameters:
organismWriter- aPsiXmlElementWriterobject.
-
getDefaultExperiments
public List<Experiment> getDefaultExperiments()
The default experiments that will be used to write a valid XML file but are not real experiments attached to the interaction. It cannot be null.- Specified by:
getDefaultExperimentsin interfacePsiXmlExtendedInteractionWriter<I extends ModelledInteraction>- Overrides:
getDefaultExperimentsin classAbstractXmlModelledInteractionWriter<I extends ModelledInteraction>- Returns:
- a
Listobject.
-
setDefaultExperiments
public void setDefaultExperiments(List<Experiment> exp)
Sets the default experiments that will be used to write a valid XML file even if the interaction does not have any valid experiment- Specified by:
setDefaultExperimentsin interfacePsiXmlExtendedInteractionWriter<I extends ModelledInteraction>- Overrides:
setDefaultExperimentsin classAbstractXmlModelledInteractionWriter<I extends ModelledInteraction>- Parameters:
exp- aListobject.
-
getBindingFeaturesWriter
public PsiXmlElementWriter<Set<Feature>> getBindingFeaturesWriter()
Getter for the field
bindingFeaturesWriter.- Returns:
- a
PsiXmlElementWriterobject.
-
setBindingFeaturesWriter
public void setBindingFeaturesWriter(PsiXmlElementWriter<Set<Feature>> bindingFeaturesWriter)
Setter for the field
bindingFeaturesWriter.- Parameters:
bindingFeaturesWriter- aPsiXmlElementWriterobject.
-
extractDefaultExperimentsFrom
public List<Experiment> extractDefaultExperimentsFrom(I interaction)
extractDefaultExperimentsFrom.
- Specified by:
extractDefaultExperimentsFromin interfacePsiXmlExtendedInteractionWriter<I extends ModelledInteraction>- Parameters:
interaction- a T object.- Returns:
- the default experiments for this interaction
-
writeCooperativeEffect
protected void writeCooperativeEffect(I object, boolean startAttributeList) throws XMLStreamException
writeCooperativeEffect.
- Specified by:
writeCooperativeEffectin classAbstractXmlModelledInteractionWriter<I extends ModelledInteraction>- Parameters:
object- a I object.startAttributeList- a boolean.- Throws:
XMLStreamException- if any.
-
writeInferredInteractions
protected void writeInferredInteractions(I object) throws XMLStreamException
writeInferredInteractions.
- Specified by:
writeInferredInteractionsin classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>- Parameters:
object- a T object.- Throws:
XMLStreamException- if any.
-
initialiseExperimentWriter
protected void initialiseExperimentWriter()
initialiseExperimentWriter.
- Overrides:
initialiseExperimentWriterin classAbstractXmlModelledInteractionWriter<I extends ModelledInteraction>
-
initialiseConfidenceWriter
protected void initialiseConfidenceWriter()
initialiseConfidenceWriter.
- Specified by:
initialiseConfidenceWriterin classAbstractXmlModelledInteractionWriter<I extends ModelledInteraction>
-
initialiseParameterWriter
protected void initialiseParameterWriter()
initialiseParameterWriter.
- Specified by:
initialiseParameterWriterin classAbstractXmlModelledInteractionWriter<I extends ModelledInteraction>
-
writeExperimentRef
protected CvTerm writeExperimentRef() throws XMLStreamException
writeExperimentRef.
- Overrides:
writeExperimentRefin classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>- Returns:
- a
CvTermobject. - Throws:
XMLStreamException- if any.
-
writeExperimentDescription
protected CvTerm writeExperimentDescription() throws XMLStreamException
writeExperimentDescription.
- Overrides:
writeExperimentDescriptionin classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>- Returns:
- a
CvTermobject. - Throws:
XMLStreamException- if any.
-
writeExperiments
protected CvTerm writeExperiments(I object) throws XMLStreamException
writeExperiments.
- Overrides:
writeExperimentsin classAbstractXmlModelledInteractionWriter<I extends ModelledInteraction>- Parameters:
object- a T object.- Returns:
- a
CvTermobject. - Throws:
XMLStreamException- if any.
-
writeIntraMolecular
protected void writeIntraMolecular(I object) throws XMLStreamException
writeIntraMolecular.
- Overrides:
writeIntraMolecularin classAbstractXmlModelledInteractionWriter<I extends ModelledInteraction>- Parameters:
object- a T object.- Throws:
XMLStreamException- if any.
-
writeOtherProperties
protected void writeOtherProperties(I object) throws XMLStreamException
writeOtherProperties.
- Specified by:
writeOtherPropertiesin classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>- Parameters:
object- a T object.- Throws:
XMLStreamException- if any.
-
writeCausalRelationships
protected void writeCausalRelationships(I object) throws XMLStreamException
writeCausalRelationships.
- Parameters:
object- a I object.- Throws:
XMLStreamException- if any.
-
writeCooperativeEffects
protected void writeCooperativeEffects(I object) throws XMLStreamException
writeCooperativeEffects.
- Parameters:
object- a I object.- Throws:
XMLStreamException- if any.
-
writeEvidenceType
protected void writeEvidenceType(I object)
writeEvidenceType.
- Parameters:
object- a I object.
-
writeInteractorType
protected void writeInteractorType(Complex complex)
writeInteractorType.
- Parameters:
complex- aComplexobject.
-
writeOrganism
protected void writeOrganism(Complex complex)
writeOrganism.
- Parameters:
complex- aComplexobject.
-
writeStartInteraction
protected void writeStartInteraction() throws XMLStreamExceptionwriteStartInteraction.
- Specified by:
writeStartInteractionin classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>- Throws:
XMLStreamException- if any.
-
-