O
- the returned typepublic class OWLObjectWalker<O extends OWLObject>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected OWLAnnotation |
annotation |
protected OWLAxiom |
ax |
protected OWLOntology |
ontology |
protected boolean |
visitDuplicates |
protected OWLObjectVisitorEx<?> |
visitor |
Constructor and Description |
---|
OWLObjectWalker(java.util.Set<O> objects) |
OWLObjectWalker(java.util.Set<O> objects,
boolean visitDuplicates) |
Modifier and Type | Method and Description |
---|---|
OWLAnnotation |
getAnnotation()
Gets the last annotation to be visited.
|
OWLAxiom |
getAxiom()
Gets the last axiom to be visited.
|
java.util.List<OWLClassExpression> |
getClassExpressionPath()
Gets the current class expression path.
|
java.util.List<OWLDataRange> |
getDataRangePath()
Gets the current data range path.
|
OWLOntology |
getOntology()
Gets the last ontology to be visited.
|
boolean |
isFirstClassExpressionInPath(OWLClassExpression classExpression)
Determines if a particular class expression is the first (or root) class expression in the
current class expression path
|
protected void |
popClassExpression()
Pops a class expression from the class expression path.
|
protected void |
popDataRange()
Pops a data range from the data range expression path.
|
protected void |
pushClassExpression(OWLClassExpression ce)
Pushes a class expression onto the class expression path
|
protected void |
pushDataRange(OWLDataRange dr)
Pushes a data range on to the data range path
|
void |
walkStructure(OWLObjectVisitorEx<?> v) |
protected OWLOntology ontology
protected OWLObjectVisitorEx<?> visitor
protected final boolean visitDuplicates
protected OWLAxiom ax
protected OWLAnnotation annotation
public OWLObjectWalker(java.util.Set<O> objects)
objects
- the set of objects to visitpublic OWLObjectWalker(java.util.Set<O> objects, boolean visitDuplicates)
visitDuplicates
- true if duplicates should be visitedobjects
- the set of objects to visitpublic void walkStructure(OWLObjectVisitorEx<?> v)
v
- visitor to use over the objectspublic OWLOntology getOntology()
public OWLAxiom getAxiom()
null
if an axiom has not be visitedpublic OWLAnnotation getAnnotation()
null
)public java.util.List<OWLClassExpression> getClassExpressionPath()
public boolean isFirstClassExpressionInPath(OWLClassExpression classExpression)
classExpression
- The class expressiontrue
if the specified class expression is the first class expression
in the current class expression path, otherwise false
(false
if the
path is empty)protected void pushClassExpression(OWLClassExpression ce)
ce
- The class expression to be pushed onto the pathprotected void popClassExpression()
public java.util.List<OWLDataRange> getDataRangePath()
protected void pushDataRange(OWLDataRange dr)
dr
- The data range to be pushed onto the pathprotected void popDataRange()