Package org.eclipse.rdf4j.model.impl
Class CalendarLiteral
- java.lang.Object
-
- org.eclipse.rdf4j.model.base.AbstractLiteral
-
- org.eclipse.rdf4j.model.impl.SimpleLiteral
-
- org.eclipse.rdf4j.model.impl.CalendarLiteral
-
- All Implemented Interfaces:
Serializable,Literal,Value
public class CalendarLiteral extends SimpleLiteral
An extension ofSimpleLiteralthat stores a calendar value to avoid parsing.- Author:
- David Huynh, Arjohn Kampman
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCalendarLiteral(XMLGregorianCalendar calendar)Creates a literal for the specified calendar using a datatype appropriate for the value indicated byXMLGregorianCalendar.getXMLSchemaType().
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLGregorianCalendarcalendarValue()Returns theXMLGregorianCalendarvalue of this literal.-
Methods inherited from class org.eclipse.rdf4j.model.impl.SimpleLiteral
booleanValue, byteValue, decimalValue, doubleValue, equals, floatValue, getCoreDatatype, getDatatype, getLabel, getLanguage, getXsdDatatype, hashCode, integerValue, intValue, longValue, setDatatype, setDatatype, setDatatype, setDatatype, setLabel, setLanguage, shortValue, stringValue, toString
-
Methods inherited from class org.eclipse.rdf4j.model.base.AbstractLiteral
temporalAccessorValue, temporalAmountValue
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.model.Value
isBNode, isIRI, isResource, isTriple
-
-
-
-
Constructor Detail
-
CalendarLiteral
protected CalendarLiteral(XMLGregorianCalendar calendar)
Creates a literal for the specified calendar using a datatype appropriate for the value indicated byXMLGregorianCalendar.getXMLSchemaType().
-
-
Method Detail
-
calendarValue
public XMLGregorianCalendar calendarValue()
Description copied from interface:LiteralReturns theXMLGregorianCalendarvalue 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:
calendarValuein interfaceLiteral- Overrides:
calendarValuein classSimpleLiteral- Returns:
- The calendar value of the literal.
-
-