O - the returned typepublic class OWLObjectWalker<O extends OWLObject> extends Object
| Constructor and Description |
|---|
OWLObjectWalker(Collection<O> objects) |
OWLObjectWalker(Collection<O> objects,
boolean walkDuplicates) |
OWLObjectWalker(Collection<O> objects,
boolean visitDuplicates,
AnnotationWalkingControl walkFlag) |
OWLObjectWalker(java.util.stream.Stream<O> objects) |
OWLObjectWalker(java.util.stream.Stream<O> objects,
boolean walkDuplicates) |
OWLObjectWalker(java.util.stream.Stream<O> objects,
boolean walkDuplicates,
AnnotationWalkingControl walkFlag) |
| 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(OWLObjectVisitor v) |
void |
walkStructure(OWLObjectVisitorEx<?> v) |
public OWLObjectWalker(Collection<O> objects)
objects - objects to visitpublic OWLObjectWalker(java.util.stream.Stream<O> objects)
objects - objects to visitpublic OWLObjectWalker(Collection<O> objects, boolean walkDuplicates)
walkDuplicates - true if duplicates should be visitedobjects - objects to visitpublic OWLObjectWalker(java.util.stream.Stream<O> objects, boolean walkDuplicates)
walkDuplicates - true if duplicates should be visitedobjects - objects to visitpublic OWLObjectWalker(java.util.stream.Stream<O> objects, boolean walkDuplicates, AnnotationWalkingControl walkFlag)
walkDuplicates - true if duplicates should be visitedobjects - objects to visitwalkFlag - control which annotations to visitpublic OWLObjectWalker(Collection<O> objects, boolean visitDuplicates, AnnotationWalkingControl walkFlag)
visitDuplicates - true if duplicates should be visitedobjects - the set of objects to visitwalkFlag - control which annotations 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 void walkStructure(OWLObjectVisitor v)
v - visitor to use over the objects@Nullable public OWLOntology getOntology()
@Nullable public OWLAxiom getAxiom()
null if an axiom has not
be visited@Nullable public 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(@Nullable OWLAxiom axiom)
axiom - the axiom to setpublic void setAnnotation(OWLAnnotation node)
node - the annotation to setCopyright © 2017 The University of Manchester. All Rights Reserved.