Package psidev.psi.mi.jami.json.elements
Class SimpleJsonModelledInteractionWriter<I extends ModelledInteraction>
- java.lang.Object
-
- psidev.psi.mi.jami.json.elements.SimpleJsonInteractionWriter<I>
-
- psidev.psi.mi.jami.json.elements.SimpleJsonModelledInteractionWriter<I>
-
- All Implemented Interfaces:
JsonElementWriter<I>
- Direct Known Subclasses:
SimpleJsonModelledBinaryInteractionWriter
public class SimpleJsonModelledInteractionWriter<I extends ModelledInteraction> extends SimpleJsonInteractionWriter<I>
Json writer for modelled interactions- Since:
18/07/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description SimpleJsonModelledInteractionWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants)
Constructor for SimpleJsonModelledInteractionWriter.SimpleJsonModelledInteractionWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for SimpleJsonModelledInteractionWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonElementWriter<Confidence>
getConfidenceWriter()
Getter for the fieldconfidenceWriter
.JsonElementWriter<Organism>
getOrganismWriter()
Getter for the fieldorganismWriter
.JsonElementWriter<Parameter>
getParameterWriter()
Getter for the fieldparameterWriter
.protected void
initialiseDefaultParticipantWriter()
initialiseDefaultParticipantWriter.void
setConfidenceWriter(JsonElementWriter<Confidence> confidenceWriter)
Setter for the fieldconfidenceWriter
.void
setOrganismWriter(JsonElementWriter<Organism> organismWriter)
Setter for the fieldorganismWriter
.void
setParameterWriter(JsonElementWriter<Parameter> parameterWriter)
Setter for the fieldparameterWriter
.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, hasIdentifiers, setCvWriter, setFetcher, setIdentifierWriter, setIdGenerator, setParticipantWriter, write, writeAllIdentifiers, writeExpansionMethod, writeOtherExpansionMethodProperties, writeOtherIdentifiers
-
-
-
-
Constructor Detail
-
SimpleJsonModelledInteractionWriter
public SimpleJsonModelledInteractionWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants)
Constructor for SimpleJsonModelledInteractionWriter.
-
SimpleJsonModelledInteractionWriter
public SimpleJsonModelledInteractionWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for SimpleJsonModelledInteractionWriter.
- 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 ModelledInteraction>
- Parameters:
object
- a I object.- Throws:
IOException
- if any.
-
initialiseDefaultParticipantWriter
protected void initialiseDefaultParticipantWriter()
initialiseDefaultParticipantWriter.
- Overrides:
initialiseDefaultParticipantWriter
in classSimpleJsonInteractionWriter<I extends ModelledInteraction>
-
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.
-
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.
-
-