Package psidev.psi.mi.jami.json
Class MIJsonOptionFactory
- java.lang.Object
-
- psidev.psi.mi.jami.json.MIJsonOptionFactory
-
public class MIJsonOptionFactory extends Object
The factory to populate the map of options for the InteractionWriterFactory for json writers- Since:
03/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
getDefaultJsonOptions(File outputFile)
Create the options for a JSON interaction writer.Map<String,Object>
getDefaultJsonOptions(OutputStream output)
Create the options for a JSON interaction writer.Map<String,Object>
getDefaultJsonOptions(Writer writer)
Create the options for a JSON interaction writer.static MIJsonOptionFactory
getInstance()
Getter for the fieldinstance
.Map<String,Object>
getJsonOptions(Object output, InteractionCategory objectCategory, ComplexType complexType, MIJsonType type, OntologyTermFetcher ontologyFetcher, ComplexExpansionMethod complexExpansion)
Create the options for the JSON InteractionWriter.Map<String,Object>
getJsonOptions(MIJsonType type, File output)
Create the options for a JSON interaction writer.Map<String,Object>
getJsonOptions(MIJsonType type, OutputStream output)
Create the options for a JSON interaction writer.Map<String,Object>
getJsonOptions(MIJsonType type, Writer writer)
Create the options for a JSON interaction writer.Map<String,Object>
getJsonOptions(InteractionCategory objectCategory, File outputFile)
Create the options for a JSON interaction writer.Map<String,Object>
getJsonOptions(InteractionCategory objectCategory, OutputStream output)
Create the options for a JSON interaction writer.Map<String,Object>
getJsonOptions(InteractionCategory objectCategory, Writer writer)
Create the options for a JSON interaction writer.Map<String,Object>
getJsonOptions(InteractionCategory objectCategory, ComplexExpansionMethod expansion, File writer)
Create the options for a JSON interaction writer which will be by default of type MIJsonType.binary_only as a complex ecpasnion is provided.Map<String,Object>
getJsonOptions(InteractionCategory objectCategory, ComplexExpansionMethod expansion, OutputStream writer)
Create the options for a JSON interaction writer which will be by default of type MIJsonType.binary_only as a complex ecpasnion is provided.Map<String,Object>
getJsonOptions(InteractionCategory objectCategory, ComplexExpansionMethod expansion, Writer writer)
Create the options for a JSON interaction writer which will be by default of type MIJsonType.binary_only as a complex ecpasnion is provided.Map<String,Object>
getJsonOptions(InteractionCategory objectCategory, ComplexExpansionMethod expansion, OntologyTermFetcher fetcher, File writer)
Create the options for a JSON interaction writer which will be by default of type MIJsonType.binary_only as a complex ecpasnion is provided.Map<String,Object>
getJsonOptions(InteractionCategory objectCategory, ComplexExpansionMethod expansion, OntologyTermFetcher fetcher, OutputStream writer)
Create the options for a JSON interaction writer which will be by default of type MIJsonType.binary_only as a complex ecpasnion is provided.Map<String,Object>
getJsonOptions(InteractionCategory objectCategory, ComplexExpansionMethod expansion, OntologyTermFetcher fetcher, Writer writer)
Create the options for a JSON interaction writer which will be by default of type MIJsonType.binary_only as a complex ecpasnion is provided.Map<String,Object>
getJsonOptions(InteractionCategory objectCategory, OntologyTermFetcher fetcher, File writer)
Create the options for a JSON interaction writer.Map<String,Object>
getJsonOptions(InteractionCategory objectCategory, OntologyTermFetcher fetcher, OutputStream writer)
Create the options for a JSON interaction writer.Map<String,Object>
getJsonOptions(InteractionCategory objectCategory, OntologyTermFetcher fetcher, Writer writer)
Create the options for a JSON interaction writer.
-
-
-
Method Detail
-
getInstance
public static MIJsonOptionFactory getInstance()
Getter for the field
instance
.- Returns:
- a
MIJsonOptionFactory
object.
-
getDefaultJsonOptions
public Map<String,Object> getDefaultJsonOptions(File outputFile)
Create the options for a JSON interaction writer.- Parameters:
outputFile
- : the file where to write the interactions- Returns:
- the options for the JSON InteractionWriter
-
getJsonOptions
public Map<String,Object> getJsonOptions(InteractionCategory objectCategory, File outputFile)
Create the options for a JSON interaction writer.- Parameters:
objectCategory
- : the interaction object type to writeoutputFile
- : the file where to write the interactions- Returns:
- the options for the JSON InteractionWriter
-
getJsonOptions
public Map<String,Object> getJsonOptions(MIJsonType type, File output)
Create the options for a JSON interaction writer.- Parameters:
type
- : json typeoutput
- : the outputstream- Returns:
- the options for a JSON interaction writer.
-
getJsonOptions
public Map<String,Object> getJsonOptions(InteractionCategory objectCategory, OntologyTermFetcher fetcher, File writer)
Create the options for a JSON interaction writer.- Parameters:
objectCategory
- : the interaction object type to writefetcher
- : the ontology term fetcherwriter
- : the writer- Returns:
- the options for the JSON InteractionWriter
-
getJsonOptions
public Map<String,Object> getJsonOptions(InteractionCategory objectCategory, ComplexExpansionMethod expansion, OntologyTermFetcher fetcher, File writer)
Create the options for a JSON interaction writer which will be by default of type MIJsonType.binary_only as a complex ecpasnion is provided.- Parameters:
objectCategory
- : the interaction object type to writeexpansion
- : the complex expansionfetcher
- : the ontology term fetcherwriter
- : the writer- Returns:
- the options for the JSON InteractionWriter
-
getJsonOptions
public Map<String,Object> getJsonOptions(InteractionCategory objectCategory, ComplexExpansionMethod expansion, File writer)
Create the options for a JSON interaction writer which will be by default of type MIJsonType.binary_only as a complex ecpasnion is provided.- Parameters:
objectCategory
- : the interaction object type to writeexpansion
- : the complex expansionwriter
- : the writer- Returns:
- the options for the JSON InteractionWriter
-
getDefaultJsonOptions
public Map<String,Object> getDefaultJsonOptions(OutputStream output)
Create the options for a JSON interaction writer.- Parameters:
output
- : the output- Returns:
- the options for the JSON InteractionWriter
-
getJsonOptions
public Map<String,Object> getJsonOptions(InteractionCategory objectCategory, OutputStream output)
Create the options for a JSON interaction writer.- Parameters:
objectCategory
- : the interaction object type to writeoutput
- : the output- Returns:
- the options for the JSON InteractionWriter
-
getJsonOptions
public Map<String,Object> getJsonOptions(MIJsonType type, OutputStream output)
Create the options for a JSON interaction writer.- Parameters:
type
- : json typeoutput
- : the outputstream- Returns:
- the options for a JSON interaction writer.
-
getJsonOptions
public Map<String,Object> getJsonOptions(InteractionCategory objectCategory, OntologyTermFetcher fetcher, OutputStream writer)
Create the options for a JSON interaction writer.- Parameters:
objectCategory
- : the interaction object type to writefetcher
- : the ontology term fetcherwriter
- : the writer- Returns:
- the options for the JSON InteractionWriter
-
getJsonOptions
public Map<String,Object> getJsonOptions(InteractionCategory objectCategory, ComplexExpansionMethod expansion, OntologyTermFetcher fetcher, OutputStream writer)
Create the options for a JSON interaction writer which will be by default of type MIJsonType.binary_only as a complex ecpasnion is provided.- Parameters:
objectCategory
- : the interaction object type to writeexpansion
- : the complex expansionfetcher
- : the ontology term fetcherwriter
- : the writer- Returns:
- the options for the JSON InteractionWriter
-
getJsonOptions
public Map<String,Object> getJsonOptions(InteractionCategory objectCategory, ComplexExpansionMethod expansion, OutputStream writer)
Create the options for a JSON interaction writer which will be by default of type MIJsonType.binary_only as a complex ecpasnion is provided.- Parameters:
objectCategory
- : the interaction object type to writeexpansion
- : the complex expansionwriter
- : the writer- Returns:
- the options for the JSON InteractionWriter
-
getDefaultJsonOptions
public Map<String,Object> getDefaultJsonOptions(Writer writer)
Create the options for a JSON interaction writer.- Parameters:
writer
- : the writer- Returns:
- the options for the JSON InteractionWriter
-
getJsonOptions
public Map<String,Object> getJsonOptions(InteractionCategory objectCategory, Writer writer)
Create the options for a JSON interaction writer.- Parameters:
objectCategory
- : the interaction object type to writewriter
- : the writer- Returns:
- the options for the JSON InteractionWriter
-
getJsonOptions
public Map<String,Object> getJsonOptions(InteractionCategory objectCategory, OntologyTermFetcher fetcher, Writer writer)
Create the options for a JSON interaction writer.- Parameters:
objectCategory
- : the interaction object type to writefetcher
- : the ontology term fetcherwriter
- : the writer- Returns:
- the options for the JSON InteractionWriter
-
getJsonOptions
public Map<String,Object> getJsonOptions(InteractionCategory objectCategory, ComplexExpansionMethod expansion, OntologyTermFetcher fetcher, Writer writer)
Create the options for a JSON interaction writer which will be by default of type MIJsonType.binary_only as a complex ecpasnion is provided.- Parameters:
objectCategory
- : the interaction object type to writeexpansion
- : the complex expansionfetcher
- : the ontology term fetcherwriter
- : the writer- Returns:
- the options for the JSON InteractionWriter
-
getJsonOptions
public Map<String,Object> getJsonOptions(InteractionCategory objectCategory, ComplexExpansionMethod expansion, Writer writer)
Create the options for a JSON interaction writer which will be by default of type MIJsonType.binary_only as a complex ecpasnion is provided.- Parameters:
objectCategory
- : the interaction object type to writeexpansion
- : the complex expansionwriter
- : the writer- Returns:
- the options for the JSON InteractionWriter
-
getJsonOptions
public Map<String,Object> getJsonOptions(MIJsonType type, Writer writer)
Create the options for a JSON interaction writer.- Parameters:
type
- : type of jsonwriter
- : the writer- Returns:
- the options for a JSON interaction writer.
-
getJsonOptions
public Map<String,Object> getJsonOptions(Object output, InteractionCategory objectCategory, ComplexType complexType, MIJsonType type, OntologyTermFetcher ontologyFetcher, ComplexExpansionMethod complexExpansion)
Create the options for the JSON InteractionWriter.- Parameters:
output
- aObject
object.objectCategory
- : the interaction object type to writecomplexType
- : binary, n-ary, etctype
- : the MI jason type (n_ary_only or binary_only)ontologyFetcher
- : the ontology fetchercomplexExpansion
- aComplexExpansionMethod
object.- Returns:
- the options for the JSON InteractionWriter
-
-