Package psidev.psi.mi.jami.json.elements
Class SimpleJsonExperimentWriter
- java.lang.Object
-
- psidev.psi.mi.jami.json.elements.SimpleJsonExperimentWriter
-
- All Implemented Interfaces:
JsonElementWriter<InteractionEvidence>
public class SimpleJsonExperimentWriter extends Object implements JsonElementWriter<InteractionEvidence>
Json writer which will only write experimental details of an interaction evidence- Since:
18/07/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description SimpleJsonExperimentWriter(Writer writer)
Constructor for SimpleJsonExperimentWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonElementWriter<Annotation>
getAnnotationWriter()
Getter for the fieldannotationWriter
.JsonElementWriter<CvTerm>
getCvWriter()
Getter for the fieldcvWriter
.JsonElementWriter<Organism>
getHostOrganismWriter()
Getter for the fieldhostOrganismWriter
.JsonElementWriter<Publication>
getPublicationWriter()
Getter for the fieldpublicationWriter
.void
setAnnotationWriter(JsonElementWriter<Annotation> annotationWriter)
Setter for the fieldannotationWriter
.void
setCvWriter(JsonElementWriter<CvTerm> cvWriter)
Setter for the fieldcvWriter
.void
setHostOrganismWriter(JsonElementWriter<Organism> hostOrganismWriter)
Setter for the fieldhostOrganismWriter
.void
setPublicationWriter(JsonElementWriter<Publication> publicationWriter)
Setter for the fieldpublicationWriter
.void
write(InteractionEvidence object)
write.protected void
writeAnnotations(Collection<Annotation> expModifications)
writeAnnotations.
-
-
-
Method Detail
-
write
public void write(InteractionEvidence object) throws IOException
write.
- Specified by:
write
in interfaceJsonElementWriter<InteractionEvidence>
- Parameters:
object
- aInteractionEvidence
object.- Throws:
IOException
- if any.
-
writeAnnotations
protected void writeAnnotations(Collection<Annotation> expModifications) throws IOException
writeAnnotations.
- Parameters:
expModifications
- aCollection
object.- Throws:
IOException
- if any.
-
getCvWriter
public JsonElementWriter<CvTerm> getCvWriter()
Getter for the field
cvWriter
.- Returns:
- a
JsonElementWriter
object.
-
setCvWriter
public void setCvWriter(JsonElementWriter<CvTerm> cvWriter)
Setter for the field
cvWriter
.- Parameters:
cvWriter
- aJsonElementWriter
object.
-
getPublicationWriter
public JsonElementWriter<Publication> getPublicationWriter()
Getter for the field
publicationWriter
.- Returns:
- a
JsonElementWriter
object.
-
setPublicationWriter
public void setPublicationWriter(JsonElementWriter<Publication> publicationWriter)
Setter for the field
publicationWriter
.- Parameters:
publicationWriter
- aJsonElementWriter
object.
-
getHostOrganismWriter
public JsonElementWriter<Organism> getHostOrganismWriter()
Getter for the field
hostOrganismWriter
.- Returns:
- a
JsonElementWriter
object.
-
setHostOrganismWriter
public void setHostOrganismWriter(JsonElementWriter<Organism> hostOrganismWriter)
Setter for the field
hostOrganismWriter
.- Parameters:
hostOrganismWriter
- aJsonElementWriter
object.
-
getAnnotationWriter
public JsonElementWriter<Annotation> getAnnotationWriter()
Getter for the field
annotationWriter
.- Returns:
- a
JsonElementWriter
object.
-
setAnnotationWriter
public void setAnnotationWriter(JsonElementWriter<Annotation> annotationWriter)
Setter for the field
annotationWriter
.- Parameters:
annotationWriter
- aJsonElementWriter
object.
-
-