Class AbstractXmlRangeWriter
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.abstracts.AbstractXmlRangeWriter
-
- All Implemented Interfaces:
PsiXmlElementWriter<Range>
- Direct Known Subclasses:
XmlRangeWriter
,XmlRangeWriter
,XmlRangeWriter
public abstract class AbstractXmlRangeWriter extends Object implements PsiXmlElementWriter<Range>
Abstract Xml writer for a feature range- Since:
13/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlRangeWriter(XMLStreamWriter writer)
Constructor for AbstractXmlRangeWriter.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description PsiXmlElementWriter<Position>
getEndPositionWriter()
Getter for the fieldendPositionWriter
.PsiXmlElementWriter<Position>
getStartPositionWriter()
Getter for the fieldstartPositionWriter
.protected XMLStreamWriter
getStreamWriter()
Getter for the fieldstreamWriter
.protected abstract void
initialiseEndPositionWriter()
initialiseEndPositionWriter.protected abstract void
initialiseStartPositionWriter()
initialiseStartPositionWriter.void
setEndPositionWriter(PsiXmlElementWriter<Position> endPositionWriter)
Setter for the fieldendPositionWriter
.void
setStartPositionWriter(PsiXmlElementWriter<Position> startPositionWriter)
Setter for the fieldstartPositionWriter
.void
write(Range object)
write.protected abstract void
writeOtherProperties(Range object)
writeOtherProperties.
-
-
-
Constructor Detail
-
AbstractXmlRangeWriter
public AbstractXmlRangeWriter(XMLStreamWriter writer)
Constructor for AbstractXmlRangeWriter.
- Parameters:
writer
- aXMLStreamWriter
object.
-
-
Method Detail
-
getStartPositionWriter
public PsiXmlElementWriter<Position> getStartPositionWriter()
Getter for the field
startPositionWriter
.- Returns:
- a
PsiXmlElementWriter
object.
-
initialiseStartPositionWriter
protected abstract void initialiseStartPositionWriter()
initialiseStartPositionWriter.
-
setStartPositionWriter
public void setStartPositionWriter(PsiXmlElementWriter<Position> startPositionWriter)
Setter for the field
startPositionWriter
.- Parameters:
startPositionWriter
- aPsiXmlElementWriter
object.
-
getEndPositionWriter
public PsiXmlElementWriter<Position> getEndPositionWriter()
Getter for the field
endPositionWriter
.- Returns:
- a
PsiXmlElementWriter
object.
-
initialiseEndPositionWriter
protected abstract void initialiseEndPositionWriter()
initialiseEndPositionWriter.
-
setEndPositionWriter
public void setEndPositionWriter(PsiXmlElementWriter<Position> endPositionWriter)
Setter for the field
endPositionWriter
.- Parameters:
endPositionWriter
- aPsiXmlElementWriter
object.
-
write
public void write(Range object) throws MIIOException
write.
- Specified by:
write
in interfacePsiXmlElementWriter<Range>
- Parameters:
object
- a T object.- Throws:
MIIOException
- if any.
-
writeOtherProperties
protected abstract void writeOtherProperties(Range object) throws XMLStreamException
writeOtherProperties.
- Parameters:
object
- aRange
object.- Throws:
XMLStreamException
- if any.
-
getStreamWriter
protected XMLStreamWriter getStreamWriter()
Getter for the field
streamWriter
.- Returns:
- a
XMLStreamWriter
object.
-
-