org.semanticweb.owl.model
Interface OWLEntityVisitor

All Known Implementing Classes:
OWLOntologyImpl.EntityAdder, OWLOntologyImpl.EntityRemover

public interface OWLEntityVisitor

A Visitor for OWL entities objects. See Design Patterns, Gamma et. al. p.331 for a detailed description of the Visitor pattern. If you wish to define operations over the data structure (e.g. providing some kind of 3rd party representation of an OWL ontology), then you should implement this interface accordingly. For each concrete class Concrete in the OWLEntity hierarchy, a function visitConcrete(Concrete) must be provided.

The expression can then be visited using the accept method.

Use of the Visitor architecture allows us to add application-specific functionality without "tainting" the data structure. Be aware, though, that if the concrete subclasses of OWLEntity change, then the implementors of this interface may need to change accordingly.

Version:
$Id: OWLEntityVisitor.java,v 1.1.1.1 2003/10/14 17:10:08 sean_bechhofer Exp $

Method Summary
 void visit(OWLAnnotationProperty entity)
           
 void visit(OWLClass entity)
           
 void visit(OWLDataProperty entity)
           
 void visit(OWLIndividual entity)
           
 void visit(OWLObjectProperty entity)
           
 

Method Detail

visit

public void visit(OWLDataProperty entity)
           throws OWLException
OWLException

visit

public void visit(OWLObjectProperty entity)
           throws OWLException
OWLException

visit

public void visit(OWLAnnotationProperty entity)
           throws OWLException
OWLException

visit

public void visit(OWLIndividual entity)
           throws OWLException
OWLException

visit

public void visit(OWLClass entity)
           throws OWLException
OWLException


WonderWeb