public class BuilderLiteral extends BaseBuilder<OWLLiteral,BuilderLiteral>
Constructor and Description |
---|
BuilderLiteral(OWLDataFactory df) |
BuilderLiteral(OWLLiteral expected,
OWLDataFactory df)
builder initialized from an existing object
|
Modifier and Type | Method and Description |
---|---|
OWLLiteral |
buildObject() |
BuilderLiteral |
withDatatype(OWL2Datatype arg) |
BuilderLiteral |
withDatatype(OWLDatatype arg) |
BuilderLiteral |
withLanguage(String arg) |
BuilderLiteral |
withLiteralForm(String arg) |
BuilderLiteral |
withValue(boolean arg) |
BuilderLiteral |
withValue(double arg) |
BuilderLiteral |
withValue(float arg) |
BuilderLiteral |
withValue(int arg) |
applyChanges, withAnnotation, withAnnotations
public BuilderLiteral(@Nonnull OWLLiteral expected, OWLDataFactory df)
expected
- the existing objectdf
- data factory@Inject public BuilderLiteral(OWLDataFactory df)
df
- data factory@Nonnull public BuilderLiteral withValue(int arg)
arg
- int value@Nonnull public BuilderLiteral withDatatype(@Nonnull OWL2Datatype arg)
arg
- datatype@Nonnull public BuilderLiteral withDatatype(OWLDatatype arg)
arg
- datatype@Nonnull public BuilderLiteral withValue(boolean arg)
arg
- boolean value@Nonnull public BuilderLiteral withValue(double arg)
arg
- double value@Nonnull public BuilderLiteral withValue(float arg)
arg
- float value@Nonnull public BuilderLiteral withLiteralForm(String arg)
arg
- literal form@Nonnull public BuilderLiteral withLanguage(String arg)
arg
- languagepublic OWLLiteral buildObject()
buildObject
in interface Builder<OWLLiteral>
buildObject
in class BaseBuilder<OWLLiteral,BuilderLiteral>
Copyright © 2020 The University of Manchester. All rights reserved.