Class AbstractXmlOrganismWriter
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.abstracts.AbstractXmlOrganismWriter
-
- All Implemented Interfaces:
PsiXmlElementWriter<Organism>
- Direct Known Subclasses:
XmlHostOrganismWriter
,XmlOrganismWriter
public abstract class AbstractXmlOrganismWriter extends Object implements PsiXmlElementWriter<Organism>
Abstract class forPSI-XML writer for organism- Since:
12/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlOrganismWriter(XMLStreamWriter writer)
Constructor for AbstractXmlOrganismWriter.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description PsiXmlElementWriter<Alias>
getAliasWriter()
Getter for the fieldaliasWriter
.PsiXmlVariableNameWriter<CvTerm>
getCvWriter()
Getter for the fieldcvWriter
.protected XMLStreamWriter
getStreamWriter()
Getter for the fieldstreamWriter
.protected abstract void
initialiseCvWriter()
initialiseCvWriter.void
setAliasWriter(PsiXmlElementWriter<Alias> aliasWriter)
Setter for the fieldaliasWriter
.void
setCvWriter(PsiXmlVariableNameWriter<CvTerm> cvWriter)
Setter for the fieldcvWriter
.void
write(Organism object)
write.protected abstract void
writeOtherProperties(Organism object)
writeOtherProperties.protected abstract void
writeStartOrganism()
writeStartOrganism.
-
-
-
Constructor Detail
-
AbstractXmlOrganismWriter
public AbstractXmlOrganismWriter(XMLStreamWriter writer)
Constructor for AbstractXmlOrganismWriter.
- Parameters:
writer
- aXMLStreamWriter
object.
-
-
Method Detail
-
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.
-
getCvWriter
public PsiXmlVariableNameWriter<CvTerm> getCvWriter()
Getter for the field
cvWriter
.- Returns:
- a
PsiXmlVariableNameWriter
object.
-
initialiseCvWriter
protected abstract void initialiseCvWriter()
initialiseCvWriter.
-
setCvWriter
public void setCvWriter(PsiXmlVariableNameWriter<CvTerm> cvWriter)
Setter for the field
cvWriter
.- Parameters:
cvWriter
- aPsiXmlVariableNameWriter
object.
-
write
public void write(Organism object) throws MIIOException
write.
- Specified by:
write
in interfacePsiXmlElementWriter<Organism>
- Parameters:
object
- a T object.- Throws:
MIIOException
- if any.
-
writeOtherProperties
protected abstract void writeOtherProperties(Organism object) throws XMLStreamException
writeOtherProperties.
- Parameters:
object
- aOrganism
object.- Throws:
XMLStreamException
- if any.
-
writeStartOrganism
protected abstract void writeStartOrganism() throws XMLStreamException
writeStartOrganism.
- Throws:
XMLStreamException
- if any.
-
getStreamWriter
protected XMLStreamWriter getStreamWriter()
Getter for the field
streamWriter
.- Returns:
- a
XMLStreamWriter
object.
-
-