public class Executer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Executer.Option
The Class Option.
|
Modifier and Type | Field and Description |
---|---|
static String |
REQ_FILES
The Constant REQ_FILES.
|
static String |
REQ_WANT
The Constant REQ_WANT.
|
static String |
REQ_WANT_CELLML
The Constant REQ_WANT_CELLML.
|
static String |
REQ_WANT_COMP_HIERARCHY_DOT
The Constant REQ_WANT_COMP_HIERARCHY_DOT.
|
static String |
REQ_WANT_COMP_HIERARCHY_GRAPHML
The Constant REQ_WANT_COMP_HIERARCHY_GRAPHML.
|
static String |
REQ_WANT_COMP_HIERARCHY_JSON
The Constant REQ_WANT_COMP_HIERARCHY_JSON.
|
static String |
REQ_WANT_DIFF
The Constant REQ_WANT_DIFF.
|
static String |
REQ_WANT_DOCUMENTTYPE
The Constant REQ_WANT_DOCUMENTTYPE.
|
static String |
REQ_WANT_META
The Constant REQ_WANT_META.
|
static String |
REQ_WANT_REACTIONS_DOT
The Constant REQ_WANT_REACTIONS_DOT.
|
static String |
REQ_WANT_REACTIONS_GRAPHML
The Constant REQ_WANT_REACTIONS_GRAPHML.
|
static String |
REQ_WANT_REACTIONS_JSON
The Constant REQ_WANT_REACTIONS_JSON.
|
static String |
REQ_WANT_REGULAR
The Constant REQ_WANT_REGULAR.
|
static String |
REQ_WANT_REPORT_HTML
The Constant REQ_WANT_REPORT_HTML.
|
static String |
REQ_WANT_REPORT_MD
The Constant REQ_WANT_REPORT_MD.
|
static String |
REQ_WANT_REPORT_RST
The Constant REQ_WANT_REPORT_RST.
|
static String |
REQ_WANT_SBML
The Constant REQ_WANT_SBML.
|
static String |
REQ_WANT_SINGLE_COMP_HIERARCHY_DOT
The Constant REQ_WANT_SINGLE_COMP_HIERARCHY_DOT.
|
static String |
REQ_WANT_SINGLE_COMP_HIERARCHY_GRAPHML
The Constant REQ_WANT_SINGLE_COMP_HIERARCHY_GRAPHML.
|
static String |
REQ_WANT_SINGLE_COMP_HIERARCHY_JSON
The Constant REQ_WANT_SINGLE_COMP_HIERARCHY_JSON.
|
static String |
REQ_WANT_SINGLE_FLATTEN
The Constant REQ_WANT_SINGLE_FLATTEN.
|
static String |
REQ_WANT_SINGLE_REACTIONS_DOT
The Constant REQ_WANT_SINGLE_REACTIONS_DOT.
|
static String |
REQ_WANT_SINGLE_REACTIONS_GRAPHML
The Constant REQ_WANT_SINGLE_REACTIONS_GRAPHML.
|
static String |
REQ_WANT_SINGLE_REACTIONS_JSON
The Constant REQ_WANT_SINGLE_REACTIONS_JSON.
|
static int |
WANT_CELLML
The Constant WANT_CELLML.
|
static int |
WANT_COMP_HIERARCHY_DOT
The Constant WANT_COMP_HIERARCHY_DOT.
|
static int |
WANT_COMP_HIERARCHY_GRAPHML
The Constant WANT_COMP_HIERARCHY_GRAPHML.
|
static int |
WANT_COMP_HIERARCHY_JSON
The Constant WANT_COMP_HIERARCHY_JSON.
|
static int |
WANT_DIFF
The Constant WANT_DIFF.
|
static int |
WANT_DOCUMENTTYPE
The Constant WANT_DOCUMENTTYPE.
|
static int |
WANT_META
The Constant WANT_META.
|
static int |
WANT_REACTION_DOT
The Constant WANT_REACTION_DOT.
|
static int |
WANT_REACTION_GRAPHML
The Constant WANT_REACTION_GRAPHML.
|
static int |
WANT_REACTION_JSON
The Constant WANT_REACTION_JSON.
|
static int |
WANT_REGULAR
The Constant WANT_REGULAR.
|
static int |
WANT_REPORT_HTML
The Constant WANT_REPORT_HTML.
|
static int |
WANT_REPORT_MD
The Constant WANT_REPORT_MD.
|
static int |
WANT_REPORT_RST
The Constant WANT_REPORT_RST.
|
static int |
WANT_SBML
The Constant WANT_SBML.
|
static int |
WANT_SINGLE_COMP_HIERARCHY_DOT
The Constant WANT_SINGLE_COMP_HIERARCHY_DOT.
|
static int |
WANT_SINGLE_COMP_HIERARCHY_GRAPHML
The Constant WANT_SINGLE_COMP_HIERARCHY_GRAPHML.
|
static int |
WANT_SINGLE_COMP_HIERARCHY_JSON
The Constant WANT_SINGLE_COMP_HIERARCHY_JSON.
|
static int |
WANT_SINGLE_FLATTEN
The Constant WANT_SINGLE_FLATTEN.
|
static int |
WANT_SINGLE_REACTION_DOT
The Constant WANT_SINGLE_REACTION_DOT.
|
static int |
WANT_SINGLE_REACTION_GRAPHML
The Constant WANT_SINGLE_REACTION_GRAPHML.
|
static int |
WANT_SINGLE_REACTION_JSON
The Constant WANT_SINGLE_REACTION_JSON.
|
static Pattern |
XML_PATTERN
Pattern to distinguish xml files from URLs.
|
Constructor and Description |
---|
Executer()
Instantiates a new executer.
|
Modifier and Type | Method and Description |
---|---|
void |
executeCompare(String document1,
String document2,
HashMap<String,String> toReturn,
int want,
List<Exception> errors)
Execute compare.
|
void |
executeSingle(String document,
HashMap<String,String> toReturn,
int want,
List<Exception> errors)
Execute single.
|
Executer.Option |
get(String key)
Gets the.
|
HashMap<String,Executer.Option> |
getAddOptions()
Gets the adds the options.
|
HashMap<String,Executer.Option> |
getOptions()
Gets the options.
|
static String |
result(String s)
Result.
|
public static final Pattern XML_PATTERN
public static final int WANT_DIFF
public static final int WANT_DOCUMENTTYPE
public static final int WANT_META
public static final int WANT_REPORT_MD
public static final int WANT_REPORT_HTML
public static final int WANT_REACTION_GRAPHML
public static final int WANT_REACTION_DOT
public static final int WANT_COMP_HIERARCHY_GRAPHML
public static final int WANT_COMP_HIERARCHY_DOT
public static final int WANT_REPORT_RST
public static final int WANT_COMP_HIERARCHY_JSON
public static final int WANT_REACTION_JSON
public static final int WANT_SBML
public static final int WANT_CELLML
public static final int WANT_REGULAR
public static final int WANT_SINGLE_REACTION_GRAPHML
public static final int WANT_SINGLE_REACTION_DOT
public static final int WANT_SINGLE_COMP_HIERARCHY_GRAPHML
public static final int WANT_SINGLE_COMP_HIERARCHY_DOT
public static final int WANT_SINGLE_COMP_HIERARCHY_JSON
public static final int WANT_SINGLE_REACTION_JSON
public static final int WANT_SINGLE_FLATTEN
public static final String REQ_FILES
public static final String REQ_WANT
public static final String REQ_WANT_META
public static final String REQ_WANT_DOCUMENTTYPE
public static final String REQ_WANT_DIFF
public static final String REQ_WANT_REPORT_MD
public static final String REQ_WANT_REPORT_RST
public static final String REQ_WANT_REPORT_HTML
public static final String REQ_WANT_REACTIONS_GRAPHML
public static final String REQ_WANT_REACTIONS_DOT
public static final String REQ_WANT_REACTIONS_JSON
public static final String REQ_WANT_COMP_HIERARCHY_GRAPHML
public static final String REQ_WANT_COMP_HIERARCHY_DOT
public static final String REQ_WANT_COMP_HIERARCHY_JSON
public static final String REQ_WANT_SBML
public static final String REQ_WANT_CELLML
public static final String REQ_WANT_REGULAR
public static final String REQ_WANT_SINGLE_REACTIONS_GRAPHML
public static final String REQ_WANT_SINGLE_REACTIONS_DOT
public static final String REQ_WANT_SINGLE_REACTIONS_JSON
public static final String REQ_WANT_SINGLE_COMP_HIERARCHY_GRAPHML
public static final String REQ_WANT_SINGLE_COMP_HIERARCHY_DOT
public static final String REQ_WANT_SINGLE_COMP_HIERARCHY_JSON
public static final String REQ_WANT_SINGLE_FLATTEN
public HashMap<String,Executer.Option> getOptions()
public HashMap<String,Executer.Option> getAddOptions()
public Executer.Option get(String key)
key
- the keypublic void executeSingle(String document, HashMap<String,String> toReturn, int want, List<Exception> errors) throws Exception
document
- the documenttoReturn
- the to returnwant
- the wanterrors
- the errorsException
- the exceptionpublic void executeCompare(String document1, String document2, HashMap<String,String> toReturn, int want, List<Exception> errors) throws Exception
document1
- the document1document2
- the document2toReturn
- the to returnwant
- the wanterrors
- the errorsException
- the exceptionCopyright © 2015 SEMS project @ University of Rostock. All rights reserved.