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 PsiXmlObjectCachegetObjectIndex()Getter for the fieldobjectIndex.PsiXmlElementWriter<Organism>getOrganismWriter()Getter for the fieldorganismWriter.protected XMLStreamWritergetStreamWriter()Getter for the fieldstreamWriter.PsiXmlXrefWritergetXrefWriter()Getter for the fieldxrefWriter.protected voidinitialiseInteractorTypeWriter()initialiseInteractorTypeWriter.protected voidinitialiseOrganismWriter()initialiseOrganismWriter.protected voidinitialiseXrefWriter()initialiseXrefWriter.protected voidprocessSequence(Interactor object)processSequence.voidsetAliasWriter(PsiXmlElementWriter<Alias> aliasWriter)Setter for the fieldaliasWriter.voidsetAttributeWriter(PsiXmlElementWriter<Annotation> attributeWriter)Setter for the fieldattributeWriter.voidsetChecksumWriter(PsiXmlElementWriter<Checksum> checksumWriter)Setter for the fieldchecksumWriter.voidsetInteractorTypeWriter(PsiXmlVariableNameWriter<CvTerm> interactorTypeWriter)Setter for the fieldinteractorTypeWriter.voidsetOrganismWriter(PsiXmlElementWriter<Organism> organismWriter)Setter for the fieldorganismWriter.voidsetXrefWriter(PsiXmlXrefWriter xrefWriter)Setter for the fieldxrefWriter.voidwrite(Interactor object)write.protected voidwriteAttributes(Interactor object)writeAttributes.protected voidwriteInteractorType(Interactor object)writeInteractorType.protected voidwriteNames(Interactor object)writeNames.protected voidwriteNewXref(Xref preferredIdentifier, String nodeName)protected voidwriteOrganism(Interactor object)writeOrganism.protected voidwriteOtherSetMembers(Interactor object, boolean needToWriteXref, boolean needToWritePrimaryRef)writeOtherSetMembers.protected voidwritePolymerSequence(Polymer object)writePolymerSequence.protected voidwriteXref(Interactor object)writeXref.protected voidwriteXrefFromInteractorIdentifiers(Interactor object)writeXrefFromInteractorIdentifiers.protected voidwriteXrefFromInteractorXrefs(Interactor object)writeXrefFromInteractorXrefs.
-
-
-
Constructor Detail
-
XmlInteractorWriter
public XmlInteractorWriter(PsiXmlVersion version, XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for XmlInteractorWriter.
- Parameters:
version- aPsiXmlVersionobject.writer- aXMLStreamWriterobject.objectIndex- aPsiXmlObjectCacheobject.
-
-
Method Detail
-
getAliasWriter
public PsiXmlElementWriter<Alias> getAliasWriter()
Getter for the field
aliasWriter.- Returns:
- a
PsiXmlElementWriterobject.
-
setAliasWriter
public void setAliasWriter(PsiXmlElementWriter<Alias> aliasWriter)
Setter for the field
aliasWriter.- Parameters:
aliasWriter- aPsiXmlElementWriterobject.
-
getXrefWriter
public PsiXmlXrefWriter getXrefWriter()
Getter for the field
xrefWriter.- Returns:
- a
PsiXmlXrefWriterobject.
-
initialiseXrefWriter
protected void initialiseXrefWriter()
initialiseXrefWriter.
-
setXrefWriter
public void setXrefWriter(PsiXmlXrefWriter xrefWriter)
Setter for the field
xrefWriter.- Parameters:
xrefWriter- aPsiXmlXrefWriterobject.
-
getInteractorTypeWriter
public PsiXmlVariableNameWriter<CvTerm> getInteractorTypeWriter()
Getter for the field
interactorTypeWriter.- Returns:
- a
PsiXmlVariableNameWriterobject.
-
initialiseInteractorTypeWriter
protected void initialiseInteractorTypeWriter()
initialiseInteractorTypeWriter.
-
setInteractorTypeWriter
public void setInteractorTypeWriter(PsiXmlVariableNameWriter<CvTerm> interactorTypeWriter)
Setter for the field
interactorTypeWriter.- Parameters:
interactorTypeWriter- aPsiXmlVariableNameWriterobject.
-
getOrganismWriter
public PsiXmlElementWriter<Organism> getOrganismWriter()
Getter for the field
organismWriter.- Returns:
- a
PsiXmlElementWriterobject.
-
initialiseOrganismWriter
protected void initialiseOrganismWriter()
initialiseOrganismWriter.
-
setOrganismWriter
public void setOrganismWriter(PsiXmlElementWriter<Organism> organismWriter)
Setter for the field
organismWriter.- Parameters:
organismWriter- aPsiXmlElementWriterobject.
-
getAttributeWriter
public PsiXmlElementWriter<Annotation> getAttributeWriter()
Getter for the field
attributeWriter.- Returns:
- a
PsiXmlElementWriterobject.
-
setAttributeWriter
public void setAttributeWriter(PsiXmlElementWriter<Annotation> attributeWriter)
Setter for the field
attributeWriter.- Parameters:
attributeWriter- aPsiXmlElementWriterobject.
-
getChecksumWriter
public PsiXmlElementWriter<Checksum> getChecksumWriter()
Getter for the field
checksumWriter.- Returns:
- a
PsiXmlElementWriterobject.
-
setChecksumWriter
public void setChecksumWriter(PsiXmlElementWriter<Checksum> checksumWriter)
Setter for the field
checksumWriter.- Parameters:
checksumWriter- aPsiXmlElementWriterobject.
-
write
public void write(Interactor object) throws MIIOException
write.
- Specified by:
writein interfacePsiXmlElementWriter<Interactor>- Parameters:
object- a T object.- Throws:
MIIOException- if any.
-
writeAttributes
protected void writeAttributes(Interactor object) throws XMLStreamException
writeAttributes.
- Parameters:
object- aInteractorobject.- Throws:
XMLStreamException- if any.
-
writeOrganism
protected void writeOrganism(Interactor object)
writeOrganism.
- Parameters:
object- aInteractorobject.
-
writeInteractorType
protected void writeInteractorType(Interactor object)
writeInteractorType.
- Parameters:
object- aInteractorobject.
-
writeXref
protected void writeXref(Interactor object) throws XMLStreamException
writeXref.
- Parameters:
object- aInteractorobject.- Throws:
XMLStreamException- if any.
-
writeNames
protected void writeNames(Interactor object) throws XMLStreamException
writeNames.
- Parameters:
object- aInteractorobject.- Throws:
XMLStreamException- if any.
-
processSequence
protected void processSequence(Interactor object) throws XMLStreamException
processSequence.
- Parameters:
object- aInteractorobject.- Throws:
XMLStreamException- if any.
-
writePolymerSequence
protected void writePolymerSequence(Polymer object) throws XMLStreamException
writePolymerSequence.
- Parameters:
object- aPolymerobject.- Throws:
XMLStreamException- if any.
-
writeXrefFromInteractorXrefs
protected void writeXrefFromInteractorXrefs(Interactor object) throws XMLStreamException
writeXrefFromInteractorXrefs.
- Parameters:
object- aInteractorobject.- Throws:
XMLStreamException- if any.
-
writeXrefFromInteractorIdentifiers
protected void writeXrefFromInteractorIdentifiers(Interactor object) throws XMLStreamException
writeXrefFromInteractorIdentifiers.
- Parameters:
object- aInteractorobject.- Throws:
XMLStreamException- if any.
-
writeOtherSetMembers
protected void writeOtherSetMembers(Interactor object, boolean needToWriteXref, boolean needToWritePrimaryRef) throws XMLStreamException
writeOtherSetMembers.
- Parameters:
object- aInteractorobject.needToWriteXref- a boolean.needToWritePrimaryRef- a boolean.- Throws:
XMLStreamException- if any.
-
getStreamWriter
protected XMLStreamWriter getStreamWriter()
Getter for the field
streamWriter.- Returns:
- a
XMLStreamWriterobject.
-
getObjectIndex
protected PsiXmlObjectCache getObjectIndex()
Getter for the field
objectIndex.- Returns:
- a
PsiXmlObjectCacheobject.
-
-