Class XmlDbXrefWriter
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.XmlDbXrefWriter
-
- All Implemented Interfaces:
PsiXmlVariableNameWriter<Xref>
,PsiXmlXrefWriter
- Direct Known Subclasses:
XmlDbXrefWriter
public class XmlDbXrefWriter extends Object implements PsiXmlXrefWriter
Xml Writer for Xref object- Since:
11/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description XmlDbXrefWriter(XMLStreamWriter writer)
Constructor for XmlDbXrefWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XMLStreamWriter
getStreamWriter()
Getter for the fieldstreamWriter
.void
setDefaultRefType(String defaultType)
Sets the default refType that will be used when a Xref object does not have a qualifiervoid
setDefaultRefTypeAc(String defaultTypeAc)
Sets the default refTypeAc that will be used when a Xref object does not have a qualifiervoid
write(Xref object, String nodeName)
write.protected void
writeOtherProperties(Xref object)
writeOtherProperties.protected void
writeStartDbRef(String nodeName)
writeStartDbRef.
-
-
-
Constructor Detail
-
XmlDbXrefWriter
public XmlDbXrefWriter(XMLStreamWriter writer)
Constructor for XmlDbXrefWriter.
- Parameters:
writer
- aXMLStreamWriter
object.
-
-
Method Detail
-
write
public void write(Xref object, String nodeName) throws MIIOException
write.
- Specified by:
write
in interfacePsiXmlVariableNameWriter<Xref>
- Parameters:
object
- a T object.nodeName
- aString
object.- Throws:
MIIOException
- if any.
-
writeOtherProperties
protected void writeOtherProperties(Xref object) throws XMLStreamException
writeOtherProperties.
- Parameters:
object
- aXref
object.- Throws:
XMLStreamException
- if any.
-
getStreamWriter
protected XMLStreamWriter getStreamWriter()
Getter for the field
streamWriter
.- Returns:
- a
XMLStreamWriter
object.
-
setDefaultRefType
public void setDefaultRefType(String defaultType)
Sets the default refType that will be used when a Xref object does not have a qualifier- Specified by:
setDefaultRefType
in interfacePsiXmlXrefWriter
- Parameters:
defaultType
- aString
object.
-
setDefaultRefTypeAc
public void setDefaultRefTypeAc(String defaultTypeAc)
Sets the default refTypeAc that will be used when a Xref object does not have a qualifier- Specified by:
setDefaultRefTypeAc
in interfacePsiXmlXrefWriter
- Parameters:
defaultTypeAc
- aString
object.
-
writeStartDbRef
protected void writeStartDbRef(String nodeName) throws XMLStreamException
writeStartDbRef.
- Parameters:
nodeName
- aString
object.- Throws:
XMLStreamException
- if any.
-
-