T
- type to transformpublic class OWLObjectTransformer<T> extends Object
Constructor and Description |
---|
OWLObjectTransformer(com.google.common.base.Predicate<Object> predicate,
com.google.common.base.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(@Nonnull com.google.common.base.Predicate<Object> predicate, @Nonnull com.google.common.base.Function<T,T> transformer, @Nonnull OWLDataFactory df, @Nonnull 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 transformer@Nonnull public List<AxiomChangeData> change(@Nonnull OWLObject o)
o
- object to transform. Must be an axiom or an ontology for the change to be
meaningful.@Nonnull public List<OWLOntologyChange> change(@Nonnull OWLOntology ontology)
ontology
- ontology to transform.Copyright © 2020 The University of Manchester. All rights reserved.