Package de.unirostock.sems.bives.tools
Class DocumentClassifier
- java.lang.Object
-
- de.unirostock.sems.bives.tools.DocumentClassifier
-
public class DocumentClassifier extends Object
The Class DocumentClassifier.- Author:
- Martin Scharm
-
-
Constructor Summary
Constructors Constructor Description DocumentClassifier()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.json.simple.JSONArray
asJson(int type)
Human readable.int
classify(de.unirostock.sems.xmlutils.ds.TreeDocument model)
Classify.int
classify(File model)
Classify.int
classify(InputStream model, URI baseUri)
Classify.int
classify(String model)
Classify.de.unirostock.sems.bives.cellml.parser.CellMLDocument
getCellMlDocument()
Gets the cell ml document.List<Exception>
getExceptions()
Gets the exceptions.de.unirostock.sems.bives.sbml.parser.SBMLDocument
getSbmlDocument()
Gets the sbml document.de.unirostock.sems.xmlutils.ds.TreeDocument
getXmlDocument()
Gets the xml document.static String
humanReadable(int type)
Human readable.
-
-
-
Field Detail
-
UNKNOWN
public static final int UNKNOWN
The Constant UNKNOWN.- See Also:
- Constant Field Values
-
XML
public static final int XML
The Constant XML.- See Also:
- Constant Field Values
-
SBML
public static final int SBML
The Constant SBML.- See Also:
- Constant Field Values
-
CELLML
public static final int CELLML
The Constant CELLML.- See Also:
- Constant Field Values
-
-
Method Detail
-
getXmlDocument
public de.unirostock.sems.xmlutils.ds.TreeDocument getXmlDocument()
Gets the xml document.- Returns:
- the xml document
-
getCellMlDocument
public de.unirostock.sems.bives.cellml.parser.CellMLDocument getCellMlDocument()
Gets the cell ml document.- Returns:
- the cell ml document
-
getSbmlDocument
public de.unirostock.sems.bives.sbml.parser.SBMLDocument getSbmlDocument()
Gets the sbml document.- Returns:
- the sbml document
-
classify
public int classify(InputStream model, URI baseUri)
Classify.- Parameters:
model
- the modelbaseUri
- the base uri- Returns:
- the int
-
classify
public int classify(de.unirostock.sems.xmlutils.ds.TreeDocument model)
Classify.- Parameters:
model
- the model- Returns:
- the int
-
classify
public int classify(String model)
Classify.- Parameters:
model
- the model- Returns:
- the int
-
classify
public int classify(File model)
Classify.- Parameters:
model
- the model- Returns:
- the int
-
humanReadable
public static String humanReadable(int type)
Human readable.- Parameters:
type
- the type- Returns:
- the string
-
asJson
public static org.json.simple.JSONArray asJson(int type)
Human readable.- Parameters:
type
- the type- Returns:
- the string
-
-