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.voidsetAnnotationWriter(JsonElementWriter<Annotation> annotationWriter)Setter for the fieldannotationWriter.voidsetCvWriter(JsonElementWriter<CvTerm> cvWriter)Setter for the fieldcvWriter.voidsetHostOrganismWriter(JsonElementWriter<Organism> hostOrganismWriter)Setter for the fieldhostOrganismWriter.voidsetPublicationWriter(JsonElementWriter<Publication> publicationWriter)Setter for the fieldpublicationWriter.voidwrite(InteractionEvidence object)write.protected voidwriteAnnotations(Collection<Annotation> expModifications)writeAnnotations.
-
-
-
Method Detail
-
write
public void write(InteractionEvidence object) throws IOException
write.
- Specified by:
writein interfaceJsonElementWriter<InteractionEvidence>- Parameters:
object- aInteractionEvidenceobject.- Throws:
IOException- if any.
-
writeAnnotations
protected void writeAnnotations(Collection<Annotation> expModifications) throws IOException
writeAnnotations.
- Parameters:
expModifications- aCollectionobject.- Throws:
IOException- if any.
-
getCvWriter
public JsonElementWriter<CvTerm> getCvWriter()
Getter for the field
cvWriter.- Returns:
- a
JsonElementWriterobject.
-
setCvWriter
public void setCvWriter(JsonElementWriter<CvTerm> cvWriter)
Setter for the field
cvWriter.- Parameters:
cvWriter- aJsonElementWriterobject.
-
getPublicationWriter
public JsonElementWriter<Publication> getPublicationWriter()
Getter for the field
publicationWriter.- Returns:
- a
JsonElementWriterobject.
-
setPublicationWriter
public void setPublicationWriter(JsonElementWriter<Publication> publicationWriter)
Setter for the field
publicationWriter.- Parameters:
publicationWriter- aJsonElementWriterobject.
-
getHostOrganismWriter
public JsonElementWriter<Organism> getHostOrganismWriter()
Getter for the field
hostOrganismWriter.- Returns:
- a
JsonElementWriterobject.
-
setHostOrganismWriter
public void setHostOrganismWriter(JsonElementWriter<Organism> hostOrganismWriter)
Setter for the field
hostOrganismWriter.- Parameters:
hostOrganismWriter- aJsonElementWriterobject.
-
getAnnotationWriter
public JsonElementWriter<Annotation> getAnnotationWriter()
Getter for the field
annotationWriter.- Returns:
- a
JsonElementWriterobject.
-
setAnnotationWriter
public void setAnnotationWriter(JsonElementWriter<Annotation> annotationWriter)
Setter for the field
annotationWriter.- Parameters:
annotationWriter- aJsonElementWriterobject.
-
-