Class AbstractXmlInteractionEvidenceWriter<I extends InteractionEvidence>
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.abstracts.AbstractXmlInteractionWriter<I,ParticipantEvidence>
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.abstracts.AbstractXmlInteractionEvidenceWriter<I>
-
- All Implemented Interfaces:
PsiXmlElementWriter<I>
,PsiXmlInteractionWriter<I>
- Direct Known Subclasses:
AbstractXmlInteractionEvidenceWriter
,AbstractXmlInteractionEvidenceWriter
,AbstractXmlInteractionEvidenceWriter
public abstract class AbstractXmlInteractionEvidenceWriter<I extends InteractionEvidence> extends AbstractXmlInteractionWriter<I,ParticipantEvidence>
Abstract class for interaction evidence writers- Since:
18/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlInteractionEvidenceWriter(PsiXmlVersion version, XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for AbstractXmlInteractionEvidenceWriter.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Experiment
extractDefaultExperimentFrom(I interaction)
extractDefaultExperimentFrom.PsiXmlElementWriter<String>
getAvailabilityWriter()
Getter for the fieldavailabilityWriter
.PsiXmlElementWriter<Confidence>
getConfidenceWriter()
Getter for the fieldconfidenceWriter
.PsiXmlParameterWriter
getParameterWriter()
Getter for the fieldparameterWriter
.protected void
initialiseAvaliabilityWriter()
initialiseAvaliabilityWriter.protected abstract void
initialiseConfidenceWriter()
initialiseConfidenceWriter.protected void
initialiseDefaultExperiment()
initialiseDefaultExperiment.protected abstract void
initialiseParameterWriter()
initialiseParameterWriter.void
setAvailabilityWriter(PsiXmlElementWriter<String> availabilityWriter)
Setter for the fieldavailabilityWriter
.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
writeAvailabilityDescription(String availability)
writeAvailabilityDescription.protected void
writeAvailabilityRef(String availability)
writeAvailabilityRef.protected void
writeConfidences(I object)
writeConfidences.protected CvTerm
writeExperiments(I object)
writeExperiments.protected void
writeInferredInteractions(I object)
writeInferredInteractions.protected void
writeModelled(I object)
writeModelled.protected void
writeNegative(I object)
writeNegative.protected void
writeOtherAttributes(I object)
writeOtherAttributes.protected void
writeParameters(I object)
writeParameters.protected void
writeStartInteraction()
writeStartInteraction.-
Methods inherited from class psidev.psi.mi.jami.xml.io.writer.elements.impl.abstracts.AbstractXmlInteractionWriter
collectInferredInteractionsFrom, 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, writeAttributes, writeAvailability, writeComplexAsInteractor, writeExperimentDescription, writeExperimentRef, writeInteractionType, writeIntraMolecular, writeNames, writeOtherProperties, writeParticipants, writeXref, writeXrefFromInteractionIdentifiers, writeXrefFromInteractionXrefs
-
-
-
-
Constructor Detail
-
AbstractXmlInteractionEvidenceWriter
public AbstractXmlInteractionEvidenceWriter(PsiXmlVersion version, XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for AbstractXmlInteractionEvidenceWriter.
- Parameters:
version
- aPsiXmlVersion
object.writer
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
object.
-
-
Method Detail
-
getAvailabilityWriter
public PsiXmlElementWriter<String> getAvailabilityWriter()
Getter for the field
availabilityWriter
.- Returns:
- a
PsiXmlElementWriter
object.
-
initialiseAvaliabilityWriter
protected void initialiseAvaliabilityWriter()
initialiseAvaliabilityWriter.
-
setAvailabilityWriter
public void setAvailabilityWriter(PsiXmlElementWriter<String> availabilityWriter)
Setter for the field
availabilityWriter
.- Parameters:
availabilityWriter
- aPsiXmlElementWriter
object.
-
getConfidenceWriter
public PsiXmlElementWriter<Confidence> getConfidenceWriter()
Getter for the field
confidenceWriter
.- Returns:
- a
PsiXmlElementWriter
object.
-
initialiseConfidenceWriter
protected abstract void initialiseConfidenceWriter()
initialiseConfidenceWriter.
-
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 InteractionEvidence,ParticipantEvidence>
-
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 InteractionEvidence>
- Overrides:
setDefaultExperiment
in classAbstractXmlInteractionWriter<I extends InteractionEvidence,ParticipantEvidence>
- Parameters:
defaultExperiment
- : default experiment
-
extractDefaultExperimentFrom
public Experiment extractDefaultExperimentFrom(I interaction)
extractDefaultExperimentFrom.
- Specified by:
extractDefaultExperimentFrom
in interfacePsiXmlInteractionWriter<I extends InteractionEvidence>
- Overrides:
extractDefaultExperimentFrom
in classAbstractXmlInteractionWriter<I extends InteractionEvidence,ParticipantEvidence>
- Parameters:
interaction
- a T object.- Returns:
- the default experiment for this interaction
-
writeExperiments
protected CvTerm writeExperiments(I object) throws XMLStreamException
writeExperiments.
- Specified by:
writeExperiments
in classAbstractXmlInteractionWriter<I extends InteractionEvidence,ParticipantEvidence>
- Parameters:
object
- a T object.- Returns:
- a
CvTerm
object. - Throws:
XMLStreamException
- if any.
-
writeOtherAttributes
protected void writeOtherAttributes(I object) throws XMLStreamException
writeOtherAttributes.
- Specified by:
writeOtherAttributes
in classAbstractXmlInteractionWriter<I extends InteractionEvidence,ParticipantEvidence>
- Parameters:
object
- a T object.- Throws:
XMLStreamException
- if any.
-
writeModelled
protected void writeModelled(I object) throws XMLStreamException
writeModelled.
- Specified by:
writeModelled
in classAbstractXmlInteractionWriter<I extends InteractionEvidence,ParticipantEvidence>
- Parameters:
object
- a T object.- Throws:
XMLStreamException
- if any.
-
writeParameters
protected void writeParameters(I object) throws XMLStreamException
writeParameters.
- Specified by:
writeParameters
in classAbstractXmlInteractionWriter<I extends InteractionEvidence,ParticipantEvidence>
- 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 InteractionEvidence,ParticipantEvidence>
- Parameters:
object
- a T object.- Throws:
XMLStreamException
- if any.
-
writeNegative
protected void writeNegative(I object) throws XMLStreamException
writeNegative.
- Specified by:
writeNegative
in classAbstractXmlInteractionWriter<I extends InteractionEvidence,ParticipantEvidence>
- Parameters:
object
- a T object.- Throws:
XMLStreamException
- if any.
-
writeAvailabilityRef
protected void writeAvailabilityRef(String availability) throws XMLStreamException
writeAvailabilityRef.
- Parameters:
availability
- aString
object.- Throws:
XMLStreamException
- if any.
-
writeAvailabilityDescription
protected void writeAvailabilityDescription(String availability) throws XMLStreamException
writeAvailabilityDescription.
- Parameters:
availability
- aString
object.- Throws:
XMLStreamException
- if any.
-
writeInferredInteractions
protected void writeInferredInteractions(I object) throws XMLStreamException
writeInferredInteractions.
- Specified by:
writeInferredInteractions
in classAbstractXmlInteractionWriter<I extends InteractionEvidence,ParticipantEvidence>
- Parameters:
object
- a I object.- Throws:
XMLStreamException
- if any.
-
writeStartInteraction
protected void writeStartInteraction() throws XMLStreamException
writeStartInteraction.
- Specified by:
writeStartInteraction
in classAbstractXmlInteractionWriter<I extends InteractionEvidence,ParticipantEvidence>
- Throws:
XMLStreamException
- if any.
-
-