de.unirostock.sems.bives.ds.ModelDocument Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of BiVeS-Core Show documentation
Show all versions of BiVeS-Core Show documentation
BiVeS - BioModel Version Control System
This package provides core functionality
The newest version!
/**
*
*/
package de.unirostock.sems.bives.ds;
import java.net.URI;
import de.unirostock.sems.xmlutils.ds.TreeDocument;
/**
* The Class ModelDocument representing a document encoding for a model.
*
* @author Martin Scharm
*/
public abstract class ModelDocument
{
/** The document storing this model. */
protected TreeDocument doc;
/**
* Instantiates a new model document.
*
* @param doc the corresponding XML document
*/
public ModelDocument (TreeDocument doc)
{
this.doc = doc;
}
/**
* Gets the base URI. (used to resolve relative paths e.g. for imports)
*
* @return the base URI
*/
public URI getBaseUri ()
{
return doc.getBaseUri ();
}
/**
* Gets the tree document.
*
* @return the tree document
*/
public TreeDocument getTreeDocument ()
{
return doc;
}
/**
* Flatten this document.
*
* @throws Exception the exception
*/
public abstract void flatten () throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy