Package psidev.psi.mi.jami.json.elements
Class SimpleJsonParticipantEvidenceWriter
- java.lang.Object
-
- psidev.psi.mi.jami.json.elements.SimpleJsonParticipantWriter<ParticipantEvidence>
-
- psidev.psi.mi.jami.json.elements.SimpleJsonParticipantEvidenceWriter
-
- All Implemented Interfaces:
JsonElementWriter<ParticipantEvidence>
public class SimpleJsonParticipantEvidenceWriter extends SimpleJsonParticipantWriter<ParticipantEvidence>
Json writer for participant evidences- Since:
18/07/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description SimpleJsonParticipantEvidenceWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants)
Constructor for SimpleJsonParticipantEvidenceWriter.SimpleJsonParticipantEvidenceWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator, OntologyTermFetcher fetcher)
Constructor for SimpleJsonParticipantEvidenceWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonElementWriter<Confidence>
getConfidenceWriter()
Getter for the fieldconfidenceWriter
.JsonElementWriter<Organism>
getHostOrganismWriter()
Getter for the fieldhostOrganismWriter
.JsonElementWriter<Parameter>
getParameterWriter()
Getter for the fieldparameterWriter
.protected void
initialiseDefaultFeatureWriter()
initialiseDefaultFeatureWriter.void
setConfidenceWriter(JsonElementWriter<Confidence> confidenceWriter)
Setter for the fieldconfidenceWriter
.void
setHostOrganismWriter(JsonElementWriter<Organism> hostOrganismWriter)
Setter for the fieldhostOrganismWriter
.void
setParameterWriter(JsonElementWriter<Parameter> parameterWriter)
Setter for the fieldparameterWriter
.protected void
writeOtherProperties(ParticipantEvidence object)
writeOtherProperties.-
Methods inherited from class psidev.psi.mi.jami.json.elements.SimpleJsonParticipantWriter
getCvWriter, getFeatureWriter, getFetcher, getIdGenerator, getProcessedFeatures, getProcessedInteractors, getProcessedParticipants, getStoichiometryWriter, getWriter, setCvWriter, setFeatureWriter, setIdGenerator, setStoichiometryWriter, write, writeAllFeatures, writeFeatures
-
-
-
-
Constructor Detail
-
SimpleJsonParticipantEvidenceWriter
public SimpleJsonParticipantEvidenceWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants)
Constructor for SimpleJsonParticipantEvidenceWriter.
-
SimpleJsonParticipantEvidenceWriter
public SimpleJsonParticipantEvidenceWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator, OntologyTermFetcher fetcher)
Constructor for SimpleJsonParticipantEvidenceWriter.
- Parameters:
writer
- aWriter
object.processedFeatures
- aMap
object.processedInteractors
- aMap
object.processedParticipants
- aMap
object.idGenerator
- aIncrementalIdGenerator
object.fetcher
- aOntologyTermFetcher
object.
-
-
Method Detail
-
initialiseDefaultFeatureWriter
protected void initialiseDefaultFeatureWriter()
initialiseDefaultFeatureWriter.
- Overrides:
initialiseDefaultFeatureWriter
in classSimpleJsonParticipantWriter<ParticipantEvidence>
-
getParameterWriter
public JsonElementWriter<Parameter> getParameterWriter()
Getter for the field
parameterWriter
.- Returns:
- a
JsonElementWriter
object.
-
setParameterWriter
public void setParameterWriter(JsonElementWriter<Parameter> parameterWriter)
Setter for the field
parameterWriter
.- Parameters:
parameterWriter
- aJsonElementWriter
object.
-
getConfidenceWriter
public JsonElementWriter<Confidence> getConfidenceWriter()
Getter for the field
confidenceWriter
.- Returns:
- a
JsonElementWriter
object.
-
setConfidenceWriter
public void setConfidenceWriter(JsonElementWriter<Confidence> confidenceWriter)
Setter for the field
confidenceWriter
.- Parameters:
confidenceWriter
- aJsonElementWriter
object.
-
writeOtherProperties
protected void writeOtherProperties(ParticipantEvidence object) throws IOException
writeOtherProperties.
- Overrides:
writeOtherProperties
in classSimpleJsonParticipantWriter<ParticipantEvidence>
- Parameters:
object
- a P object.- Throws:
IOException
- if any.
-
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.
-
-