Class XmlInteractorWriter
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.XmlInteractorWriter
-
- All Implemented Interfaces:
PsiXmlElementWriter<Interactor>
- Direct Known Subclasses:
XmlInteractorWriter
public class XmlInteractorWriter extends Object implements PsiXmlElementWriter<Interactor>
Xml interactor writer- Since:
12/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description XmlInteractorWriter(PsiXmlVersion version, XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for XmlInteractorWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PsiXmlElementWriter<Alias>
getAliasWriter()
Getter for the fieldaliasWriter
.PsiXmlElementWriter<Annotation>
getAttributeWriter()
Getter for the fieldattributeWriter
.PsiXmlElementWriter<Checksum>
getChecksumWriter()
Getter for the fieldchecksumWriter
.PsiXmlVariableNameWriter<CvTerm>
getInteractorTypeWriter()
Getter for the fieldinteractorTypeWriter
.protected PsiXmlObjectCache
getObjectIndex()
Getter for the fieldobjectIndex
.PsiXmlElementWriter<Organism>
getOrganismWriter()
Getter for the fieldorganismWriter
.protected XMLStreamWriter
getStreamWriter()
Getter for the fieldstreamWriter
.PsiXmlXrefWriter
getXrefWriter()
Getter for the fieldxrefWriter
.protected void
initialiseInteractorTypeWriter()
initialiseInteractorTypeWriter.protected void
initialiseOrganismWriter()
initialiseOrganismWriter.protected void
initialiseXrefWriter()
initialiseXrefWriter.protected void
processSequence(Interactor object)
processSequence.void
setAliasWriter(PsiXmlElementWriter<Alias> aliasWriter)
Setter for the fieldaliasWriter
.void
setAttributeWriter(PsiXmlElementWriter<Annotation> attributeWriter)
Setter for the fieldattributeWriter
.void
setChecksumWriter(PsiXmlElementWriter<Checksum> checksumWriter)
Setter for the fieldchecksumWriter
.void
setInteractorTypeWriter(PsiXmlVariableNameWriter<CvTerm> interactorTypeWriter)
Setter for the fieldinteractorTypeWriter
.void
setOrganismWriter(PsiXmlElementWriter<Organism> organismWriter)
Setter for the fieldorganismWriter
.void
setXrefWriter(PsiXmlXrefWriter xrefWriter)
Setter for the fieldxrefWriter
.void
write(Interactor object)
write.protected void
writeAttributes(Interactor object)
writeAttributes.protected void
writeInteractorType(Interactor object)
writeInteractorType.protected void
writeNames(Interactor object)
writeNames.protected void
writeNewXref(Xref preferredIdentifier, String nodeName)
protected void
writeOrganism(Interactor object)
writeOrganism.protected void
writeOtherSetMembers(Interactor object, boolean needToWriteXref, boolean needToWritePrimaryRef)
writeOtherSetMembers.protected void
writePolymerSequence(Polymer object)
writePolymerSequence.protected void
writeXref(Interactor object)
writeXref.protected void
writeXrefFromInteractorIdentifiers(Interactor object)
writeXrefFromInteractorIdentifiers.protected void
writeXrefFromInteractorXrefs(Interactor object)
writeXrefFromInteractorXrefs.
-
-
-
Constructor Detail
-
XmlInteractorWriter
public XmlInteractorWriter(PsiXmlVersion version, XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for XmlInteractorWriter.
- Parameters:
version
- aPsiXmlVersion
object.writer
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
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.
-
getInteractorTypeWriter
public PsiXmlVariableNameWriter<CvTerm> getInteractorTypeWriter()
Getter for the field
interactorTypeWriter
.- Returns:
- a
PsiXmlVariableNameWriter
object.
-
initialiseInteractorTypeWriter
protected void initialiseInteractorTypeWriter()
initialiseInteractorTypeWriter.
-
setInteractorTypeWriter
public void setInteractorTypeWriter(PsiXmlVariableNameWriter<CvTerm> interactorTypeWriter)
Setter for the field
interactorTypeWriter
.- Parameters:
interactorTypeWriter
- aPsiXmlVariableNameWriter
object.
-
getOrganismWriter
public PsiXmlElementWriter<Organism> getOrganismWriter()
Getter for the field
organismWriter
.- Returns:
- a
PsiXmlElementWriter
object.
-
initialiseOrganismWriter
protected void initialiseOrganismWriter()
initialiseOrganismWriter.
-
setOrganismWriter
public void setOrganismWriter(PsiXmlElementWriter<Organism> organismWriter)
Setter for the field
organismWriter
.- Parameters:
organismWriter
- aPsiXmlElementWriter
object.
-
getAttributeWriter
public PsiXmlElementWriter<Annotation> getAttributeWriter()
Getter for the field
attributeWriter
.- Returns:
- a
PsiXmlElementWriter
object.
-
setAttributeWriter
public void setAttributeWriter(PsiXmlElementWriter<Annotation> attributeWriter)
Setter for the field
attributeWriter
.- Parameters:
attributeWriter
- aPsiXmlElementWriter
object.
-
getChecksumWriter
public PsiXmlElementWriter<Checksum> getChecksumWriter()
Getter for the field
checksumWriter
.- Returns:
- a
PsiXmlElementWriter
object.
-
setChecksumWriter
public void setChecksumWriter(PsiXmlElementWriter<Checksum> checksumWriter)
Setter for the field
checksumWriter
.- Parameters:
checksumWriter
- aPsiXmlElementWriter
object.
-
write
public void write(Interactor object) throws MIIOException
write.
- Specified by:
write
in interfacePsiXmlElementWriter<Interactor>
- Parameters:
object
- a T object.- Throws:
MIIOException
- if any.
-
writeAttributes
protected void writeAttributes(Interactor object) throws XMLStreamException
writeAttributes.
- Parameters:
object
- aInteractor
object.- Throws:
XMLStreamException
- if any.
-
writeOrganism
protected void writeOrganism(Interactor object)
writeOrganism.
- Parameters:
object
- aInteractor
object.
-
writeInteractorType
protected void writeInteractorType(Interactor object)
writeInteractorType.
- Parameters:
object
- aInteractor
object.
-
writeXref
protected void writeXref(Interactor object) throws XMLStreamException
writeXref.
- Parameters:
object
- aInteractor
object.- Throws:
XMLStreamException
- if any.
-
writeNames
protected void writeNames(Interactor object) throws XMLStreamException
writeNames.
- Parameters:
object
- aInteractor
object.- Throws:
XMLStreamException
- if any.
-
processSequence
protected void processSequence(Interactor object) throws XMLStreamException
processSequence.
- Parameters:
object
- aInteractor
object.- Throws:
XMLStreamException
- if any.
-
writePolymerSequence
protected void writePolymerSequence(Polymer object) throws XMLStreamException
writePolymerSequence.
- Parameters:
object
- aPolymer
object.- Throws:
XMLStreamException
- if any.
-
writeXrefFromInteractorXrefs
protected void writeXrefFromInteractorXrefs(Interactor object) throws XMLStreamException
writeXrefFromInteractorXrefs.
- Parameters:
object
- aInteractor
object.- Throws:
XMLStreamException
- if any.
-
writeXrefFromInteractorIdentifiers
protected void writeXrefFromInteractorIdentifiers(Interactor object) throws XMLStreamException
writeXrefFromInteractorIdentifiers.
- Parameters:
object
- aInteractor
object.- Throws:
XMLStreamException
- if any.
-
writeOtherSetMembers
protected void writeOtherSetMembers(Interactor object, boolean needToWriteXref, boolean needToWritePrimaryRef) throws XMLStreamException
writeOtherSetMembers.
- Parameters:
object
- aInteractor
object.needToWriteXref
- a boolean.needToWritePrimaryRef
- a boolean.- Throws:
XMLStreamException
- if any.
-
getStreamWriter
protected XMLStreamWriter getStreamWriter()
Getter for the field
streamWriter
.- Returns:
- a
XMLStreamWriter
object.
-
getObjectIndex
protected PsiXmlObjectCache getObjectIndex()
Getter for the field
objectIndex
.- Returns:
- a
PsiXmlObjectCache
object.
-
-