Class 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 Detail

      • 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 write
        outputFile - : 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 type
        output - : 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 write
        fetcher - : the ontology term fetcher
        writer - : 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 write
        expansion - : the complex expansion
        fetcher - : the ontology term fetcher
        writer - : 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 write
        expansion - : the complex expansion
        writer - : 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 write
        output - : 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 type
        output - : 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 write
        fetcher - : the ontology term fetcher
        writer - : 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 write
        expansion - : the complex expansion
        fetcher - : the ontology term fetcher
        writer - : 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 write
        expansion - : the complex expansion
        writer - : 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 write
        writer - : 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 write
        fetcher - : the ontology term fetcher
        writer - : 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 write
        expansion - : the complex expansion
        fetcher - : the ontology term fetcher
        writer - : 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 write
        expansion - : the complex expansion
        writer - : 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 json
        writer - : the writer
        Returns:
        the options for a JSON interaction writer.