Package psidev.psi.mi.jami.html
Class MIHtmlOptionFactory
- java.lang.Object
-
- psidev.psi.mi.jami.html.MIHtmlOptionFactory
-
public class MIHtmlOptionFactory extends Object
The factory to populate the map of options for the InteractionWriterFactory for html 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>getDefaultHtmlOptions(File outputFile)Create the options for a HTML interaction writer.Map<String,Object>getDefaultHtmlOptions(OutputStream output)Create the options for a HTML interaction writer.Map<String,Object>getDefaultHtmlOptions(Writer writer)Create the options for a Html interaction writer.Map<String,Object>getHtmlOptions(boolean writeHeader, File outputFile)Create the options for a HTML interaction writer.Map<String,Object>getHtmlOptions(boolean writeHeader, OutputStream output)Create the options for a HTML interaction writer.Map<String,Object>getHtmlOptions(boolean writeHeader, Writer writer)Create the options for a HTML interaction writer.Map<String,Object>getHtmlOptions(Object output, InteractionCategory objectCategory, boolean writeHeader)Create the options for the HTML InteractionWriter.Map<String,Object>getHtmlOptions(InteractionCategory objectCategory, File outputFile)Create the options for a HTML interaction writer.Map<String,Object>getHtmlOptions(InteractionCategory objectCategory, OutputStream output)Create the options for a HTML interaction writer.Map<String,Object>getHtmlOptions(InteractionCategory objectCategory, Writer writer)Create the options for a HTML interaction writer.static MIHtmlOptionFactorygetInstance()Getter for the fieldinstance.
-
-
-
Method Detail
-
getInstance
public static MIHtmlOptionFactory getInstance()
Getter for the field
instance.- Returns:
- a
MIHtmlOptionFactoryobject.
-
getDefaultHtmlOptions
public Map<String,Object> getDefaultHtmlOptions(File outputFile)
Create the options for a HTML interaction writer.- Parameters:
outputFile- : the file where to write the interactions- Returns:
- the options for the HTML InteractionWriter
-
getHtmlOptions
public Map<String,Object> getHtmlOptions(InteractionCategory objectCategory, File outputFile)
Create the options for a HTML interaction writer.- Parameters:
objectCategory- : the interaction object type to writeoutputFile- : the file where to write the interactions- Returns:
- the options for the HTML InteractionWriter
-
getHtmlOptions
public Map<String,Object> getHtmlOptions(boolean writeHeader, File outputFile)
Create the options for a HTML interaction writer.- Parameters:
writeHeader- : true if we want to write the headeroutputFile- : the file where to write the interactions- Returns:
- the options for a HTML interaction writer.
-
getDefaultHtmlOptions
public Map<String,Object> getDefaultHtmlOptions(OutputStream output)
Create the options for a HTML interaction writer.- Parameters:
output- : the output- Returns:
- the options for the HTML InteractionWriter
-
getHtmlOptions
public Map<String,Object> getHtmlOptions(InteractionCategory objectCategory, OutputStream output)
Create the options for a HTML interaction writer.- Parameters:
objectCategory- : the interaction object type to writeoutput- : the output- Returns:
- the options for the HTML InteractionWriter
-
getHtmlOptions
public Map<String,Object> getHtmlOptions(boolean writeHeader, OutputStream output)
Create the options for a HTML interaction writer.- Parameters:
writeHeader- : true if we want to write the headeroutput- : the outputstream- Returns:
- the options for a HTML interaction writer.
-
getDefaultHtmlOptions
public Map<String,Object> getDefaultHtmlOptions(Writer writer)
Create the options for a Html interaction writer.- Parameters:
writer- : the writer- Returns:
- the options for the Html InteractionWriter
-
getHtmlOptions
public Map<String,Object> getHtmlOptions(InteractionCategory objectCategory, Writer writer)
Create the options for a HTML interaction writer.- Parameters:
objectCategory- : the interaction object type to writewriter- : the writer- Returns:
- the options for the HTML InteractionWriter
-
getHtmlOptions
public Map<String,Object> getHtmlOptions(boolean writeHeader, Writer writer)
Create the options for a HTML interaction writer.- Parameters:
writeHeader- : true if we want to write the headerwriter- : the writer- Returns:
- the options for a HTML interaction writer.
-
getHtmlOptions
public Map<String,Object> getHtmlOptions(Object output, InteractionCategory objectCategory, boolean writeHeader)
Create the options for the HTML InteractionWriter.- Parameters:
output- aObjectobject.objectCategory- : the interaction object type to writewriteHeader- : true if we want to write the header/body- Returns:
- the options for the HTML InteractionWriter
-
-