org.omwg.ontology
Interface OntologyElement

All Superinterfaces:
Entity
All Known Subinterfaces:
Axiom, Concept, Instance, Relation, RelationInstance

public interface OntologyElement
extends Entity

this is a helper super-interface for ontology elements: - axioms - concepts - instances - relations - relation instances

Version:
$Revision: 1.1 $ $Date: 2005/06/01 10:13:58 $
Author:
not attributable
See Also:
Ontology

Method Summary
 Ontology getOntology()
          Retrieve the ontology containing this entity
 void setOntology(Ontology ontology)
          Sets the ontology containing this entity Note that a call to setOntology() i.e.
 
Methods inherited from interface org.wsmo.common.Entity
addNFPValue, addNFPValue, getIdentifier, listNFPValues, listNFPValues, removeNFP, removeNFPValue, removeNFPValue
 

Method Detail

getOntology

Ontology getOntology()
                     throws SynchronisationException
Retrieve the ontology containing this entity

Throws:
SynchronisationException

setOntology

void setOntology(Ontology ontology)
                 throws SynchronisationException,
                        InvalidModelException
Sets the ontology containing this entity Note that a call to setOntology() i.e. adding an element to an ontology, should also invoke the respective Ontology::addXXX() method

Parameters:
ontology - the ontology
Throws:
SynchronisationException
InvalidModelException
See Also:
getOntology(), Ontology.addAxiom(Axiom axiom), Ontology.addConcept(Concept concept), Ontology.addInstance(Instance instance), Ontology.addRelation(Relation relation), Ontology.addRelationInstance(RelationInstance instance)