public class NegativeIntegerCast extends IntegerCastFunction
Function
that tries to cast its argument to an xsd:negativeInteger .Constructor and Description |
---|
NegativeIntegerCast() |
Modifier and Type | Method and Description |
---|---|
protected Optional<Literal> |
createTypedLiteral(ValueFactory vf,
BigInteger integerValue)
create a
Literal with the specific datatype for the supplied BigInteger value. |
protected 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, createTypedLiteral
evaluate, getURI, getXsdName, typeError
protected IRI getXsdDatatype()
CastFunction
getXsdDatatype
in class CastFunction
protected boolean isValidForDatatype(String lexicalValue)
CastFunction
isValidForDatatype
in class CastFunction
lexicalValue
- a lexical valueprotected Optional<Literal> createTypedLiteral(ValueFactory vf, BigInteger integerValue)
IntegerCastFunction
Literal
with the specific datatype for the supplied BigInteger
value.createTypedLiteral
in class IntegerCastFunction
vf
- the ValueFactory
to use for creating the Literal
integerValue
- the integer value to use for creating the Literal
Optional
literal value, which may be empty if the supplied integerValue can not be
successfully converted to the specific datatype.Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.