public class UnsignedByteCast extends IntegerCastFunction
IntegerCastFunction that tries to cast its argument to an xsd:unsignedByte .| Constructor and Description |
|---|
UnsignedByteCast() |
| Modifier and Type | Method and Description |
|---|---|
protected 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 org.eclipse.rdf4j.model.IRI |
getXsdDatatype()
Get the specific XML Schema datatype which this function returns.
|
protected boolean |
isValidForDatatype(String lexicalValue)
Verifies that the supplied lexical value is valid for the datatype.
|
convert, createTypedLiteralevaluate, getURI, getXsdName, typeErrorprotected org.eclipse.rdf4j.model.IRI getXsdDatatype()
CastFunctiongetXsdDatatype in class CastFunctionprotected boolean isValidForDatatype(String lexicalValue)
CastFunctionisValidForDatatype in class CastFunctionlexicalValue - a lexical valueprotected Optional<org.eclipse.rdf4j.model.Literal> createTypedLiteral(org.eclipse.rdf4j.model.ValueFactory vf, BigInteger integerValue) throws ArithmeticException
IntegerCastFunctionLiteral with the specific datatype for the supplied BigInteger value.createTypedLiteral in class IntegerCastFunctionvf - 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.Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.