Package psidev.psi.mi.jami.json.elements
Class SimpleJsonInteractorWriter
- java.lang.Object
-
- psidev.psi.mi.jami.json.elements.SimpleJsonInteractorWriter
-
- All Implemented Interfaces:
JsonElementWriter<Interactor>
public class SimpleJsonInteractorWriter extends Object implements JsonElementWriter<Interactor>
Json writer for participants- Since:
18/07/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description SimpleJsonInteractorWriter(Writer writer, Map<String,String> processedInteractors)
Constructor for SimpleJsonInteractorWriter.SimpleJsonInteractorWriter(Writer writer, Map<String,String> processedInteractors, IncrementalIdGenerator idGenerator)
Constructor for SimpleJsonInteractorWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonElementWriter<CvTerm>
getCvWriter()
Getter for the fieldcvWriter
.JsonElementWriter<Xref>
getIdentifierWriter()
Getter for the fieldidentifierWriter
.IncrementalIdGenerator
getIdGenerator()
Getter for the fieldidGenerator
.JsonElementWriter<Organism>
getOrganismWriter()
Getter for the fieldorganismWriter
.protected Writer
getWriter()
Getter for the fieldwriter
.void
setCvWriter(JsonElementWriter<CvTerm> cvWriter)
Setter for the fieldcvWriter
.void
setIdentifierWriter(JsonElementWriter<Xref> identifierWriter)
Setter for the fieldidentifierWriter
.void
setIdGenerator(IncrementalIdGenerator idGenerator)
Setter for the fieldidGenerator
.void
setOrganismWriter(JsonElementWriter<Organism> organismWriter)
Setter for the fieldorganismWriter
.void
write(Interactor object)
write.
-
-
-
Constructor Detail
-
SimpleJsonInteractorWriter
public SimpleJsonInteractorWriter(Writer writer, Map<String,String> processedInteractors)
Constructor for SimpleJsonInteractorWriter.
-
SimpleJsonInteractorWriter
public SimpleJsonInteractorWriter(Writer writer, Map<String,String> processedInteractors, IncrementalIdGenerator idGenerator)
Constructor for SimpleJsonInteractorWriter.
- Parameters:
writer
- aWriter
object.processedInteractors
- aMap
object.idGenerator
- aIncrementalIdGenerator
object.
-
-
Method Detail
-
write
public void write(Interactor object) throws IOException
write.
- Specified by:
write
in interfaceJsonElementWriter<Interactor>
- Parameters:
object
- aInteractor
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.
-
getIdGenerator
public IncrementalIdGenerator getIdGenerator()
Getter for the field
idGenerator
.- Returns:
- a
IncrementalIdGenerator
object.
-
setIdGenerator
public void setIdGenerator(IncrementalIdGenerator idGenerator)
Setter for the field
idGenerator
.- Parameters:
idGenerator
- aIncrementalIdGenerator
object.
-
getOrganismWriter
public JsonElementWriter<Organism> getOrganismWriter()
Getter for the field
organismWriter
.- Returns:
- a
JsonElementWriter
object.
-
setOrganismWriter
public void setOrganismWriter(JsonElementWriter<Organism> organismWriter)
Setter for the field
organismWriter
.- Parameters:
organismWriter
- aJsonElementWriter
object.
-
getIdentifierWriter
public JsonElementWriter<Xref> getIdentifierWriter()
Getter for the field
identifierWriter
.- Returns:
- a
JsonElementWriter
object.
-
setIdentifierWriter
public void setIdentifierWriter(JsonElementWriter<Xref> identifierWriter)
Setter for the field
identifierWriter
.- Parameters:
identifierWriter
- aJsonElementWriter
object.
-
-