Class XmlExperimentWriter
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.abstracts.AbstractXmlExperimentWriter
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.xml25.XmlExperimentWriter
-
- All Implemented Interfaces:
PsiXmlElementWriter<Experiment>
,PsiXmlExperimentWriter
- Direct Known Subclasses:
XmlNamedExperimentWriter
public class XmlExperimentWriter extends AbstractXmlExperimentWriter
PSI-XML 2.5 experiment writer- Since:
12/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description XmlExperimentWriter(PsiXmlVersion version, XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for XmlExperimentWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initialiseConfidenceWriter()
initialiseConfidenceWriter.protected void
initialiseDetectionMethodWriter()
initialiseDetectionMethodWriter.protected void
initialiseHostOrganismWriter()
initialiseHostOrganismWriter.protected void
initialisePublicationWriter()
initialisePublicationWriter.protected void
initialiseXrefWriter()
initialiseXrefWriter.protected void
writeExperimentXrefs(Experiment object, String imexId)
writeExperimentXrefs.protected void
writeImexId(String nodeName, String imexId)
writeImexId.protected void
writeOtherAttributes(Experiment object, boolean needToWriteAttributeList)
writeOtherAttributes.protected void
writeVariableParameters(Experiment object)
writeVariableParameters.protected void
writeXrefFromExperimentXrefs(Experiment object, String imexId)
writeXrefFromExperimentXrefs.-
Methods inherited from class psidev.psi.mi.jami.xml.io.writer.elements.impl.abstracts.AbstractXmlExperimentWriter
extractDefaultParticipantIdentificationMethod, getAttributeWriter, getConfidenceWriter, getDefaultPublication, getDetectionMethodWriter, getHostOrganismWriter, getObjectIndex, getPublicationWriter, getStreamWriter, getVersion, getXrefWriter, initialiseDefaultPublication, setAttributeWriter, setConfidenceWriter, setDefaultPublication, setDetectionMethodWriter, setHostOrganismWriter, setPublicationWriter, setXrefWriter, write, writeAttributes, writeConfidences, writeExperiment, writeHostOrganism, writeInteractiondetectionMethod, writeNames, writeOtherProperties, writeParticipantIdentificationMethod, writePublicationAndXrefs
-
-
-
-
Constructor Detail
-
XmlExperimentWriter
public XmlExperimentWriter(PsiXmlVersion version, XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for XmlExperimentWriter.
- Parameters:
version
- aPsiXmlVersion
object.writer
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
object.
-
-
Method Detail
-
writeVariableParameters
protected void writeVariableParameters(Experiment object) throws XMLStreamException
writeVariableParameters.
- Specified by:
writeVariableParameters
in classAbstractXmlExperimentWriter
- Parameters:
object
- aExperiment
object.- Throws:
XMLStreamException
- if any.
-
writeOtherAttributes
protected void writeOtherAttributes(Experiment object, boolean needToWriteAttributeList) throws XMLStreamException
writeOtherAttributes.
- Specified by:
writeOtherAttributes
in classAbstractXmlExperimentWriter
- Parameters:
object
- aExperiment
object.needToWriteAttributeList
- a boolean.- Throws:
XMLStreamException
- if any.
-
writeExperimentXrefs
protected void writeExperimentXrefs(Experiment object, String imexId) throws XMLStreamException
writeExperimentXrefs.
- Specified by:
writeExperimentXrefs
in classAbstractXmlExperimentWriter
- Parameters:
object
- aExperiment
object.imexId
- aString
object.- Throws:
XMLStreamException
- if any.
-
writeXrefFromExperimentXrefs
protected void writeXrefFromExperimentXrefs(Experiment object, String imexId) throws XMLStreamException
writeXrefFromExperimentXrefs.
- Overrides:
writeXrefFromExperimentXrefs
in classAbstractXmlExperimentWriter
- Parameters:
object
- aExperiment
object.imexId
- aString
object.- Throws:
XMLStreamException
- if any.
-
writeImexId
protected void writeImexId(String nodeName, String imexId) throws XMLStreamException
writeImexId.
- Parameters:
nodeName
- aString
object.imexId
- aString
object.- Throws:
XMLStreamException
- if any.
-
initialisePublicationWriter
protected void initialisePublicationWriter()
initialisePublicationWriter.
- Specified by:
initialisePublicationWriter
in classAbstractXmlExperimentWriter
-
initialiseXrefWriter
protected void initialiseXrefWriter()
initialiseXrefWriter.
- Specified by:
initialiseXrefWriter
in classAbstractXmlExperimentWriter
-
initialiseHostOrganismWriter
protected void initialiseHostOrganismWriter()
initialiseHostOrganismWriter.
- Specified by:
initialiseHostOrganismWriter
in classAbstractXmlExperimentWriter
-
initialiseConfidenceWriter
protected void initialiseConfidenceWriter()
initialiseConfidenceWriter.
- Specified by:
initialiseConfidenceWriter
in classAbstractXmlExperimentWriter
-
initialiseDetectionMethodWriter
protected void initialiseDetectionMethodWriter()
initialiseDetectionMethodWriter.
- Specified by:
initialiseDetectionMethodWriter
in classAbstractXmlExperimentWriter
-
-