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>
-
- All Implemented Interfaces:
PsiXmlElementWriter<I>,PsiXmlInteractionWriter<I>
- Direct Known Subclasses:
AbstractXmlModelledInteractionWriter,AbstractXmlModelledInteractionWriter,AbstractXmlModelledInteractionWriter
public abstract class AbstractXmlModelledInteractionWriter<I extends ModelledInteraction> extends AbstractXmlInteractionWriter<I,ModelledParticipant>
Abstract class for XML writers of modelled interaction- Since:
18/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlModelledInteractionWriter(PsiXmlVersion version, XMLStreamWriter writer, PsiXmlObjectCache objectIndex)Constructor for AbstractXmlModelledInteractionWriter.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description PsiXmlElementWriter<Alias>getAliasWriter()Getter for the fieldaliasWriter.PsiXmlElementWriter<Confidence>getConfidenceWriter()Getter for the fieldconfidenceWriter.PsiXmlParameterWritergetParameterWriter()Getter for the fieldparameterWriter.protected abstract voidinitialiseConfidenceWriter()initialiseConfidenceWriter.protected voidinitialiseDefaultExperiment()initialiseDefaultExperiment.protected abstract voidinitialiseParameterWriter()initialiseParameterWriter.voidsetAliasWriter(PsiXmlElementWriter<Alias> aliasWriter)Setter for the fieldaliasWriter.voidsetConfidenceWriter(PsiXmlElementWriter<Confidence> confidenceWriter)Setter for the fieldconfidenceWriter.voidsetDefaultExperiment(Experiment defaultExperiment)Sets the default experiment that will be used to write a valid XML file even if the interaction does not have any valid experimentvoidsetParameterWriter(PsiXmlParameterWriter parameterWriter)Setter for the fieldparameterWriter.protected voidwriteAttributes(I object)writeAttributes.protected voidwriteAvailability(I object)writeAvailability.protected voidwriteConfidences(I object)writeConfidences.protected abstract voidwriteCooperativeEffect(I object, boolean startAttributeList)writeCooperativeEffect.protected CvTermwriteExperiments(I object)writeExperiments.protected voidwriteModelled(I object)writeModelled.protected voidwriteNames(I object)writeNames.protected voidwriteNegative(I object)writeNegative.protected voidwriteOtherAttributes(I object)writeOtherAttributes.protected voidwriteParameters(I object)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, initialiseExperimentWriter, initialiseInferredInteractionWriter, initialiseInteractionTypeWriter, initialiseParticipantWriter, initialiseXrefWriter, newExperiment, newPublication, newPublication, newXmlCvTerm, setAttributeWriter, setChecksumWriter, setComplexAsInteractor, setExperimentWriter, setInferredInteractionWriter, setInteractionTypeWriter, setParticipantWriter, setXrefWriter, write, writeAttribute, writeComplexAsInteractor, writeExperimentDescription, writeExperimentRef, writeInferredInteractions, writeInteractionType, writeIntraMolecular, writeOtherProperties, writeParticipants, writeStartInteraction, writeXref, writeXrefFromInteractionIdentifiers, writeXrefFromInteractionXrefs
-
-
-
-
Constructor Detail
-
AbstractXmlModelledInteractionWriter
public AbstractXmlModelledInteractionWriter(PsiXmlVersion version, XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for AbstractXmlModelledInteractionWriter.
- Parameters:
version- aPsiXmlVersionobject.writer- aXMLStreamWriterobject.objectIndex- aPsiXmlObjectCacheobject.
-
-
Method Detail
-
getConfidenceWriter
public PsiXmlElementWriter<Confidence> getConfidenceWriter()
Getter for the field
confidenceWriter.- Returns:
- a
PsiXmlElementWriterobject.
-
initialiseConfidenceWriter
protected abstract void initialiseConfidenceWriter()
initialiseConfidenceWriter.
-
getAliasWriter
public PsiXmlElementWriter<Alias> getAliasWriter()
Getter for the field
aliasWriter.- Returns:
- a
PsiXmlElementWriterobject.
-
setAliasWriter
public void setAliasWriter(PsiXmlElementWriter<Alias> aliasWriter)
Setter for the field
aliasWriter.- Parameters:
aliasWriter- aPsiXmlElementWriterobject.
-
setConfidenceWriter
public void setConfidenceWriter(PsiXmlElementWriter<Confidence> confidenceWriter)
Setter for the field
confidenceWriter.- Parameters:
confidenceWriter- aPsiXmlElementWriterobject.
-
getParameterWriter
public PsiXmlParameterWriter getParameterWriter()
Getter for the field
parameterWriter.- Returns:
- a
PsiXmlParameterWriterobject.
-
initialiseParameterWriter
protected abstract void initialiseParameterWriter()
initialiseParameterWriter.
-
setParameterWriter
public void setParameterWriter(PsiXmlParameterWriter parameterWriter)
Setter for the field
parameterWriter.- Parameters:
parameterWriter- aPsiXmlParameterWriterobject.
-
initialiseDefaultExperiment
protected void initialiseDefaultExperiment()
initialiseDefaultExperiment.
- Overrides:
initialiseDefaultExperimentin classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>
-
setDefaultExperiment
public void setDefaultExperiment(Experiment defaultExperiment)
Sets the default experiment that will be used to write a valid XML file even if the interaction does not have any valid experiment- Specified by:
setDefaultExperimentin interfacePsiXmlInteractionWriter<I extends ModelledInteraction>- Overrides:
setDefaultExperimentin classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>- Parameters:
defaultExperiment- : default experiment
-
writeAvailability
protected void writeAvailability(I object)
writeAvailability.
- Specified by:
writeAvailabilityin classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>- Parameters:
object- a T object.
-
writeOtherAttributes
protected void writeOtherAttributes(I object)
writeOtherAttributes.
- Specified by:
writeOtherAttributesin classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>- Parameters:
object- a T object.
-
writeModelled
protected void writeModelled(I object)
writeModelled.
- Specified by:
writeModelledin classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>- Parameters:
object- a T object.
-
writeParameters
protected void writeParameters(I object) throws XMLStreamException
writeParameters.
- Specified by:
writeParametersin classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>- Parameters:
object- a T object.- Throws:
XMLStreamException- if any.
-
writeConfidences
protected void writeConfidences(I object) throws XMLStreamException
writeConfidences.
- Specified by:
writeConfidencesin classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>- Parameters:
object- a T object.- Throws:
XMLStreamException- if any.
-
writeAttributes
protected void writeAttributes(I object) throws XMLStreamException
writeAttributes.
- Overrides:
writeAttributesin classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>- Parameters:
object- a T object.- Throws:
XMLStreamException- if any.
-
writeCooperativeEffect
protected abstract void writeCooperativeEffect(I object, boolean startAttributeList) throws XMLStreamException
writeCooperativeEffect.
- Parameters:
object- a I object.startAttributeList- a boolean.- Throws:
XMLStreamException- if any.
-
writeNegative
protected void writeNegative(I object)
writeNegative.
- Specified by:
writeNegativein classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>- Parameters:
object- a T object.
-
writeExperiments
protected CvTerm writeExperiments(I object) throws XMLStreamException
writeExperiments.
- Specified by:
writeExperimentsin classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>- Parameters:
object- a T object.- Returns:
- a
CvTermobject. - Throws:
XMLStreamException- if any.
-
writeNames
protected void writeNames(I object) throws XMLStreamException
writeNames.
- Overrides:
writeNamesin classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>- Parameters:
object- a T object.- Throws:
XMLStreamException- if any.
-
-