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()
Returns the byte value of this literal.
|
BigDecimal |
decimalValue()
Returns the decimal value of this literal.
|
double |
doubleValue()
Returns the double value of this literal.
|
float |
floatValue()
Returns the float value of this literal.
|
BigInteger |
integerValue()
Returns the integer value of this literal.
|
int |
intValue()
Returns the int value of this literal.
|
long |
longValue()
Returns the long value of this literal.
|
short |
shortValue()
Returns the short value of this literal.
|
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()
LiteralbyteValue in interface LiteralbyteValue in class SimpleLiteralpublic short shortValue()
LiteralshortValue in interface LiteralshortValue in class SimpleLiteralpublic int intValue()
LiteralintValue in interface LiteralintValue in class SimpleLiteralpublic long longValue()
LiterallongValue in interface LiterallongValue in class SimpleLiteralpublic float floatValue()
LiteralfloatValue in interface LiteralfloatValue in class SimpleLiteralpublic double doubleValue()
LiteraldoubleValue in interface LiteraldoubleValue in class SimpleLiteralpublic BigInteger integerValue()
LiteralintegerValue in interface LiteralintegerValue in class SimpleLiteralpublic BigDecimal decimalValue()
LiteraldecimalValue in interface LiteraldecimalValue in class SimpleLiteralCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.