Class XmlCausalRelationshipWriter
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.elements.impl.xml30.XmlCausalRelationshipWriter
-
- All Implemented Interfaces:
PsiXmlCausalRelationshipWriter
- Direct Known Subclasses:
XmlCausalRelationshipWriter
public class XmlCausalRelationshipWriter extends Object implements PsiXmlCausalRelationshipWriter
XML 3.0 writer for causalRelationship- Since:
11/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description XmlCausalRelationshipWriter(XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for XmlCausalRelationshipWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PsiXmlVariableNameWriter<CvTerm>
getCausalStatementWriter()
Getter for the fieldcausalStatementWriter
.protected PsiXmlObjectCache
getObjectIndex()
Getter for the fieldobjectIndex
.protected XMLStreamWriter
getStreamWriter()
Getter for the fieldstreamWriter
.protected void
initialiseCausalStatementWriter()
initialiseCausalStatementWriter.void
setCausalStatementWriter(PsiXmlVariableNameWriter<CvTerm> causalStatementWriter)
Setter for the fieldcausalStatementWriter
.void
write(CausalRelationship object, Participant source)
write.protected void
writeCausalStatement(CausalRelationship object)
writeCausalStatement.protected void
writeSource(CausalRelationship object, Participant source)
writeSource.protected void
writeTarget(CausalRelationship object)
writeTarget.
-
-
-
Constructor Detail
-
XmlCausalRelationshipWriter
public XmlCausalRelationshipWriter(XMLStreamWriter writer, PsiXmlObjectCache objectIndex)
Constructor for XmlCausalRelationshipWriter.
- Parameters:
writer
- aXMLStreamWriter
object.objectIndex
- aPsiXmlObjectCache
object.
-
-
Method Detail
-
getCausalStatementWriter
public PsiXmlVariableNameWriter<CvTerm> getCausalStatementWriter()
Getter for the field
causalStatementWriter
.- Returns:
- a
PsiXmlVariableNameWriter
object.
-
initialiseCausalStatementWriter
protected void initialiseCausalStatementWriter()
initialiseCausalStatementWriter.
-
setCausalStatementWriter
public void setCausalStatementWriter(PsiXmlVariableNameWriter<CvTerm> causalStatementWriter)
Setter for the field
causalStatementWriter
.- Parameters:
causalStatementWriter
- aPsiXmlVariableNameWriter
object.
-
write
public void write(CausalRelationship object, Participant source) throws MIIOException
write.
- Specified by:
write
in interfacePsiXmlCausalRelationshipWriter
- Parameters:
object
- aCausalRelationship
object.source
- the source of the causal relationship. It cannot be null- Throws:
MIIOException
- if any.
-
writeTarget
protected void writeTarget(CausalRelationship object) throws XMLStreamException
writeTarget.
- Parameters:
object
- aCausalRelationship
object.- Throws:
XMLStreamException
- if any.
-
writeCausalStatement
protected void writeCausalStatement(CausalRelationship object)
writeCausalStatement.
- Parameters:
object
- aCausalRelationship
object.
-
writeSource
protected void writeSource(CausalRelationship object, Participant source) throws XMLStreamException
writeSource.
- Parameters:
object
- aCausalRelationship
object.source
- aParticipant
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.
-
-