Class DocumentClassifier


  • public class DocumentClassifier
    extends Object
    The Class DocumentClassifier.
    Author:
    Martin Scharm
    • Constructor Detail

      • DocumentClassifier

        public DocumentClassifier()
    • 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
      • getExceptions

        public List<Exception> getExceptions()
        Gets the exceptions.
        Returns:
        the exceptions
      • classify

        public int classify​(InputStream model,
                            URI baseUri)
        Classify.
        Parameters:
        model - the model
        baseUri - 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