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
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.xml25.XmlNamedExperimentWriter
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.extended.xml25.XmlExperimentWriter
-
- All Implemented Interfaces:
PsiXmlElementWriter<Experiment>
,PsiXmlExperimentWriter
public class XmlExperimentWriter extends XmlNamedExperimentWriter
XML 2.5 writer for expanded experiments having participant identification method, feature detection method and a list of host organisms- Since:
13/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 CvTerm
extractDefaultParticipantIdentificationMethod(Experiment exp)
extractDefaultParticipantIdentificationMethod.protected void
initialiseConfidenceWriter()
initialiseConfidenceWriter.protected void
initialiseDetectionMethodWriter()
initialiseDetectionMethodWriter.protected void
initialiseHostOrganismWriter()
initialiseHostOrganismWriter.protected void
initialisePublicationWriter()
initialisePublicationWriter.protected void
initialiseXrefWriter()
initialiseXrefWriter.protected void
writeHostOrganism(Experiment object)
writeHostOrganism.protected void
writeOtherProperties(Experiment object)
writeOtherProperties.protected CvTerm
writeParticipantIdentificationMethod(Experiment object)
writeParticipantIdentificationMethod.-
Methods inherited from class psidev.psi.mi.jami.xml.io.writer.elements.impl.xml25.XmlNamedExperimentWriter
getAliasWriter, setAliasWriter, writeNames
-
Methods inherited from class psidev.psi.mi.jami.xml.io.writer.elements.impl.xml25.XmlExperimentWriter
writeExperimentXrefs, writeImexId, writeOtherAttributes, writeVariableParameters, writeXrefFromExperimentXrefs
-
Methods inherited from class psidev.psi.mi.jami.xml.io.writer.elements.impl.abstracts.AbstractXmlExperimentWriter
getAttributeWriter, getConfidenceWriter, getDefaultPublication, getDetectionMethodWriter, getHostOrganismWriter, getObjectIndex, getPublicationWriter, getStreamWriter, getVersion, getXrefWriter, initialiseDefaultPublication, setAttributeWriter, setConfidenceWriter, setDefaultPublication, setDetectionMethodWriter, setHostOrganismWriter, setPublicationWriter, setXrefWriter, write, writeAttributes, writeConfidences, writeExperiment, writeInteractiondetectionMethod, 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
-
writeParticipantIdentificationMethod
protected CvTerm writeParticipantIdentificationMethod(Experiment object)
writeParticipantIdentificationMethod.
- Overrides:
writeParticipantIdentificationMethod
in classAbstractXmlExperimentWriter
- Parameters:
object
- aExperiment
object.- Returns:
- a
CvTerm
object.
-
writeOtherProperties
protected void writeOtherProperties(Experiment object) throws XMLStreamException
writeOtherProperties.
- Overrides:
writeOtherProperties
in classAbstractXmlExperimentWriter
- Parameters:
object
- aExperiment
object.- Throws:
XMLStreamException
- if any.
-
extractDefaultParticipantIdentificationMethod
public CvTerm extractDefaultParticipantIdentificationMethod(Experiment exp)
extractDefaultParticipantIdentificationMethod.
- Specified by:
extractDefaultParticipantIdentificationMethod
in interfacePsiXmlExperimentWriter
- Overrides:
extractDefaultParticipantIdentificationMethod
in classAbstractXmlExperimentWriter
- Parameters:
exp
- aExperiment
object.- Returns:
- the default participant identification method associated with this experiment
-
writeHostOrganism
protected void writeHostOrganism(Experiment object) throws XMLStreamException
writeHostOrganism.
- Overrides:
writeHostOrganism
in classAbstractXmlExperimentWriter
- Parameters:
object
- aExperiment
object.- Throws:
XMLStreamException
- if any.
-
initialisePublicationWriter
protected void initialisePublicationWriter()
initialisePublicationWriter.
- Overrides:
initialisePublicationWriter
in classXmlExperimentWriter
-
initialiseXrefWriter
protected void initialiseXrefWriter()
initialiseXrefWriter.
- Overrides:
initialiseXrefWriter
in classXmlExperimentWriter
-
initialiseHostOrganismWriter
protected void initialiseHostOrganismWriter()
initialiseHostOrganismWriter.
- Overrides:
initialiseHostOrganismWriter
in classXmlExperimentWriter
-
initialiseConfidenceWriter
protected void initialiseConfidenceWriter()
initialiseConfidenceWriter.
- Overrides:
initialiseConfidenceWriter
in classXmlExperimentWriter
-
initialiseDetectionMethodWriter
protected void initialiseDetectionMethodWriter()
initialiseDetectionMethodWriter.
- Overrides:
initialiseDetectionMethodWriter
in classXmlExperimentWriter
-
-