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