org.openrdf.model.impl
Class CalendarLiteralImpl
java.lang.Object
org.openrdf.model.impl.LiteralImpl
org.openrdf.model.impl.CalendarLiteralImpl
- All Implemented Interfaces:
- Serializable, Literal, Value
public class CalendarLiteralImpl
- extends LiteralImpl
An extension of LiteralImpl that stores a calendar value to avoid
parsing.
- Author:
- David Huynh, Arjohn Kampman
- See Also:
- Serialized Form
| Methods inherited from class org.openrdf.model.impl.LiteralImpl |
booleanValue, byteValue, decimalValue, doubleValue, equals, floatValue, getDatatype, getLabel, getLanguage, hashCode, integerValue, intValue, longValue, setDatatype, setLabel, setLanguage, shortValue, stringValue, toString |
CalendarLiteralImpl
public CalendarLiteralImpl(XMLGregorianCalendar calendar)
- Creates a literal for the specified calendar using a datatype appropriate
for the value indicated by
XMLGregorianCalendar.getXMLSchemaType().
calendarValue
public XMLGregorianCalendar calendarValue()
- Description copied from interface:
Literal
- 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.
- Specified by:
calendarValue in interface Literal- Overrides:
calendarValue in class LiteralImpl
- Returns:
- The calendar value of the literal.
Copyright © 2001-2008 Aduna. All Rights Reserved.