public class SBMLValidator
extends java.lang.Object
usage: java org.sbml.jsbml.validator.SBMLValidator [-h] [-d opt1[,opt2,...]]
filename.xml
usage: java validateSBML [-h] [-d opt1[,opt2,...]] http://...
Modifier and Type | Class | Description |
---|---|---|
static class |
SBMLValidator.CHECK_CATEGORY |
Enumerates the different possible check categories
when performing the validation of an SBML document.
|
Constructor | Description |
---|---|
SBMLValidator() |
Modifier and Type | Method | Description |
---|---|---|
static SBMLErrorLog |
checkConsistency(java.lang.String xmlValidationString) |
Parses the XML
String returned by the libSBML online validator or web services. |
static SBMLErrorLog |
checkConsistency(java.lang.String fileName,
java.util.Map<java.lang.String,java.lang.String> parameters) |
Validates an SBML model using the
SBML.org online validator (http://sbml.org/validator/).
|
static void |
main(java.lang.String[] args) |
public static void main(java.lang.String[] args)
args
- public static SBMLErrorLog checkConsistency(java.lang.String fileName, java.util.Map<java.lang.String,java.lang.String> parameters)
You can control the consistency checks that are performed when
checkConsistency(String)
is called with the HashMap
of
parameters given.
It will fill the SBMLErrorLog
with SBMLError
s for each problem within this whole model.
If this method returns a non empty SBMLErrorLog
, the failures may be
due to warnings @em or errors. Callers should inspect the severity
flag in the individual SBMLError objects to determine the nature of the failures.
This method is called from SBMLDocument#checkConsistency()
. To know what
to set in the parameters map, you can have a look at SBMLDocument#setConsistencyChecks(CHECK_CATEGORY, boolean)
.
But the key should be one of the category in SBMLValidator.CHECK_CATEGORY
and the value should
be "true" or "false".
fileName
- a file nameparameters
- parameters for the libsbml checkConsistency()SBMLErrorLog
containing the list of errors.public static SBMLErrorLog checkConsistency(java.lang.String xmlValidationString)
String
returned by the libSBML online validator or web services.
It will fill the SBMLErrorLog
with SBMLError
s for each problem within this whole model.
If this method returns a non empty SBMLErrorLog
, the failures may be
due to warnings @em or errors. Callers should inspect the severity
flag in the individual SBMLError objects to determine the nature of the failures.
xmlValidationString
- an XML String
representing an SBML model.SBMLErrorLog
containing the list of errors.