Returns the boolean value of this literal.
The long value of the literal. throws: IllegalArgumentException - If the literal's label cannot be represented by a boolean.
Returns the
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.
The calendar value of the literal. throws: IllegalArgumentException - If the literal cannot be represented by aXMLGregorianCalendar.
Returns the decimal value of this literal.
The decimal value of the literal. throws: NumberFormatException - If the literal's label is not a valid decimal.
Returns the double value of this literal.
The double value of the literal. throws: NumberFormatException - If the literal's label cannot be represented by a double.
Compares a literal object to another object.
Parameters: other - The object to compare this literal to. true if the other object is an instance ofLiteral and if their labels, language tags and datatypesare equal.
Returns the float value of this literal.
The float value of the literal. throws: NumberFormatException - If the literal's label cannot be represented by a float.
Returns the int value of this literal.
The int value of the literal. throws: NumberFormatException - If the literal's label cannot be represented by a int.
Returns the integer value of this literal.
The integer value of the literal. throws: NumberFormatException - If the literal's label is not a valid integer.
Returns the long value of this literal.
The long value of the literal. throws: NumberFormatException - If the literal's label cannot be represented by to a long.
Returns the short value of this literal.
The short value of the literal. throws: NumberFormatException - If the literal's label cannot be represented by a short.