Protege 4.1.0

org.protege.editor.owl.model.hierarchy
Interface OWLObjectHierarchyProvider<N extends org.semanticweb.owlapi.model.OWLObject>

All Superinterfaces:
Disposable
All Known Subinterfaces:
OWLOntologyObjectHierarchyProvider<N>
All Known Implementing Classes:
AbstractOWLObjectHierarchyProvider, AbstractOWLOntologyObjectHierarchyProvider, AbstractOWLPropertyHierarchyProvider, AbstractSuperClassHierarchyProvider, AssertedClassHierarchyProvider, AssertedSuperClassHierarchyProvider, IndividualsByInferredTypeHierarchyProvider, IndividualsByTypeHierarchyProvider, InferredObjectPropertyHierarchyProvider, InferredOWLClassHierarchyProvider, InferredSuperClassHierarchyProvider, OWLAnnotationPropertyHierarchyProvider, OWLDataPropertyHierarchyProvider, OWLObjectPropertyHierarchyProvider, OWLOntologyHierarchyProvider

public interface OWLObjectHierarchyProvider<N extends org.semanticweb.owlapi.model.OWLObject>
extends Disposable

Author: Matthew Horridge
The University Of Manchester
Medical Informatics Group
Date: 01-Jun-2006

matthew.horridge@cs.man.ac.uk
www.cs.man.ac.uk/~horridgm

An interface to an object that can provide a hierarchy of objects, for example a class, property or individual hierarchy.


Method Summary
 void addListener(OWLObjectHierarchyProviderListener<N> listener)
           
 boolean containsReference(N object)
           
 void dispose()
           
 Set<N> getAncestors(N object)
           
 Set<N> getChildren(N object)
           
 Set<N> getDescendants(N object)
           
 Set<N> getEquivalents(N object)
           
 Set<N> getParents(N object)
           
 Set<List<N>> getPathsToRoot(N object)
           
 Set<N> getRoots()
          Gets the objects that represent the roots of the hierarchy.
 void removeListener(OWLObjectHierarchyProviderListener<N> listener)
           
 void setOntologies(Set<org.semanticweb.owlapi.model.OWLOntology> ontologies)
          Sets the ontologies that this hierarchy provider should use in order to determine the hierarchy.
 

Method Detail

setOntologies

void setOntologies(Set<org.semanticweb.owlapi.model.OWLOntology> ontologies)
Sets the ontologies that this hierarchy provider should use in order to determine the hierarchy.


getRoots

Set<N> getRoots()
Gets the objects that represent the roots of the hierarchy.


getChildren

Set<N> getChildren(N object)

getDescendants

Set<N> getDescendants(N object)

getParents

Set<N> getParents(N object)

getAncestors

Set<N> getAncestors(N object)

getEquivalents

Set<N> getEquivalents(N object)

getPathsToRoot

Set<List<N>> getPathsToRoot(N object)

containsReference

boolean containsReference(N object)

addListener

void addListener(OWLObjectHierarchyProviderListener<N> listener)

removeListener

void removeListener(OWLObjectHierarchyProviderListener<N> listener)

dispose

void dispose()
Specified by:
dispose in interface Disposable

Protege 4.1.0

Submit a bug report or feature request

For further API reference and developer documentation, see Protege 4 Developer Documentation.

Copyright © 2010 Stanford Center for Biomedical Informatics Research