Class AbstractXmlCooperativeEffectWriter<C extends CooperativeEffect>
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.abstracts.xml30.AbstractXmlCooperativeEffectWriter<C>
-
- All Implemented Interfaces:
PsiXmlElementWriter<C>
- Direct Known Subclasses:
XmlAllosteryWriter
,XmlPreAssemblyWriter
public abstract class AbstractXmlCooperativeEffectWriter<C extends CooperativeEffect> extends Object implements PsiXmlElementWriter<C>
Abstract Xml 3.0 writer for cooperative effect- Since:
12/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description AbstractXmlCooperativeEffectWriter(XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for AbstractXmlCooperativeEffectWriter.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description PsiXmlElementWriter<Annotation>
getAttributeWriter()
Getter for the fieldattributeWriter
.PsiXmlElementWriter<CooperativityEvidence>
getCooperativityEvidenceWriter()
Getter for the fieldcooperativityEvidenceWriter
.PsiXmlVariableNameWriter<CvTerm>
getCvWriter()
Getter for the fieldcvWriter
.protected PsiXmlObjectCache
getObjectIndex()
Getter for the fieldobjectIndex
.protected XMLStreamWriter
getStreamWriter()
Getter for the fieldstreamWriter
.protected void
initialiseCooperativityEvidenceWriter()
initialiseCooperativityEvidenceWriter.protected void
initialiseCvWriter()
initialiseCvWriter.void
setAttributeWriter(PsiXmlElementWriter<Annotation> attributeWriter)
Setter for the fieldattributeWriter
.void
setCooperativityEvidenceWriter(PsiXmlElementWriter<CooperativityEvidence> cooperativityEvidenceWriter)
Setter for the fieldcooperativityEvidenceWriter
.void
setCvWriter(PsiXmlVariableNameWriter<CvTerm> cvWriter)
Setter for the fieldcvWriter
.void
write(C object)
write.protected void
writeAffectedInteractionList(C object)
writeAffectedInteractionList.protected void
writeAttributes(C object)
writeAttributes.protected void
writeCooperativityEvidenceList(C object)
writeCooperativityEvidenceList.protected abstract void
writeOtherProperties(C object)
writeOtherProperties.protected void
writeOutcome(C object)
writeOutcome.protected void
writeResponse(C object)
writeResponse.protected abstract void
writeStartCooperativeEffect()
writeStartCooperativeEffect.
-
-
-
Constructor Detail
-
AbstractXmlCooperativeEffectWriter
public AbstractXmlCooperativeEffectWriter(XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for AbstractXmlCooperativeEffectWriter.
- Parameters:
writer
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
object.
-
-
Method Detail
-
getCooperativityEvidenceWriter
public PsiXmlElementWriter<CooperativityEvidence> getCooperativityEvidenceWriter()
Getter for the field
cooperativityEvidenceWriter
.- Returns:
- a
PsiXmlElementWriter
object.
-
initialiseCooperativityEvidenceWriter
protected void initialiseCooperativityEvidenceWriter()
initialiseCooperativityEvidenceWriter.
-
setCooperativityEvidenceWriter
public void setCooperativityEvidenceWriter(PsiXmlElementWriter<CooperativityEvidence> cooperativityEvidenceWriter)
Setter for the field
cooperativityEvidenceWriter
.- Parameters:
cooperativityEvidenceWriter
- 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.
-
getCvWriter
public PsiXmlVariableNameWriter<CvTerm> getCvWriter()
Getter for the field
cvWriter
.- Returns:
- a
PsiXmlVariableNameWriter
object.
-
initialiseCvWriter
protected void initialiseCvWriter()
initialiseCvWriter.
-
setCvWriter
public void setCvWriter(PsiXmlVariableNameWriter<CvTerm> cvWriter)
Setter for the field
cvWriter
.- Parameters:
cvWriter
- aPsiXmlVariableNameWriter
object.
-
write
public void write(C object) throws MIIOException
write.
- Specified by:
write
in interfacePsiXmlElementWriter<C extends CooperativeEffect>
- Parameters:
object
- a T object.- Throws:
MIIOException
- if any.
-
writeOutcome
protected void writeOutcome(C object)
writeOutcome.
- Parameters:
object
- a C object.
-
writeResponse
protected void writeResponse(C object)
writeResponse.
- Parameters:
object
- a C object.
-
writeAttributes
protected void writeAttributes(C object) throws XMLStreamException
writeAttributes.
- Parameters:
object
- a C object.- Throws:
XMLStreamException
- if any.
-
writeOtherProperties
protected abstract void writeOtherProperties(C object) throws XMLStreamException
writeOtherProperties.
- Parameters:
object
- a C object.- Throws:
XMLStreamException
- if any.
-
writeAffectedInteractionList
protected void writeAffectedInteractionList(C object) throws XMLStreamException
writeAffectedInteractionList.
- Parameters:
object
- a C object.- Throws:
XMLStreamException
- if any.
-
writeStartCooperativeEffect
protected abstract void writeStartCooperativeEffect() throws XMLStreamException
writeStartCooperativeEffect.
- Throws:
XMLStreamException
- if any.
-
writeCooperativityEvidenceList
protected void writeCooperativityEvidenceList(C object) throws XMLStreamException
writeCooperativityEvidenceList.
- Parameters:
object
- a C object.- 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.
-
-