T
- built typeB
- builder typepublic abstract class BaseBuilder<T extends OWLObject,B> extends Object implements Builder<T>
Modifier and Type | Method and Description |
---|---|
List<OWLOntologyChange> |
applyChanges(OWLOntology o)
If the builder is constructing an axiom, this method will add the axiom
and all needed changes to make the ontology fit in the expected profile;
the changes will be returned but there is no need to apply them, as they
have already been applied.
|
abstract T |
buildObject() |
B |
clearAnnotations()
Clear annotations.
|
B |
withAnnotation(OWLAnnotation arg) |
B |
withAnnotations(Collection<OWLAnnotation> arg) |
B |
withAnnotations(Stream<OWLAnnotation> arg) |
public B withAnnotation(OWLAnnotation arg)
arg
- annotationpublic B withAnnotations(Collection<OWLAnnotation> arg)
arg
- annotationspublic B withAnnotations(Stream<OWLAnnotation> arg)
arg
- annotationspublic B clearAnnotations()
public abstract T buildObject()
buildObject
in interface Builder<T extends OWLObject>
public List<OWLOntologyChange> applyChanges(OWLOntology o)
Builder
applyChanges
in interface Builder<T extends OWLObject>
o
- ontologyCopyright © 2020 The University of Manchester. All rights reserved.