Package de.unirostock.sems.bives
Class Executer
- java.lang.Object
-
- de.unirostock.sems.bives.Executer
-
public class Executer extends Object
The Class Executer.- Author:
- Martin Scharm
-
-
Field Summary
Fields Modifier and Type Field Description static StringREQ_CAstatic StringREQ_DEBUGstatic StringREQ_DEBUGGstatic StringREQ_FILESThe Constant REQ_FILES.static StringREQ_HELPstatic StringREQ_INC_ANNOstatic StringREQ_JSONstatic StringREQ_OUTstatic StringREQ_SEP_ANNOstatic StringREQ_WANTThe Constant REQ_WANT.static StringREQ_WANT_CELLMLThe Constant REQ_WANT_CELLML.static StringREQ_WANT_COMP_HIERARCHY_DOTThe Constant REQ_WANT_COMP_HIERARCHY_DOT.static StringREQ_WANT_COMP_HIERARCHY_GRAPHMLThe Constant REQ_WANT_COMP_HIERARCHY_GRAPHML.static StringREQ_WANT_COMP_HIERARCHY_JSONThe Constant REQ_WANT_COMP_HIERARCHY_JSON.static StringREQ_WANT_DIFFThe Constant REQ_WANT_DIFF.static StringREQ_WANT_DOCUMENTTYPEThe Constant REQ_WANT_DOCUMENTTYPE.static StringREQ_WANT_MATCHING_IDSstatic StringREQ_WANT_MERGEThe Constant REQ_WANT_MERGE.static StringREQ_WANT_METAThe Constant REQ_WANT_META.static StringREQ_WANT_NEGLECT_NAMESstatic StringREQ_WANT_REACTIONS_DOTThe Constant REQ_WANT_REACTIONS_DOT.static StringREQ_WANT_REACTIONS_DOT2static StringREQ_WANT_REACTIONS_GRAPHMLThe Constant REQ_WANT_REACTIONS_GRAPHML.static StringREQ_WANT_REACTIONS_GRAPHML2static StringREQ_WANT_REACTIONS_JSONThe Constant REQ_WANT_REACTIONS_JSON.static StringREQ_WANT_REACTIONS_JSON2static StringREQ_WANT_REACTIONS_SBGN_JSONThe Constant REQ_WANT_REACTIONS_SBGN_JSON.static StringREQ_WANT_REGULARThe Constant REQ_WANT_REGULAR.static StringREQ_WANT_REPORT_HTMLThe Constant REQ_WANT_REPORT_HTML.static StringREQ_WANT_REPORT_HTML_FPThe Constant REQ_WANT_REPORT_HTML_FP.static StringREQ_WANT_REPORT_MDThe Constant REQ_WANT_REPORT_MD.static StringREQ_WANT_REPORT_RSTThe Constant REQ_WANT_REPORT_RST.static StringREQ_WANT_SBMLThe Constant REQ_WANT_SBML.static StringREQ_WANT_SINGLE_COMP_HIERARCHY_DOTThe Constant REQ_WANT_SINGLE_COMP_HIERARCHY_DOT.static StringREQ_WANT_SINGLE_COMP_HIERARCHY_GRAPHMLThe Constant REQ_WANT_SINGLE_COMP_HIERARCHY_GRAPHML.static StringREQ_WANT_SINGLE_COMP_HIERARCHY_JSONThe Constant REQ_WANT_SINGLE_COMP_HIERARCHY_JSON.static StringREQ_WANT_SINGLE_FLATTENThe Constant REQ_WANT_SINGLE_FLATTEN.static StringREQ_WANT_SINGLE_REACTIONS_DOTThe Constant REQ_WANT_SINGLE_REACTIONS_DOT.static StringREQ_WANT_SINGLE_REACTIONS_DOT2static StringREQ_WANT_SINGLE_REACTIONS_GRAPHMLThe Constant REQ_WANT_SINGLE_REACTIONS_GRAPHML.static StringREQ_WANT_SINGLE_REACTIONS_GRAPHML2static StringREQ_WANT_SINGLE_REACTIONS_JSONThe Constant REQ_WANT_SINGLE_REACTIONS_JSON.static StringREQ_WANT_SINGLE_REACTIONS_JSON2static StringREQ_WANT_STRICT_NAMESstatic StringREQ_XMLstatic PatternXML_PATTERNPattern to distinguish xml files from URLs.
-
Constructor Summary
Constructors Constructor Description Executer()Instantiates a new executer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteCompare(String document1, String document2, org.json.simple.JSONObject toReturn, org.apache.commons.cli.CommandLine line, List<Exception> errors)Execute compare.voidexecuteSingle(String document, org.json.simple.JSONObject toReturn, org.apache.commons.cli.CommandLine line, List<Exception> errors)Execute single.org.apache.commons.cli.OptionsgetOptions()Get available (command-line) options.static StringhtmlPageEnd()Static string to close an HTML page.static StringhtmlPageStart()Static string to start an HTML page.static Stringresult(String s)Result.
-
-
-
Field Detail
-
XML_PATTERN
public static final Pattern XML_PATTERN
Pattern to distinguish xml files from URLs.
-
REQ_FILES
public static final String REQ_FILES
The Constant REQ_FILES.- See Also:
- Constant Field Values
-
REQ_WANT
public static final String REQ_WANT
The Constant REQ_WANT.- See Also:
- Constant Field Values
-
REQ_WANT_META
public static final String REQ_WANT_META
The Constant REQ_WANT_META.- See Also:
- Constant Field Values
-
REQ_WANT_DOCUMENTTYPE
public static final String REQ_WANT_DOCUMENTTYPE
The Constant REQ_WANT_DOCUMENTTYPE.- See Also:
- Constant Field Values
-
REQ_WANT_DIFF
public static final String REQ_WANT_DIFF
The Constant REQ_WANT_DIFF.- See Also:
- Constant Field Values
-
REQ_WANT_MATCHING_IDS
public static final String REQ_WANT_MATCHING_IDS
- See Also:
- Constant Field Values
-
REQ_WANT_NEGLECT_NAMES
public static final String REQ_WANT_NEGLECT_NAMES
- See Also:
- Constant Field Values
-
REQ_WANT_STRICT_NAMES
public static final String REQ_WANT_STRICT_NAMES
- See Also:
- Constant Field Values
-
REQ_WANT_MERGE
public static final String REQ_WANT_MERGE
The Constant REQ_WANT_MERGE.- See Also:
- Constant Field Values
-
REQ_WANT_REPORT_MD
public static final String REQ_WANT_REPORT_MD
The Constant REQ_WANT_REPORT_MD.- See Also:
- Constant Field Values
-
REQ_WANT_REPORT_RST
public static final String REQ_WANT_REPORT_RST
The Constant REQ_WANT_REPORT_RST.- See Also:
- Constant Field Values
-
REQ_WANT_REPORT_HTML
public static final String REQ_WANT_REPORT_HTML
The Constant REQ_WANT_REPORT_HTML.- See Also:
- Constant Field Values
-
REQ_WANT_REPORT_HTML_FP
public static final String REQ_WANT_REPORT_HTML_FP
The Constant REQ_WANT_REPORT_HTML_FP.- See Also:
- Constant Field Values
-
REQ_WANT_REACTIONS_GRAPHML
public static final String REQ_WANT_REACTIONS_GRAPHML
The Constant REQ_WANT_REACTIONS_GRAPHML.- See Also:
- Constant Field Values
-
REQ_WANT_REACTIONS_GRAPHML2
public static final String REQ_WANT_REACTIONS_GRAPHML2
- See Also:
- Constant Field Values
-
REQ_WANT_REACTIONS_DOT
public static final String REQ_WANT_REACTIONS_DOT
The Constant REQ_WANT_REACTIONS_DOT.- See Also:
- Constant Field Values
-
REQ_WANT_REACTIONS_DOT2
public static final String REQ_WANT_REACTIONS_DOT2
- See Also:
- Constant Field Values
-
REQ_WANT_REACTIONS_SBGN_JSON
public static final String REQ_WANT_REACTIONS_SBGN_JSON
The Constant REQ_WANT_REACTIONS_SBGN_JSON.- See Also:
- Constant Field Values
-
REQ_WANT_REACTIONS_JSON
public static final String REQ_WANT_REACTIONS_JSON
The Constant REQ_WANT_REACTIONS_JSON.- See Also:
- Constant Field Values
-
REQ_WANT_REACTIONS_JSON2
public static final String REQ_WANT_REACTIONS_JSON2
- See Also:
- Constant Field Values
-
REQ_WANT_COMP_HIERARCHY_GRAPHML
public static final String REQ_WANT_COMP_HIERARCHY_GRAPHML
The Constant REQ_WANT_COMP_HIERARCHY_GRAPHML.- See Also:
- Constant Field Values
-
REQ_WANT_COMP_HIERARCHY_DOT
public static final String REQ_WANT_COMP_HIERARCHY_DOT
The Constant REQ_WANT_COMP_HIERARCHY_DOT.- See Also:
- Constant Field Values
-
REQ_WANT_COMP_HIERARCHY_JSON
public static final String REQ_WANT_COMP_HIERARCHY_JSON
The Constant REQ_WANT_COMP_HIERARCHY_JSON.- See Also:
- Constant Field Values
-
REQ_WANT_SBML
public static final String REQ_WANT_SBML
The Constant REQ_WANT_SBML.- See Also:
- Constant Field Values
-
REQ_WANT_CELLML
public static final String REQ_WANT_CELLML
The Constant REQ_WANT_CELLML.- See Also:
- Constant Field Values
-
REQ_WANT_REGULAR
public static final String REQ_WANT_REGULAR
The Constant REQ_WANT_REGULAR.- See Also:
- Constant Field Values
-
REQ_WANT_SINGLE_REACTIONS_GRAPHML
public static final String REQ_WANT_SINGLE_REACTIONS_GRAPHML
The Constant REQ_WANT_SINGLE_REACTIONS_GRAPHML.- See Also:
- Constant Field Values
-
REQ_WANT_SINGLE_REACTIONS_GRAPHML2
public static final String REQ_WANT_SINGLE_REACTIONS_GRAPHML2
- See Also:
- Constant Field Values
-
REQ_WANT_SINGLE_REACTIONS_DOT
public static final String REQ_WANT_SINGLE_REACTIONS_DOT
The Constant REQ_WANT_SINGLE_REACTIONS_DOT.- See Also:
- Constant Field Values
-
REQ_WANT_SINGLE_REACTIONS_DOT2
public static final String REQ_WANT_SINGLE_REACTIONS_DOT2
- See Also:
- Constant Field Values
-
REQ_WANT_SINGLE_REACTIONS_JSON
public static final String REQ_WANT_SINGLE_REACTIONS_JSON
The Constant REQ_WANT_SINGLE_REACTIONS_JSON.- See Also:
- Constant Field Values
-
REQ_WANT_SINGLE_REACTIONS_JSON2
public static final String REQ_WANT_SINGLE_REACTIONS_JSON2
- See Also:
- Constant Field Values
-
REQ_WANT_SINGLE_COMP_HIERARCHY_GRAPHML
public static final String REQ_WANT_SINGLE_COMP_HIERARCHY_GRAPHML
The Constant REQ_WANT_SINGLE_COMP_HIERARCHY_GRAPHML.- See Also:
- Constant Field Values
-
REQ_WANT_SINGLE_COMP_HIERARCHY_DOT
public static final String REQ_WANT_SINGLE_COMP_HIERARCHY_DOT
The Constant REQ_WANT_SINGLE_COMP_HIERARCHY_DOT.- See Also:
- Constant Field Values
-
REQ_WANT_SINGLE_COMP_HIERARCHY_JSON
public static final String REQ_WANT_SINGLE_COMP_HIERARCHY_JSON
The Constant REQ_WANT_SINGLE_COMP_HIERARCHY_JSON.- See Also:
- Constant Field Values
-
REQ_WANT_SINGLE_FLATTEN
public static final String REQ_WANT_SINGLE_FLATTEN
The Constant REQ_WANT_SINGLE_FLATTEN.- See Also:
- Constant Field Values
-
REQ_DEBUG
public static final String REQ_DEBUG
- See Also:
- Constant Field Values
-
REQ_DEBUGG
public static final String REQ_DEBUGG
- See Also:
- Constant Field Values
-
REQ_XML
public static final String REQ_XML
- See Also:
- Constant Field Values
-
REQ_INC_ANNO
public static final String REQ_INC_ANNO
- See Also:
- Constant Field Values
-
REQ_SEP_ANNO
public static final String REQ_SEP_ANNO
- See Also:
- Constant Field Values
-
REQ_JSON
public static final String REQ_JSON
- See Also:
- Constant Field Values
-
REQ_CA
public static final String REQ_CA
- See Also:
- Constant Field Values
-
REQ_OUT
public static final String REQ_OUT
- See Also:
- Constant Field Values
-
REQ_HELP
public static final String REQ_HELP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOptions
public org.apache.commons.cli.Options getOptions()
Get available (command-line) options.- Returns:
- the options
-
executeSingle
public void executeSingle(String document, org.json.simple.JSONObject toReturn, org.apache.commons.cli.CommandLine line, List<Exception> errors) throws Exception
Execute single.- Parameters:
document- the documenttoReturn- the to returnline- the lineerrors- the errors- Throws:
Exception- the exception
-
executeCompare
public void executeCompare(String document1, String document2, org.json.simple.JSONObject toReturn, org.apache.commons.cli.CommandLine line, List<Exception> errors) throws Exception
Execute compare.- Parameters:
document1- the document1document2- the document2toReturn- the to returnline- the lineerrors- the errors- Throws:
Exception- the exception
-
htmlPageStart
public static String htmlPageStart()
Static string to start an HTML page.- Returns:
- the string
-
htmlPageEnd
public static String htmlPageEnd()
Static string to close an HTML page.- Returns:
- the string
-
-