O
- the returned typepublic class OWLObjectWalker<O extends OWLObject> extends Object
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.
|
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) |
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)public List<OWLDataRange> getDataRangePath()
public void setAxiom(OWLAxiom axiom)
axiom
- the axiom to setpublic void setAnnotation(OWLAnnotation node)
node
- the annotation to setCopyright © 2017 The University of Manchester. All Rights Reserved.