O - the returned typepublic class OWLObjectWalker<O extends OWLObject> extends 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(Set<O> objects) |
OWLObjectWalker(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.
|
List<OWLClassExpression> |
getClassExpressionPath()
Gets the current class expression path.
|
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 |
setAnnotation(OWLAnnotation node)
Allow the structure walker to set the current annotation
|
void |
setAxiom(OWLAxiom axiom)
Allow the structure walker to set the current axiom
|
void |
setStructureWalker(StructureWalker<O> walker) |
void |
walkStructure(OWLObjectVisitorEx<?> v) |
protected OWLOntology ontology
protected OWLObjectVisitorEx<?> visitor
protected final boolean visitDuplicates
protected OWLAxiom ax
protected OWLAnnotation annotation
public OWLObjectWalker(Set<O> objects)
objects - the set of objects to visitpublic void setStructureWalker(StructureWalker<O> walker)
walker - the structure walker to use with this object walkerpublic 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 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 List<OWLDataRange> getDataRangePath()
protected void pushDataRange(OWLDataRange dr)
dr - The data range to be pushed onto the pathprotected void popDataRange()
public void setAxiom(OWLAxiom axiom)
axiom - the axiom to setpublic void setAnnotation(OWLAnnotation node)
node - the annotation to setCopyright © 2014 The University of Manchester. All Rights Reserved.