public class NumericLiteral extends SimpleLiteral
SimpleLiteral that stores a numeric value to avoid parsing.| Modifier | Constructor and Description |
|---|---|
protected |
NumericLiteral(byte number)
Creates an xsd:byte typed litral with the specified value.
|
protected |
NumericLiteral(double n)
Creates an xsd:double typed litral with the specified value.
|
protected |
NumericLiteral(float n)
Creates an xsd:float typed litral with the specified value.
|
protected |
NumericLiteral(int number)
Creates an xsd:int typed litral with the specified value.
|
protected |
NumericLiteral(long n)
Creates an xsd:long typed litral with the specified value.
|
protected |
NumericLiteral(Number number,
IRI datatype)
Creates a literal with the specified value and datatype.
|
protected |
NumericLiteral(Number number,
XSD.Datatype datatype) |
protected |
NumericLiteral(short number)
Creates an xsd:short typed litral with the specified value.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
byteValue() |
double |
doubleValue() |
float |
floatValue() |
int |
intValue() |
long |
longValue() |
short |
shortValue() |
booleanValue, calendarValue, decimalValue, equals, getDatatype, getLabel, getLanguage, getXsdDatatype, hashCode, integerValue, setDatatype, setDatatype, setLabel, setLanguage, stringValue, toStringtemporalAccessorValue, temporalAmountValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitisBNode, isIRI, isResource, isTripleprotected NumericLiteral(Number number, IRI datatype)
protected NumericLiteral(Number number, XSD.Datatype datatype)
protected NumericLiteral(byte number)
protected NumericLiteral(short number)
protected NumericLiteral(int number)
protected NumericLiteral(long n)
protected NumericLiteral(float n)
protected NumericLiteral(double n)
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 SimpleLiteralCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.