public class DecimalLiteral extends SimpleLiteral
SimpleLiteral that stores an integer value using a BigDecimal object.| Modifier | Constructor and Description |
|---|---|
protected |
DecimalLiteral(BigDecimal value)
Creates an xsd:decimal literal with the specified value.
|
protected |
DecimalLiteral(BigDecimal value,
IRI datatype)
Creates a literal with the specified value and datatype.
|
protected |
DecimalLiteral(BigDecimal value,
XSD.Datatype datatype) |
| Modifier and Type | Method and Description |
|---|---|
byte |
byteValue() |
BigDecimal |
decimalValue() |
double |
doubleValue() |
float |
floatValue() |
BigInteger |
integerValue() |
int |
intValue() |
long |
longValue() |
short |
shortValue() |
booleanValue, calendarValue, equals, getDatatype, getLabel, getLanguage, getXsdDatatype, hashCode, setDatatype, setDatatype, setLabel, setLanguage, stringValue, toStringtemporalAccessorValue, temporalAmountValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitisBNode, isIRI, isResource, isTripleprotected DecimalLiteral(BigDecimal value)
protected DecimalLiteral(BigDecimal value, IRI datatype)
protected DecimalLiteral(BigDecimal value, XSD.Datatype datatype)
public byte byteValue()
byteValue in interface LiteralbyteValue in class SimpleLiteralpublic short shortValue()
shortValue in interface LiteralshortValue in class SimpleLiteralpublic int intValue()
intValue in interface LiteralintValue in class SimpleLiteralpublic long longValue()
longValue in interface LiterallongValue in class SimpleLiteralpublic float floatValue()
floatValue in interface LiteralfloatValue in class SimpleLiteralpublic double doubleValue()
doubleValue in interface LiteraldoubleValue in class SimpleLiteralpublic BigInteger integerValue()
integerValue in interface LiteralintegerValue in class SimpleLiteralpublic BigDecimal decimalValue()
decimalValue in interface LiteraldecimalValue in class SimpleLiteralCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.