Class XmlCvTermWriter
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.XmlCvTermWriter
-
- All Implemented Interfaces:
PsiXmlVariableNameWriter<CvTerm>
- Direct Known Subclasses:
XmlCvTermWriter
,XmlOpenCvTermWriter
public class XmlCvTermWriter extends Object implements PsiXmlVariableNameWriter<CvTerm>
CvTerm writers for cvs without attributes- Since:
12/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description XmlCvTermWriter(XMLStreamWriter writer)
Constructor for XmlCvTermWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PsiXmlElementWriter<Alias>
getAliasWriter()
Getter for the fieldaliasWriter
.protected XMLStreamWriter
getStreamWriter()
Getter for the fieldstreamWriter
.PsiXmlXrefWriter
getXrefWriter()
Getter for the fieldxrefWriter
.protected void
initialiseXrefWriter()
initialiseXrefWriter.void
setAliasWriter(PsiXmlElementWriter<Alias> aliasWriter)
Setter for the fieldaliasWriter
.void
setXrefWriter(PsiXmlXrefWriter xrefWriter)
Setter for the fieldxrefWriter
.void
write(CvTerm object, String name)
write.protected void
writeOtherProperties(CvTerm term)
writeOtherProperties.protected void
writeStartCvTerm(String name)
writeStartCvTerm.protected void
writeXrefFromCvIdentifiers(CvTerm object)
writeXrefFromCvIdentifiers.protected void
writeXrefFromCvXrefs(CvTerm object)
writeXrefFromCvXrefs.
-
-
-
Constructor Detail
-
XmlCvTermWriter
public XmlCvTermWriter(XMLStreamWriter writer)
Constructor for XmlCvTermWriter.
- Parameters:
writer
- aXMLStreamWriter
object.
-
-
Method Detail
-
getAliasWriter
public PsiXmlElementWriter<Alias> getAliasWriter()
Getter for the field
aliasWriter
.- Returns:
- a
PsiXmlElementWriter
object.
-
setAliasWriter
public void setAliasWriter(PsiXmlElementWriter<Alias> aliasWriter)
Setter for the field
aliasWriter
.- Parameters:
aliasWriter
- aPsiXmlElementWriter
object.
-
getXrefWriter
public PsiXmlXrefWriter getXrefWriter()
Getter for the field
xrefWriter
.- Returns:
- a
PsiXmlXrefWriter
object.
-
initialiseXrefWriter
protected void initialiseXrefWriter()
initialiseXrefWriter.
-
setXrefWriter
public void setXrefWriter(PsiXmlXrefWriter xrefWriter)
Setter for the field
xrefWriter
.- Parameters:
xrefWriter
- aPsiXmlXrefWriter
object.
-
write
public void write(CvTerm object, String name) throws MIIOException
write.
- Specified by:
write
in interfacePsiXmlVariableNameWriter<CvTerm>
- Parameters:
object
- a T object.name
- aString
object.- Throws:
MIIOException
- if any.
-
writeStartCvTerm
protected void writeStartCvTerm(String name) throws XMLStreamException
writeStartCvTerm.
- Parameters:
name
- aString
object.- Throws:
XMLStreamException
- if any.
-
writeOtherProperties
protected void writeOtherProperties(CvTerm term) throws XMLStreamException
writeOtherProperties.
- Parameters:
term
- aCvTerm
object.- Throws:
XMLStreamException
- if any.
-
writeXrefFromCvXrefs
protected void writeXrefFromCvXrefs(CvTerm object) throws XMLStreamException
writeXrefFromCvXrefs.
- Parameters:
object
- aCvTerm
object.- Throws:
XMLStreamException
- if any.
-
writeXrefFromCvIdentifiers
protected void writeXrefFromCvIdentifiers(CvTerm object) throws XMLStreamException
writeXrefFromCvIdentifiers.
- Parameters:
object
- aCvTerm
object.- Throws:
XMLStreamException
- if any.
-
getStreamWriter
protected XMLStreamWriter getStreamWriter()
Getter for the field
streamWriter
.- Returns:
- a
XMLStreamWriter
object.
-
-