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 PsiXmlObjectCachegetObjectIndex()Getter for the fieldobjectIndex.protected XMLStreamWritergetStreamWriter()Getter for the fieldstreamWriter.protected abstract voidinitialiseFeatureWriter()initialiseFeatureWriter.protected abstract voidinitialiseInteractorWriter()initialiseInteractorWriter.voidsetFeatureWriter(PsiXmlElementWriter<F> featureWriter)Setter for the fieldfeatureWriter.voidsetInteractorWriter(PsiXmlElementWriter<Interactor> interactorWriter)Setter for the fieldinteractorWriter.voidwrite(P object)write.protected voidwriteFeatures(P object)writeFeatures.protected voidwriteInteractor(P object)writeInteractor.protected abstract voidwriteMolecule(Interactor interactor)writeMolecule.protected voidwriteMoleculeDescription(Interactor interactor)writeMoleculeDescription.protected voidwriteMoleculeRef(Interactor interactor)writeMoleculeRef.
-
-
-
Constructor Detail
-
AbstractXmlParticipantCandidateWriter
public AbstractXmlParticipantCandidateWriter(XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for AbstractXmlParticipantCandidateWriter.
- Parameters:
writer- aXMLStreamWriterobject.objectIndex- aPsiXmlObjectCacheobject.
-
-
Method Detail
-
getInteractorWriter
public PsiXmlElementWriter<Interactor> getInteractorWriter()
Getter for the field
interactorWriter.- Returns:
- a
PsiXmlElementWriterobject.
-
initialiseInteractorWriter
protected abstract void initialiseInteractorWriter()
initialiseInteractorWriter.
-
setInteractorWriter
public void setInteractorWriter(PsiXmlElementWriter<Interactor> interactorWriter)
Setter for the field
interactorWriter.- Parameters:
interactorWriter- aPsiXmlElementWriterobject.
-
getFeatureWriter
public PsiXmlElementWriter<F> getFeatureWriter()
Getter for the field
featureWriter.- Returns:
- a
PsiXmlElementWriterobject.
-
initialiseFeatureWriter
protected abstract void initialiseFeatureWriter()
initialiseFeatureWriter.
-
setFeatureWriter
public void setFeatureWriter(PsiXmlElementWriter<F> featureWriter)
Setter for the field
featureWriter.- Parameters:
featureWriter- aPsiXmlElementWriterobject.
-
write
public void write(P object) throws MIIOException
write.
- Specified by:
writein 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- aInteractorobject.- Throws:
XMLStreamException- if any.
-
writeMoleculeRef
protected void writeMoleculeRef(Interactor interactor) throws XMLStreamException
writeMoleculeRef.
- Parameters:
interactor- aInteractorobject.- Throws:
XMLStreamException- if any.
-
writeMoleculeDescription
protected void writeMoleculeDescription(Interactor interactor) throws XMLStreamException
writeMoleculeDescription.
- Parameters:
interactor- aInteractorobject.- Throws:
XMLStreamException- if any.
-
getStreamWriter
protected XMLStreamWriter getStreamWriter()
Getter for the field
streamWriter.- Returns:
- a
XMLStreamWriterobject.
-
getObjectIndex
protected PsiXmlObjectCache getObjectIndex()
Getter for the field
objectIndex.- Returns:
- a
PsiXmlObjectCacheobject.
-
-