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()
Returns the byte value of this literal.
|
double |
doubleValue()
Returns the double value of this literal.
|
float |
floatValue()
Returns the float 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, decimalValue, equals, getDatatype, getLabel, getLanguage, getXsdDatatype, hashCode, integerValue, setDatatype, setDatatype, setLabel, setLanguage, stringValue, toString
temporalAccessorValue, temporalAmountValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isBNode, isIRI, isResource, isTriple
protected 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()
Literal
byteValue
in interface Literal
byteValue
in class SimpleLiteral
public short shortValue()
Literal
shortValue
in interface Literal
shortValue
in class SimpleLiteral
public int intValue()
Literal
intValue
in interface Literal
intValue
in class SimpleLiteral
public long longValue()
Literal
longValue
in interface Literal
longValue
in class SimpleLiteral
public float floatValue()
Literal
floatValue
in interface Literal
floatValue
in class SimpleLiteral
public double doubleValue()
Literal
doubleValue
in interface Literal
doubleValue
in class SimpleLiteral
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.