Class ModelDocument


  • public abstract class ModelDocument
    extends Object
    The Class ModelDocument representing a document encoding for a model.
    Author:
    Martin Scharm
    • Field Detail

      • doc

        protected de.unirostock.sems.xmlutils.ds.TreeDocument doc
        The document storing this model.
    • Constructor Detail

      • ModelDocument

        public ModelDocument​(de.unirostock.sems.xmlutils.ds.TreeDocument doc)
        Instantiates a new model document.
        Parameters:
        doc - the corresponding XML document
    • Method Detail

      • getBaseUri

        public URI getBaseUri()
        Gets the base URI. (used to resolve relative paths e.g. for imports)
        Returns:
        the base URI
      • getTreeDocument

        public de.unirostock.sems.xmlutils.ds.TreeDocument getTreeDocument()
        Gets the tree document.
        Returns:
        the tree document
      • flatten

        public abstract void flatten()
                              throws Exception
        Flatten this document.
        Throws:
        Exception - the exception