Package psidev.psi.mi.jami.json.elements
Class SimpleJsonRangeWriter
- java.lang.Object
-
- psidev.psi.mi.jami.json.elements.SimpleJsonRangeWriter
-
- All Implemented Interfaces:
JsonElementWriter<Range>
,JsonRangeWriter
public class SimpleJsonRangeWriter extends Object implements JsonRangeWriter
Json writer for ranges- Since:
18/07/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description SimpleJsonRangeWriter(Writer writer, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants)
Constructor for SimpleJsonRangeWriter.SimpleJsonRangeWriter(Writer writer, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for SimpleJsonRangeWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IncrementalIdGenerator
getIdGenerator()
Getter for the fieldidGenerator
.void
setIdGenerator(IncrementalIdGenerator idGenerator)
Setter for the fieldidGenerator
.void
write(Range object)
write.void
write(Range object, Feature parent)
write.
-
-
-
Constructor Detail
-
SimpleJsonRangeWriter
public SimpleJsonRangeWriter(Writer writer, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants)
Constructor for SimpleJsonRangeWriter.
-
SimpleJsonRangeWriter
public SimpleJsonRangeWriter(Writer writer, Map<String,String> processedInteractors, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for SimpleJsonRangeWriter.
- Parameters:
writer
- aWriter
object.processedInteractors
- aMap
object.processedParticipants
- aMap
object.idGenerator
- aIncrementalIdGenerator
object.
-
-
Method Detail
-
write
public void write(Range object) throws IOException
write.
- Specified by:
write
in interfaceJsonElementWriter<Range>
- Parameters:
object
- aRange
object.- Throws:
IOException
- if any.
-
write
public void write(Range object, Feature parent) throws IOException
write.
- Specified by:
write
in interfaceJsonRangeWriter
- Parameters:
object
- aRange
object.parent
- aFeature
object.- Throws:
IOException
- if any.
-
getIdGenerator
public IncrementalIdGenerator getIdGenerator()
Getter for the field
idGenerator
.- Returns:
- a
IncrementalIdGenerator
object.
-
setIdGenerator
public void setIdGenerator(IncrementalIdGenerator idGenerator)
Setter for the field
idGenerator
.- Parameters:
idGenerator
- aIncrementalIdGenerator
object.
-
-