public class BuilderSWRLRule extends BaseBuilder<SWRLRule,BuilderSWRLRule>
Constructor and Description |
---|
BuilderSWRLRule(OWLDataFactory df) |
BuilderSWRLRule(SWRLRule expected,
OWLDataFactory df)
builder initialized from an existing object
|
Modifier and Type | Method and Description |
---|---|
SWRLRule |
buildObject() |
BuilderSWRLRule |
withBody(Collection<SWRLAtom> arg) |
BuilderSWRLRule |
withBody(SWRLAtom arg) |
BuilderSWRLRule |
withHead(Collection<SWRLAtom> arg) |
BuilderSWRLRule |
withHead(SWRLAtom arg) |
applyChanges, withAnnotation, withAnnotations
public BuilderSWRLRule(@Nonnull SWRLRule expected, OWLDataFactory df)
expected
- the existing objectdf
- data factory@Inject public BuilderSWRLRule(OWLDataFactory df)
df
- data factory@Nonnull public BuilderSWRLRule withBody(SWRLAtom arg)
arg
- body atom@Nonnull public BuilderSWRLRule withHead(SWRLAtom arg)
arg
- head atom@Nonnull public BuilderSWRLRule withBody(@Nonnull Collection<SWRLAtom> arg)
arg
- body atom@Nonnull public BuilderSWRLRule withHead(@Nonnull Collection<SWRLAtom> arg)
arg
- head atompublic SWRLRule buildObject()
buildObject
in interface Builder<SWRLRule>
buildObject
in class BaseBuilder<SWRLRule,BuilderSWRLRule>
Copyright © 2020 The University of Manchester. All rights reserved.