T
- type to transformpublic class OWLObjectTransformer<T> extends Object
Constructor and Description |
---|
OWLObjectTransformer(Predicate<Object> predicate,
Function<T,T> transformer,
OWLDataFactory df,
Class<T> witness) |
Modifier and Type | Method and Description |
---|---|
List<AxiomChangeData> |
change(OWLObject o)
Create the required changes for this transformation to be applied to the input.
|
List<OWLOntologyChange> |
change(OWLOntology ontology)
Create the required changes for this transformation to be applied to the input.
|
public OWLObjectTransformer(Predicate<Object> predicate, Function<T,T> transformer, OWLDataFactory df, Class<T> witness)
predicate
- the predicate to match the axioms to rebuildtransformer
- the transformer to applydf
- data factory to use for changeswitness
- witness class for the transformerpublic List<AxiomChangeData> change(OWLObject o)
o
- object to transform. Must be an axiom or an ontology for the change to be
meaningful.public List<OWLOntologyChange> change(OWLOntology ontology)
ontology
- ontology to transform.Copyright © 2020 The University of Manchester. All rights reserved.