Class AbstractXmlParticipantCandidateWriter<P extends ParticipantCandidate,F extends Feature>
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.abstracts.xml30.AbstractXmlParticipantCandidateWriter<P,F>
-
- All Implemented Interfaces:
PsiXmlElementWriter<P>
- Direct Known Subclasses:
XmlExperimentalParticipantCandidateWriter
,XmlExperimentalParticipantCandidateWriter
,XmlExperimentalParticipantCandidateWriter
,XmlExperimentalParticipantCandidateWriter
,XmlModelledParticipantCandidateWriter
,XmlModelledParticipantCandidateWriter
,XmlModelledParticipantCandidateWriter
,XmlModelledParticipantCandidateWriter
public abstract class AbstractXmlParticipantCandidateWriter<P extends ParticipantCandidate,F extends Feature> extends Object implements PsiXmlElementWriter<P>
Abstract Xml writer for participant candidate- Since:
12/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlParticipantCandidateWriter(XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for AbstractXmlParticipantCandidateWriter.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description PsiXmlElementWriter<F>
getFeatureWriter()
Getter for the fieldfeatureWriter
.PsiXmlElementWriter<Interactor>
getInteractorWriter()
Getter for the fieldinteractorWriter
.protected PsiXmlObjectCache
getObjectIndex()
Getter for the fieldobjectIndex
.protected XMLStreamWriter
getStreamWriter()
Getter for the fieldstreamWriter
.protected abstract void
initialiseFeatureWriter()
initialiseFeatureWriter.protected abstract void
initialiseInteractorWriter()
initialiseInteractorWriter.void
setFeatureWriter(PsiXmlElementWriter<F> featureWriter)
Setter for the fieldfeatureWriter
.void
setInteractorWriter(PsiXmlElementWriter<Interactor> interactorWriter)
Setter for the fieldinteractorWriter
.void
write(P object)
write.protected void
writeFeatures(P object)
writeFeatures.protected void
writeInteractor(P object)
writeInteractor.protected abstract void
writeMolecule(Interactor interactor)
writeMolecule.protected void
writeMoleculeDescription(Interactor interactor)
writeMoleculeDescription.protected void
writeMoleculeRef(Interactor interactor)
writeMoleculeRef.
-
-
-
Constructor Detail
-
AbstractXmlParticipantCandidateWriter
public AbstractXmlParticipantCandidateWriter(XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for AbstractXmlParticipantCandidateWriter.
- Parameters:
writer
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
object.
-
-
Method Detail
-
getInteractorWriter
public PsiXmlElementWriter<Interactor> getInteractorWriter()
Getter for the field
interactorWriter
.- Returns:
- a
PsiXmlElementWriter
object.
-
initialiseInteractorWriter
protected abstract void initialiseInteractorWriter()
initialiseInteractorWriter.
-
setInteractorWriter
public void setInteractorWriter(PsiXmlElementWriter<Interactor> interactorWriter)
Setter for the field
interactorWriter
.- Parameters:
interactorWriter
- aPsiXmlElementWriter
object.
-
getFeatureWriter
public PsiXmlElementWriter<F> getFeatureWriter()
Getter for the field
featureWriter
.- Returns:
- a
PsiXmlElementWriter
object.
-
initialiseFeatureWriter
protected abstract void initialiseFeatureWriter()
initialiseFeatureWriter.
-
setFeatureWriter
public void setFeatureWriter(PsiXmlElementWriter<F> featureWriter)
Setter for the field
featureWriter
.- Parameters:
featureWriter
- aPsiXmlElementWriter
object.
-
write
public void write(P object) throws MIIOException
write.
- Specified by:
write
in interfacePsiXmlElementWriter<P extends ParticipantCandidate>
- Parameters:
object
- a T object.- Throws:
MIIOException
- if any.
-
writeFeatures
protected void writeFeatures(P object) throws XMLStreamException
writeFeatures.
- Parameters:
object
- a P object.- Throws:
XMLStreamException
- if any.
-
writeInteractor
protected void writeInteractor(P object) throws XMLStreamException
writeInteractor.
- Parameters:
object
- a P object.- Throws:
XMLStreamException
- if any.
-
writeMolecule
protected abstract void writeMolecule(Interactor interactor) throws XMLStreamException
writeMolecule.
- Parameters:
interactor
- aInteractor
object.- Throws:
XMLStreamException
- if any.
-
writeMoleculeRef
protected void writeMoleculeRef(Interactor interactor) throws XMLStreamException
writeMoleculeRef.
- Parameters:
interactor
- aInteractor
object.- Throws:
XMLStreamException
- if any.
-
writeMoleculeDescription
protected void writeMoleculeDescription(Interactor interactor) throws XMLStreamException
writeMoleculeDescription.
- Parameters:
interactor
- aInteractor
object.- Throws:
XMLStreamException
- if any.
-
getStreamWriter
protected XMLStreamWriter getStreamWriter()
Getter for the field
streamWriter
.- Returns:
- a
XMLStreamWriter
object.
-
getObjectIndex
protected PsiXmlObjectCache getObjectIndex()
Getter for the field
objectIndex
.- Returns:
- a
PsiXmlObjectCache
object.
-
-