|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Literal
An RDF literal consisting of a label (the value) and optionally a language tag or a datatype (but not both).
| Method Summary | |
|---|---|
boolean |
booleanValue()
Returns the boolean value of this literal. |
byte |
byteValue()
Returns the byte value of this literal. |
XMLGregorianCalendar |
calendarValue()
Returns the XMLGregorianCalendar value of this literal. |
BigDecimal |
decimalValue()
Returns the decimal value of this literal. |
double |
doubleValue()
Returns the double value of this literal. |
boolean |
equals(Object other)
Compares a literal object to another object. |
float |
floatValue()
Returns the float value of this literal. |
URI |
getDatatype()
Gets the datatype for this literal. |
String |
getLabel()
Gets the label of this literal. |
String |
getLanguage()
Gets the language tag for this literal, normalized to lower case. |
int |
hashCode()
Returns the literal's hash code. |
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. |
| Methods inherited from interface org.openrdf.model.Value |
|---|
stringValue |
| Method Detail |
|---|
String getLabel()
String getLanguage()
URI getDatatype()
boolean equals(Object other)
equals in class Objectother - The object to compare this literal to.
Literal and if their labels, language tags and datatypes
are equal.int hashCode()
hashCode in class Objectbyte byteValue()
NumberFormatException - If the literal cannot be represented by a byte.short shortValue()
NumberFormatException - If the literal's label cannot be represented by a short.int intValue()
NumberFormatException - If the literal's label cannot be represented by a int.long longValue()
NumberFormatException - If the literal's label cannot be represented by to a long.BigInteger integerValue()
NumberFormatException - If the literal's label is not a valid integer.BigDecimal decimalValue()
NumberFormatException - If the literal's label is not a valid decimal.float floatValue()
NumberFormatException - If the literal's label cannot be represented by a float.double doubleValue()
NumberFormatException - If the literal's label cannot be represented by a double.boolean booleanValue()
IllegalArgumentException - If the literal's label cannot be represented by a boolean.XMLGregorianCalendar calendarValue()
XMLGregorianCalendar value of this literal. A calendar
representation can be given for literals whose label conforms to the
syntax of the following XML
Schema datatypes: dateTime, time,
date, gYearMonth, gMonthDay,
gYear, gMonth or gDay.
IllegalArgumentException - If the literal cannot be represented by a
XMLGregorianCalendar.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||