Package org.biojava.ontology
Interface OntologyFactory
-
public interface OntologyFactoryA factory for Ontology instances.- Author:
- Matthew Pocock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OntologycreateOntology(java.lang.String name, java.lang.String description)Creates a new Ontology
-
-
-
Method Detail
-
createOntology
Ontology createOntology(java.lang.String name, java.lang.String description) throws OntologyException
Creates a new Ontology- Parameters:
name- the name to give the ontologydescription- the description for the ontology- Returns:
- an Ontology
- Throws:
java.lang.NullPointerException- if either name or description are nullOntologyException- if the ontology could not be created
-
-