Class SimpleJsonBinaryInteractionEvidenceWriter
- java.lang.Object
-
- psidev.psi.mi.jami.json.elements.SimpleJsonInteractionWriter<I>
-
- psidev.psi.mi.jami.json.elements.SimpleJsonInteractionEvidenceWriter<BinaryInteractionEvidence>
-
- psidev.psi.mi.jami.json.binary.elements.SimpleJsonBinaryInteractionEvidenceWriter
-
- All Implemented Interfaces:
JsonElementWriter<BinaryInteractionEvidence>
public class SimpleJsonBinaryInteractionEvidenceWriter extends SimpleJsonInteractionEvidenceWriter<BinaryInteractionEvidence>
Json writer for interaction evidences- Since:
18/07/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description SimpleJsonBinaryInteractionEvidenceWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants)
Constructor for SimpleJsonBinaryInteractionEvidenceWriter.SimpleJsonBinaryInteractionEvidenceWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for SimpleJsonBinaryInteractionEvidenceWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]
generateInteractionIdentifier(BinaryInteractionEvidence object, Xref preferredIdentifier)
generateInteractionIdentifier.void
setExpansionId(Integer expansionId)
Setter for the fieldexpansionId
.void
write(BinaryInteractionEvidence object)
write.protected void
writeOtherExpansionMethodProperties()
writeOtherExpansionMethodProperties.-
Methods inherited from class psidev.psi.mi.jami.json.elements.SimpleJsonInteractionEvidenceWriter
getConfidenceWriter, getExperimentWriter, getParameterWriter, hasIdentifiers, initialiseDefaultParticipantWriter, setConfidenceWriter, setExperimentWriter, setParameterWriter, writeAllIdentifiers, writeOtherIdentifiers, writeOtherProperties
-
Methods inherited from class psidev.psi.mi.jami.json.elements.SimpleJsonInteractionWriter
getCvWriter, getFetcher, getIdentifierWriter, getIdGenerator, getParticipantWriter, getProcessedFeatures, getProcessedInteractors, getProcessedParticipants, getWriter, setCvWriter, setFetcher, setIdentifierWriter, setIdGenerator, setParticipantWriter, writeExpansionMethod
-
-
-
-
Constructor Detail
-
SimpleJsonBinaryInteractionEvidenceWriter
public SimpleJsonBinaryInteractionEvidenceWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants)
Constructor for SimpleJsonBinaryInteractionEvidenceWriter.
-
SimpleJsonBinaryInteractionEvidenceWriter
public SimpleJsonBinaryInteractionEvidenceWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for SimpleJsonBinaryInteractionEvidenceWriter.
- Parameters:
writer
- aWriter
object.processedFeatures
- aMap
object.processedInteractors
- aMap
object.processedParticipants
- aMap
object.idGenerator
- aIncrementalIdGenerator
object.
-
-
Method Detail
-
setExpansionId
public void setExpansionId(Integer expansionId)
Setter for the field
expansionId
.- Parameters:
expansionId
- aInteger
object.
-
writeOtherExpansionMethodProperties
protected void writeOtherExpansionMethodProperties() throws IOException
writeOtherExpansionMethodProperties.
- Overrides:
writeOtherExpansionMethodProperties
in classSimpleJsonInteractionWriter<BinaryInteractionEvidence>
- Throws:
IOException
- if any.
-
generateInteractionIdentifier
protected String[] generateInteractionIdentifier(BinaryInteractionEvidence object, Xref preferredIdentifier)
generateInteractionIdentifier.
- Overrides:
generateInteractionIdentifier
in classSimpleJsonInteractionWriter<BinaryInteractionEvidence>
- Parameters:
object
- a I object.preferredIdentifier
- aXref
object.- Returns:
- an array of
String
objects.
-
write
public void write(BinaryInteractionEvidence object) throws IOException
write.
- Specified by:
write
in interfaceJsonElementWriter<BinaryInteractionEvidence>
- Overrides:
write
in classSimpleJsonInteractionWriter<BinaryInteractionEvidence>
- Parameters:
object
- a I object.- Throws:
IOException
- if any.
-
-