Class AbstractCollectorEx<E>

java.lang.Object
org.semanticweb.owlapi.util.AbstractCollectorEx<E>
Type Parameters:
E - type returned
All Implemented Interfaces:
OWLAnnotationAxiomVisitorEx<Collection<E>>, OWLAnnotationObjectVisitorEx<Collection<E>>, OWLAnnotationValueVisitorEx<Collection<E>>, OWLAnonymousIndividualVisitorExBase<Collection<E>>, OWLAxiomVisitorEx<Collection<E>>, OWLClassExpressionVisitorEx<Collection<E>>, OWLClassVisitorExBase<Collection<E>>, OWLDataEntityVisitorExBase<Collection<E>>, OWLDataVisitorEx<Collection<E>>, OWLEntityVisitorEx<Collection<E>>, OWLIndividualEntityVisitorExBase<Collection<E>>, OWLIndividualVisitorEx<Collection<E>>, OWLLiteralVisitorExBase<Collection<E>>, OWLLogicalAxiomVisitorEx<Collection<E>>, OWLNamedObjectVisitorEx<Collection<E>>, OWLObjectVisitorEx<Collection<E>>, OWLPropertyEntityVisitorExBase<Collection<E>>, OWLPropertyExpressionVisitorEx<Collection<E>>, OWLVisitorExBase<Collection<E>>, SWRLObjectVisitorEx<Collection<E>>, SWRLRuleVisitorExBase<Collection<E>>
Direct Known Subclasses:
AnonymousIndividualCollector, OWLClassExpressionCollector, OWLEntityCollector, OWLObjectComponentCollector

public abstract class AbstractCollectorEx<E> extends Object implements OWLObjectVisitorEx<Collection<E>>
A utility class that visits all components of classes and axioms; this base class allows subclasses to choose elements of interest and override handling of such elements.
Since:
5.0.0
  • Constructor Details

    • AbstractCollectorEx

      public AbstractCollectorEx(Collection<E> c)
      Parameters:
      c - collection to accumulate objects
  • Method Details

    • doDefault

      public Collection<E> doDefault(Object object)
      Description copied from interface: OWLVisitorExBase
      Gets the default return value for this visitor. By default, the default is null
      Specified by:
      doDefault in interface OWLVisitorExBase<E>
      Parameters:
      object - The object that was visited.
      Returns:
      The default return value
    • getObjects

      public Collection<E> getObjects()
      Returns:
      collected objects