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
An extension of
SimpleLiteral that stores a calendar value to avoid parsing.- Author:
- David Huynh, Arjohn Kampman
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface Value
Value.Type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCalendarLiteral(XMLGregorianCalendar calendar) Creates a literal for the specified calendar using a datatype appropriate for the value indicated byXMLGregorianCalendar.getXMLSchemaType(). -
Method Summary
Methods inherited from class SimpleLiteral
booleanValue, byteValue, decimalValue, doubleValue, equals, floatValue, getCoreDatatype, getDatatype, getLabel, getLanguage, hashCode, integerValue, intValue, longValue, setDatatype, setDatatype, setDatatype, setLabel, setLanguage, shortValue, stringValue, toStringMethods inherited from class AbstractLiteral
temporalAccessorValue, temporalAmountValueMethods inherited from interface Value
isBNode, isIRI, isResource, isTriple
-
Constructor Details
-
CalendarLiteral
Creates a literal for the specified calendar using a datatype appropriate for the value indicated byXMLGregorianCalendar.getXMLSchemaType().
-
-
Method Details
-
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.
-