public abstract class IntegerCastFunction extends CastFunction
CastFunctions that cast their arguments to an xsd:integer or one of its derived
types.| Constructor and Description |
|---|
IntegerCastFunction() |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.rdf4j.model.Literal |
convert(org.eclipse.rdf4j.model.ValueFactory valueFactory,
org.eclipse.rdf4j.model.Value value)
Convert the supplied value to a literal of the function output datatype.
|
protected abstract Optional<org.eclipse.rdf4j.model.Literal> |
createTypedLiteral(org.eclipse.rdf4j.model.ValueFactory vf,
BigInteger integerValue)
create a
Literal with the specific datatype for the supplied BigInteger value. |
protected Optional<org.eclipse.rdf4j.model.Literal> |
createTypedLiteral(org.eclipse.rdf4j.model.ValueFactory vf,
boolean booleanValue)
create a
Literal with the specific datatype for the supplied boolean value. |
evaluate, getURI, getXsdDatatype, getXsdName, isValidForDatatype, typeErrorprotected org.eclipse.rdf4j.model.Literal convert(org.eclipse.rdf4j.model.ValueFactory valueFactory, org.eclipse.rdf4j.model.Value value) throws ValueExprEvaluationException
CastFunctionconvert in class CastFunctionvalueFactory - the valueFactory to usevalue - a value that is not a string-typed literal, and not a literal of the same datatype as the function
output datatype.ValueExprEvaluationException - if an error occurs in conversion.protected abstract Optional<org.eclipse.rdf4j.model.Literal> createTypedLiteral(org.eclipse.rdf4j.model.ValueFactory vf, BigInteger integerValue) throws ArithmeticException
Literal with the specific datatype for the supplied BigInteger value.vf - the ValueFactory to use for creating the LiteralintegerValue - the integer value to use for creating the LiteralOptional literal value, which may be empty if the supplied integerValue can not be
successfully converted to the specific datatype.ArithmeticException - if an error occurs when attempting to convert the supplied value to a value of the
specific datatype.protected Optional<org.eclipse.rdf4j.model.Literal> createTypedLiteral(org.eclipse.rdf4j.model.ValueFactory vf, boolean booleanValue)
Literal with the specific datatype for the supplied boolean value.vf - the ValueFactory to use for creating the LiteralbooleanValue - the boolean value to use for creating the LiteralOptional literal value, which may be empty if the supplied boolean value can not be
successfully converted to the specific datatype.Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.