Package psidev.psi.mi.jami.json.nary
Class MIJsonModelledWriter
- java.lang.Object
-
- psidev.psi.mi.jami.json.nary.AbstractMIJsonWriter<ModelledInteraction>
-
- psidev.psi.mi.jami.json.nary.MIJsonModelledWriter
-
- All Implemented Interfaces:
InteractionWriter<ModelledInteraction>
public class MIJsonModelledWriter extends AbstractMIJsonWriter<ModelledInteraction>
Abstract JSON writer for interactions (n-ary json format)- Since:
03/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description MIJsonModelledWriter()
Constructor for MIJsonModelledWriter.MIJsonModelledWriter(File file, OntologyTermFetcher fetcher)
Constructor for MIJsonModelledWriter.MIJsonModelledWriter(OutputStream output, OntologyTermFetcher fetcher)
Constructor for MIJsonModelledWriter.MIJsonModelledWriter(Writer writer, OntologyTermFetcher fetcher)
Constructor for MIJsonModelledWriter.MIJsonModelledWriter(Writer writer, OntologyTermFetcher fetcher, Map<String,String> processedInteractors, Map<Feature,Integer> processedFeatures, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for MIJsonModelledWriter.MIJsonModelledWriter(Map<String,String> processedInteractors, Map<Feature,Integer> processedFeatures, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for MIJsonModelledWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initialiseInteractionWriter()
initialiseInteractionWriter.protected void
writeComplex(Complex complex)
writeComplex.-
Methods inherited from class psidev.psi.mi.jami.json.nary.AbstractMIJsonWriter
clear, close, end, flush, getFetcher, getIdGenerator, getInteractionWriter, getInteractorWriter, getProcessedFeatures, getProcessedInteractors, getProcessedParticipants, getWriter, initialiseContext, registerAndWriteInteractor, reset, setFetcher, setInteractionWriter, start, write, write, write, writeEnd, writeStart
-
-
-
-
Constructor Detail
-
MIJsonModelledWriter
public MIJsonModelledWriter()
Constructor for MIJsonModelledWriter.
-
MIJsonModelledWriter
public MIJsonModelledWriter(File file, OntologyTermFetcher fetcher) throws IOException
Constructor for MIJsonModelledWriter.
- Parameters:
file
- aFile
object.fetcher
- aOntologyTermFetcher
object.- Throws:
IOException
- if any.
-
MIJsonModelledWriter
public MIJsonModelledWriter(OutputStream output, OntologyTermFetcher fetcher)
Constructor for MIJsonModelledWriter.
- Parameters:
output
- aOutputStream
object.fetcher
- aOntologyTermFetcher
object.
-
MIJsonModelledWriter
public MIJsonModelledWriter(Writer writer, OntologyTermFetcher fetcher)
Constructor for MIJsonModelledWriter.
- Parameters:
writer
- aWriter
object.fetcher
- aOntologyTermFetcher
object.
-
MIJsonModelledWriter
public MIJsonModelledWriter(Writer writer, OntologyTermFetcher fetcher, Map<String,String> processedInteractors, Map<Feature,Integer> processedFeatures, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for MIJsonModelledWriter.
- Parameters:
writer
- aWriter
object.fetcher
- aOntologyTermFetcher
object.processedInteractors
- aMap
object.processedFeatures
- aMap
object.processedParticipants
- aMap
object.idGenerator
- aIncrementalIdGenerator
object.
-
MIJsonModelledWriter
public MIJsonModelledWriter(Map<String,String> processedInteractors, Map<Feature,Integer> processedFeatures, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for MIJsonModelledWriter.
- Parameters:
processedInteractors
- aMap
object.processedFeatures
- aMap
object.processedParticipants
- aMap
object.idGenerator
- aIncrementalIdGenerator
object.
-
-
Method Detail
-
writeComplex
protected void writeComplex(Complex complex)
writeComplex.
- Specified by:
writeComplex
in classAbstractMIJsonWriter<ModelledInteraction>
- Parameters:
complex
- aComplex
object.
-
initialiseInteractionWriter
protected void initialiseInteractionWriter()
initialiseInteractionWriter.
- Specified by:
initialiseInteractionWriter
in classAbstractMIJsonWriter<ModelledInteraction>
-
-