Protege 4.1.0

org.protege.editor.owl.model.hierarchy
Class AbstractOWLObjectHierarchyProvider<N extends org.semanticweb.owlapi.model.OWLObject>

java.lang.Object
  extended by org.protege.editor.owl.model.hierarchy.AbstractOWLObjectHierarchyProvider<N>
All Implemented Interfaces:
Disposable, OWLObjectHierarchyProvider<N>
Direct Known Subclasses:
AbstractOWLOntologyObjectHierarchyProvider, AbstractOWLPropertyHierarchyProvider, AbstractSuperClassHierarchyProvider, AssertedClassHierarchyProvider, IndividualsByInferredTypeHierarchyProvider, IndividualsByTypeHierarchyProvider, InferredOWLClassHierarchyProvider, OWLAnnotationPropertyHierarchyProvider, OWLOntologyHierarchyProvider

public abstract class AbstractOWLObjectHierarchyProvider<N extends org.semanticweb.owlapi.model.OWLObject>
extends Object
implements OWLObjectHierarchyProvider<N>

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

A basic partial implementation of a hierarchy provider, which handles listeners and event firing, and also provides basic implementations of method such as getAncestors, getDescendants etc. which use other core methods.


Constructor Summary
protected AbstractOWLObjectHierarchyProvider(org.semanticweb.owlapi.model.OWLOntologyManager owlOntologyManager)
           
 
Method Summary
 void addListener(OWLObjectHierarchyProviderListener<N> listener)
           
 void dispose()
           
protected  void fireHierarchyChanged()
           
protected  void fireNodeChanged(N node)
           
 Set<N> getAncestors(N object)
           
 Set<N> getDescendants(N object)
           
 org.semanticweb.owlapi.model.OWLOntologyManager getManager()
           
 Set<List<N>> getPathsToRoot(N obj)
          Gets the paths to the root class for the specified object.
 void removeListener(OWLObjectHierarchyProviderListener<N> listener)
           
protected  void setFireEvents(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.protege.editor.owl.model.hierarchy.OWLObjectHierarchyProvider
containsReference, getChildren, getEquivalents, getParents, getRoots, setOntologies
 

Constructor Detail

AbstractOWLObjectHierarchyProvider

protected AbstractOWLObjectHierarchyProvider(org.semanticweb.owlapi.model.OWLOntologyManager owlOntologyManager)
Method Detail

getManager

public org.semanticweb.owlapi.model.OWLOntologyManager getManager()

dispose

public void dispose()
Specified by:
dispose in interface Disposable
Specified by:
dispose in interface OWLObjectHierarchyProvider<N extends org.semanticweb.owlapi.model.OWLObject>

getAncestors

public Set<N> getAncestors(N object)
Specified by:
getAncestors in interface OWLObjectHierarchyProvider<N extends org.semanticweb.owlapi.model.OWLObject>

getDescendants

public Set<N> getDescendants(N object)
Specified by:
getDescendants in interface OWLObjectHierarchyProvider<N extends org.semanticweb.owlapi.model.OWLObject>

getPathsToRoot

public Set<List<N>> getPathsToRoot(N obj)
Gets the paths to the root class for the specified object.

Specified by:
getPathsToRoot in interface OWLObjectHierarchyProvider<N extends org.semanticweb.owlapi.model.OWLObject>
Returns:
A Set of Lists of Ns

setFireEvents

protected void setFireEvents(boolean b)

addListener

public void addListener(OWLObjectHierarchyProviderListener<N> listener)
Specified by:
addListener in interface OWLObjectHierarchyProvider<N extends org.semanticweb.owlapi.model.OWLObject>

removeListener

public void removeListener(OWLObjectHierarchyProviderListener<N> listener)
Specified by:
removeListener in interface OWLObjectHierarchyProvider<N extends org.semanticweb.owlapi.model.OWLObject>

fireNodeChanged

protected void fireNodeChanged(N node)

fireHierarchyChanged

protected void fireHierarchyChanged()

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