Class SimpleJsonBinaryInteractionWriter<I extends BinaryInteraction>
- java.lang.Object
-
- psidev.psi.mi.jami.json.elements.SimpleJsonInteractionWriter<I>
-
- psidev.psi.mi.jami.json.binary.elements.SimpleJsonBinaryInteractionWriter<I>
-
- All Implemented Interfaces:
JsonElementWriter<I>
public class SimpleJsonBinaryInteractionWriter<I extends BinaryInteraction> extends SimpleJsonInteractionWriter<I>
Json writer for interactions- Since:
18/07/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description SimpleJsonBinaryInteractionWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants)Constructor for SimpleJsonBinaryInteractionWriter.SimpleJsonBinaryInteractionWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)Constructor for SimpleJsonBinaryInteractionWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]generateInteractionIdentifier(I object, Xref preferredIdentifier)generateInteractionIdentifier.voidsetExpansionId(Integer expansionId)Setter for the fieldexpansionId.voidwrite(I object)write.protected voidwriteOtherExpansionMethodProperties()writeOtherExpansionMethodProperties.-
Methods inherited from class psidev.psi.mi.jami.json.elements.SimpleJsonInteractionWriter
getCvWriter, getFetcher, getIdentifierWriter, getIdGenerator, getParticipantWriter, getProcessedFeatures, getProcessedInteractors, getProcessedParticipants, getWriter, hasIdentifiers, initialiseDefaultParticipantWriter, setCvWriter, setFetcher, setIdentifierWriter, setIdGenerator, setParticipantWriter, writeAllIdentifiers, writeExpansionMethod, writeOtherIdentifiers, writeOtherProperties
-
-
-
-
Constructor Detail
-
SimpleJsonBinaryInteractionWriter
public SimpleJsonBinaryInteractionWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants)
Constructor for SimpleJsonBinaryInteractionWriter.
-
SimpleJsonBinaryInteractionWriter
public SimpleJsonBinaryInteractionWriter(Writer writer, Map<Feature,Integer> processedFeatures, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for SimpleJsonBinaryInteractionWriter.
- Parameters:
writer- aWriterobject.processedFeatures- aMapobject.processedInteractors- aMapobject.processedParticipants- aMapobject.idGenerator- aIncrementalIdGeneratorobject.
-
-
Method Detail
-
setExpansionId
public void setExpansionId(Integer expansionId)
Setter for the field
expansionId.- Parameters:
expansionId- aIntegerobject.
-
writeOtherExpansionMethodProperties
protected void writeOtherExpansionMethodProperties() throws IOExceptionwriteOtherExpansionMethodProperties.
- Overrides:
writeOtherExpansionMethodPropertiesin classSimpleJsonInteractionWriter<I extends BinaryInteraction>- Throws:
IOException- if any.
-
generateInteractionIdentifier
protected String[] generateInteractionIdentifier(I object, Xref preferredIdentifier)
generateInteractionIdentifier.
- Overrides:
generateInteractionIdentifierin classSimpleJsonInteractionWriter<I extends BinaryInteraction>- Parameters:
object- a I object.preferredIdentifier- aXrefobject.- Returns:
- an array of
Stringobjects.
-
write
public void write(I object) throws IOException
write.
- Specified by:
writein interfaceJsonElementWriter<I extends BinaryInteraction>- Overrides:
writein classSimpleJsonInteractionWriter<I extends BinaryInteraction>- Parameters:
object- a I object.- Throws:
IOException- if any.
-
-