All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.unirostock.sems.bives.ds.ModelDocument Maven / Gradle / Ivy

Go to download

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