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 booleanhasIdentifiers(I object)hasIdentifiers.protected voidinitialiseDefaultParticipantWriter()initialiseDefaultParticipantWriter.voidsetConfidenceWriter(JsonElementWriter<Confidence> confidenceWriter)Setter for the fieldconfidenceWriter.voidsetExperimentWriter(JsonElementWriter<InteractionEvidence> experimentWriter)Setter for the fieldexperimentWriter.voidsetParameterWriter(JsonElementWriter<Parameter> parameterWriter)Setter for the fieldparameterWriter.protected voidwriteAllIdentifiers(I object)writeAllIdentifiers.protected voidwriteOtherIdentifiers(I object)writeOtherIdentifiers.protected voidwriteOtherProperties(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- aWriterobject.processedFeatures- aMapobject.processedInteractors- aMapobject.processedParticipants- aMapobject.idGenerator- aIncrementalIdGeneratorobject.
-
-
Method Detail
-
writeOtherProperties
protected void writeOtherProperties(I object) throws IOException
writeOtherProperties.
- Overrides:
writeOtherPropertiesin classSimpleJsonInteractionWriter<I extends InteractionEvidence>- Parameters:
object- a I object.- Throws:
IOException- if any.
-
initialiseDefaultParticipantWriter
protected void initialiseDefaultParticipantWriter()
initialiseDefaultParticipantWriter.
- Overrides:
initialiseDefaultParticipantWriterin classSimpleJsonInteractionWriter<I extends InteractionEvidence>
-
getExperimentWriter
public JsonElementWriter<InteractionEvidence> getExperimentWriter()
Getter for the field
experimentWriter.- Returns:
- a
JsonElementWriterobject.
-
setExperimentWriter
public void setExperimentWriter(JsonElementWriter<InteractionEvidence> experimentWriter)
Setter for the field
experimentWriter.- Parameters:
experimentWriter- aJsonElementWriterobject.
-
getConfidenceWriter
public JsonElementWriter<Confidence> getConfidenceWriter()
Getter for the field
confidenceWriter.- Returns:
- a
JsonElementWriterobject.
-
setConfidenceWriter
public void setConfidenceWriter(JsonElementWriter<Confidence> confidenceWriter)
Setter for the field
confidenceWriter.- Parameters:
confidenceWriter- aJsonElementWriterobject.
-
getParameterWriter
public JsonElementWriter<Parameter> getParameterWriter()
Getter for the field
parameterWriter.- Returns:
- a
JsonElementWriterobject.
-
setParameterWriter
public void setParameterWriter(JsonElementWriter<Parameter> parameterWriter)
Setter for the field
parameterWriter.- Parameters:
parameterWriter- aJsonElementWriterobject.
-
writeAllIdentifiers
protected void writeAllIdentifiers(I object) throws IOException
writeAllIdentifiers.
- Overrides:
writeAllIdentifiersin classSimpleJsonInteractionWriter<I extends InteractionEvidence>- Parameters:
object- a I object.- Throws:
IOException- if any.
-
writeOtherIdentifiers
protected void writeOtherIdentifiers(I object) throws IOException
writeOtherIdentifiers.
- Overrides:
writeOtherIdentifiersin classSimpleJsonInteractionWriter<I extends InteractionEvidence>- Parameters:
object- a I object.- Throws:
IOException- if any.
-
hasIdentifiers
protected boolean hasIdentifiers(I object)
hasIdentifiers.
- Overrides:
hasIdentifiersin classSimpleJsonInteractionWriter<I extends InteractionEvidence>- Parameters:
object- a I object.- Returns:
- a boolean.
-
-