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
.PsiXmlParameterWriter
getParameterWriter()
Getter for the fieldparameterWriter
.protected abstract void
initialiseConfidenceWriter()
initialiseConfidenceWriter.protected void
initialiseDefaultExperiment()
initialiseDefaultExperiment.protected abstract void
initialiseParameterWriter()
initialiseParameterWriter.void
setAliasWriter(PsiXmlElementWriter<Alias> aliasWriter)
Setter for the fieldaliasWriter
.void
setConfidenceWriter(PsiXmlElementWriter<Confidence> confidenceWriter)
Setter for the fieldconfidenceWriter
.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 experimentvoid
setParameterWriter(PsiXmlParameterWriter parameterWriter)
Setter for the fieldparameterWriter
.protected void
writeAttributes(I object)
writeAttributes.protected void
writeAvailability(I object)
writeAvailability.protected void
writeConfidences(I object)
writeConfidences.protected abstract void
writeCooperativeEffect(I object, boolean startAttributeList)
writeCooperativeEffect.protected CvTerm
writeExperiments(I object)
writeExperiments.protected void
writeModelled(I object)
writeModelled.protected void
writeNames(I object)
writeNames.protected void
writeNegative(I object)
writeNegative.protected void
writeOtherAttributes(I object)
writeOtherAttributes.protected void
writeParameters(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
- aPsiXmlVersion
object.writer
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
object.
-
-
Method Detail
-
getConfidenceWriter
public PsiXmlElementWriter<Confidence> getConfidenceWriter()
Getter for the field
confidenceWriter
.- Returns:
- a
PsiXmlElementWriter
object.
-
initialiseConfidenceWriter
protected abstract void initialiseConfidenceWriter()
initialiseConfidenceWriter.
-
getAliasWriter
public PsiXmlElementWriter<Alias> getAliasWriter()
Getter for the field
aliasWriter
.- Returns:
- a
PsiXmlElementWriter
object.
-
setAliasWriter
public void setAliasWriter(PsiXmlElementWriter<Alias> aliasWriter)
Setter for the field
aliasWriter
.- Parameters:
aliasWriter
- aPsiXmlElementWriter
object.
-
setConfidenceWriter
public void setConfidenceWriter(PsiXmlElementWriter<Confidence> confidenceWriter)
Setter for the field
confidenceWriter
.- Parameters:
confidenceWriter
- aPsiXmlElementWriter
object.
-
getParameterWriter
public PsiXmlParameterWriter getParameterWriter()
Getter for the field
parameterWriter
.- Returns:
- a
PsiXmlParameterWriter
object.
-
initialiseParameterWriter
protected abstract void initialiseParameterWriter()
initialiseParameterWriter.
-
setParameterWriter
public void setParameterWriter(PsiXmlParameterWriter parameterWriter)
Setter for the field
parameterWriter
.- Parameters:
parameterWriter
- aPsiXmlParameterWriter
object.
-
initialiseDefaultExperiment
protected void initialiseDefaultExperiment()
initialiseDefaultExperiment.
- Overrides:
initialiseDefaultExperiment
in 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:
setDefaultExperiment
in interfacePsiXmlInteractionWriter<I extends ModelledInteraction>
- Overrides:
setDefaultExperiment
in classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>
- Parameters:
defaultExperiment
- : default experiment
-
writeAvailability
protected void writeAvailability(I object)
writeAvailability.
- Specified by:
writeAvailability
in classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>
- Parameters:
object
- a T object.
-
writeOtherAttributes
protected void writeOtherAttributes(I object)
writeOtherAttributes.
- Specified by:
writeOtherAttributes
in classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>
- Parameters:
object
- a T object.
-
writeModelled
protected void writeModelled(I object)
writeModelled.
- Specified by:
writeModelled
in classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>
- Parameters:
object
- a T object.
-
writeParameters
protected void writeParameters(I object) throws XMLStreamException
writeParameters.
- Specified by:
writeParameters
in 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:
writeConfidences
in classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>
- Parameters:
object
- a T object.- Throws:
XMLStreamException
- if any.
-
writeAttributes
protected void writeAttributes(I object) throws XMLStreamException
writeAttributes.
- Overrides:
writeAttributes
in 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:
writeNegative
in classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>
- Parameters:
object
- a T object.
-
writeExperiments
protected CvTerm writeExperiments(I object) throws XMLStreamException
writeExperiments.
- Specified by:
writeExperiments
in classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>
- Parameters:
object
- a T object.- Returns:
- a
CvTerm
object. - Throws:
XMLStreamException
- if any.
-
writeNames
protected void writeNames(I object) throws XMLStreamException
writeNames.
- Overrides:
writeNames
in classAbstractXmlInteractionWriter<I extends ModelledInteraction,ModelledParticipant>
- Parameters:
object
- a T object.- Throws:
XMLStreamException
- if any.
-
-