public class NumericLiteralImpl extends LiteralImpl
LiteralImpl that stores a numeric value to avoid
parsing.| Constructor and Description |
|---|
NumericLiteralImpl(byte number)
Creates an xsd:byte typed litral with the specified value.
|
NumericLiteralImpl(double n)
Creates an xsd:double typed litral with the specified value.
|
NumericLiteralImpl(float n)
Creates an xsd:float typed litral with the specified value.
|
NumericLiteralImpl(int number)
Creates an xsd:int typed litral with the specified value.
|
NumericLiteralImpl(long n)
Creates an xsd:long typed litral with the specified value.
|
NumericLiteralImpl(Number number,
URI datatype)
Creates a literal with the specified value and datatype.
|
NumericLiteralImpl(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, hashCode, integerValue, setDatatype, setLabel, setLanguage, stringValue, toStringpublic NumericLiteralImpl(Number number, URI datatype)
public NumericLiteralImpl(byte number)
public NumericLiteralImpl(short number)
public NumericLiteralImpl(int number)
public NumericLiteralImpl(long n)
public NumericLiteralImpl(float n)
public NumericLiteralImpl(double n)
public byte byteValue()
LiteralbyteValue in interface LiteralbyteValue in class LiteralImplpublic short shortValue()
LiteralshortValue in interface LiteralshortValue in class LiteralImplpublic int intValue()
LiteralintValue in interface LiteralintValue in class LiteralImplpublic long longValue()
LiterallongValue in interface LiterallongValue in class LiteralImplpublic float floatValue()
LiteralfloatValue in interface LiteralfloatValue in class LiteralImplpublic double doubleValue()
LiteraldoubleValue in interface LiteraldoubleValue in class LiteralImplCopyright © 2001-2014 Aduna. All Rights Reserved.