Class XmlConfidenceWriter
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.XmlConfidenceWriter
-
- All Implemented Interfaces:
PsiXmlElementWriter<Confidence>
- Direct Known Subclasses:
XmlModelledConfidenceWriter
public class XmlConfidenceWriter extends Object implements PsiXmlElementWriter<Confidence>
Xml25 writer for confidences- Since:
12/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description XmlConfidenceWriter(XMLStreamWriter writer)
Constructor for XmlConfidenceWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XMLStreamWriter
getStreamWriter()
Getter for the fieldstreamWriter
.PsiXmlVariableNameWriter<CvTerm>
getTypeWriter()
Getter for the fieldtypeWriter
.protected void
initialiseTypeWriter()
initialiseTypeWriter.void
setTypeWriter(PsiXmlVariableNameWriter<CvTerm> typeWriter)
Setter for the fieldtypeWriter
.void
write(Confidence object)
write.protected void
writeOtherProperties(Confidence object)
writeOtherProperties.
-
-
-
Constructor Detail
-
XmlConfidenceWriter
public XmlConfidenceWriter(XMLStreamWriter writer)
Constructor for XmlConfidenceWriter.
- Parameters:
writer
- aXMLStreamWriter
object.
-
-
Method Detail
-
getTypeWriter
public PsiXmlVariableNameWriter<CvTerm> getTypeWriter()
Getter for the field
typeWriter
.- Returns:
- a
PsiXmlVariableNameWriter
object.
-
initialiseTypeWriter
protected void initialiseTypeWriter()
initialiseTypeWriter.
-
setTypeWriter
public void setTypeWriter(PsiXmlVariableNameWriter<CvTerm> typeWriter)
Setter for the field
typeWriter
.- Parameters:
typeWriter
- aPsiXmlVariableNameWriter
object.
-
write
public void write(Confidence object) throws MIIOException
write.
- Specified by:
write
in interfacePsiXmlElementWriter<Confidence>
- Parameters:
object
- a T object.- Throws:
MIIOException
- if any.
-
writeOtherProperties
protected void writeOtherProperties(Confidence object)
writeOtherProperties.
- Parameters:
object
- aConfidence
object.
-
getStreamWriter
protected XMLStreamWriter getStreamWriter()
Getter for the field
streamWriter
.- Returns:
- a
XMLStreamWriter
object.
-
-