Package psidev.psi.mi.jami.json.elements
Class SimpleJsonInteractionEvidenceWriter<I extends InteractionEvidence>
- java.lang.Object
-
- psidev.psi.mi.jami.json.elements.SimpleJsonInteractionWriter<I>
-
- psidev.psi.mi.jami.json.elements.SimpleJsonInteractionEvidenceWriter<I>
-
- All Implemented Interfaces:
JsonElementWriter<I>
- Direct Known Subclasses:
SimpleJsonBinaryInteractionEvidenceWriter
public class SimpleJsonInteractionEvidenceWriter<I extends InteractionEvidence> extends SimpleJsonInteractionWriter<I>
Json writer for interaction evidences- Since:
18/07/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description SimpleJsonInteractionEvidenceWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants)
Constructor for SimpleJsonInteractionEvidenceWriter.SimpleJsonInteractionEvidenceWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for SimpleJsonInteractionEvidenceWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonElementWriter<Confidence>
getConfidenceWriter()
Getter for the fieldconfidenceWriter
.JsonElementWriter<InteractionEvidence>
getExperimentWriter()
Getter for the fieldexperimentWriter
.JsonElementWriter<Parameter>
getParameterWriter()
Getter for the fieldparameterWriter
.protected boolean
hasIdentifiers(I object)
hasIdentifiers.protected void
initialiseDefaultParticipantWriter()
initialiseDefaultParticipantWriter.void
setConfidenceWriter(JsonElementWriter<Confidence> confidenceWriter)
Setter for the fieldconfidenceWriter
.void
setExperimentWriter(JsonElementWriter<InteractionEvidence> experimentWriter)
Setter for the fieldexperimentWriter
.void
setParameterWriter(JsonElementWriter<Parameter> parameterWriter)
Setter for the fieldparameterWriter
.protected void
writeAllIdentifiers(I object)
writeAllIdentifiers.protected void
writeOtherIdentifiers(I object)
writeOtherIdentifiers.protected void
writeOtherProperties(I object)
writeOtherProperties.-
Methods inherited from class psidev.psi.mi.jami.json.elements.SimpleJsonInteractionWriter
generateInteractionIdentifier, getCvWriter, getFetcher, getIdentifierWriter, getIdGenerator, getParticipantWriter, getProcessedFeatures, getProcessedInteractors, getProcessedParticipants, getWriter, setCvWriter, setFetcher, setIdentifierWriter, setIdGenerator, setParticipantWriter, write, writeExpansionMethod, writeOtherExpansionMethodProperties
-
-
-
-
Constructor Detail
-
SimpleJsonInteractionEvidenceWriter
public SimpleJsonInteractionEvidenceWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants)
Constructor for SimpleJsonInteractionEvidenceWriter.
-
SimpleJsonInteractionEvidenceWriter
public SimpleJsonInteractionEvidenceWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for SimpleJsonInteractionEvidenceWriter.
- Parameters:
writer
- aWriter
object.processedFeatures
- aMap
object.processedInteractors
- aMap
object.processedParticipants
- aMap
object.idGenerator
- aIncrementalIdGenerator
object.
-
-
Method Detail
-
writeOtherProperties
protected void writeOtherProperties(I object) throws IOException
writeOtherProperties.
- Overrides:
writeOtherProperties
in classSimpleJsonInteractionWriter<I extends InteractionEvidence>
- Parameters:
object
- a I object.- Throws:
IOException
- if any.
-
initialiseDefaultParticipantWriter
protected void initialiseDefaultParticipantWriter()
initialiseDefaultParticipantWriter.
- Overrides:
initialiseDefaultParticipantWriter
in classSimpleJsonInteractionWriter<I extends InteractionEvidence>
-
getExperimentWriter
public JsonElementWriter<InteractionEvidence> getExperimentWriter()
Getter for the field
experimentWriter
.- Returns:
- a
JsonElementWriter
object.
-
setExperimentWriter
public void setExperimentWriter(JsonElementWriter<InteractionEvidence> experimentWriter)
Setter for the field
experimentWriter
.- Parameters:
experimentWriter
- 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.
-
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.
-
writeAllIdentifiers
protected void writeAllIdentifiers(I object) throws IOException
writeAllIdentifiers.
- Overrides:
writeAllIdentifiers
in classSimpleJsonInteractionWriter<I extends InteractionEvidence>
- Parameters:
object
- a I object.- Throws:
IOException
- if any.
-
writeOtherIdentifiers
protected void writeOtherIdentifiers(I object) throws IOException
writeOtherIdentifiers.
- Overrides:
writeOtherIdentifiers
in classSimpleJsonInteractionWriter<I extends InteractionEvidence>
- Parameters:
object
- a I object.- Throws:
IOException
- if any.
-
hasIdentifiers
protected boolean hasIdentifiers(I object)
hasIdentifiers.
- Overrides:
hasIdentifiers
in classSimpleJsonInteractionWriter<I extends InteractionEvidence>
- Parameters:
object
- a I object.- Returns:
- a boolean.
-
-