Class AbstractXmlPositionWriter
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.abstracts.AbstractXmlPositionWriter
-
- All Implemented Interfaces:
PsiXmlElementWriter<Position>
- Direct Known Subclasses:
XmlBeginPositionWriter
,XmlBeginPositionWriter
,XmlEndPositionWriter
,XmlEndPositionWriter
public abstract class AbstractXmlPositionWriter extends Object implements PsiXmlElementWriter<Position>
Abstract Xml writer for a range position- Since:
13/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlPositionWriter(XMLStreamWriter writer)
Constructor for AbstractXmlPositionWriter.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description PsiXmlVariableNameWriter<CvTerm>
getStatusWriter()
Getter for the fieldstatusWriter
.protected XMLStreamWriter
getStreamWriter()
Getter for the fieldstreamWriter
.protected abstract void
initialiseStatusWriter()
initialiseStatusWriter.void
setStatusWriter(PsiXmlVariableNameWriter<CvTerm> statusWriter)
Setter for the fieldstatusWriter
.void
write(Position object)
write.protected abstract void
writeStartIntervalNode()
writeStartIntervalNode.protected abstract void
writeStartPositionNode()
writeStartPositionNode.protected abstract void
writeStatus(Position object)
writeStatus.
-
-
-
Constructor Detail
-
AbstractXmlPositionWriter
public AbstractXmlPositionWriter(XMLStreamWriter writer)
Constructor for AbstractXmlPositionWriter.
- Parameters:
writer
- aXMLStreamWriter
object.
-
-
Method Detail
-
write
public void write(Position object) throws MIIOException
write.
- Specified by:
write
in interfacePsiXmlElementWriter<Position>
- Parameters:
object
- a T object.- Throws:
MIIOException
- if any.
-
writeStatus
protected abstract void writeStatus(Position object)
writeStatus.
- Parameters:
object
- aPosition
object.
-
writeStartPositionNode
protected abstract void writeStartPositionNode() throws XMLStreamException
writeStartPositionNode.
- Throws:
XMLStreamException
- if any.
-
writeStartIntervalNode
protected abstract void writeStartIntervalNode() throws XMLStreamException
writeStartIntervalNode.
- Throws:
XMLStreamException
- if any.
-
getStreamWriter
protected XMLStreamWriter getStreamWriter()
Getter for the field
streamWriter
.- Returns:
- a
XMLStreamWriter
object.
-
getStatusWriter
public PsiXmlVariableNameWriter<CvTerm> getStatusWriter()
Getter for the field
statusWriter
.- Returns:
- a
PsiXmlVariableNameWriter
object.
-
initialiseStatusWriter
protected abstract void initialiseStatusWriter()
initialiseStatusWriter.
-
setStatusWriter
public void setStatusWriter(PsiXmlVariableNameWriter<CvTerm> statusWriter)
Setter for the field
statusWriter
.- Parameters:
statusWriter
- aPsiXmlVariableNameWriter
object.
-
-