public class CalendarLiteral extends SimpleLiteral
SimpleLiteral that stores a calendar value to avoid parsing.| Modifier | Constructor and Description |
|---|---|
protected |
CalendarLiteral(XMLGregorianCalendar calendar)
Creates a literal for the specified calendar using a datatype appropriate for the value indicated by
XMLGregorianCalendar.getXMLSchemaType(). |
| Modifier and Type | Method and Description |
|---|---|
XMLGregorianCalendar |
calendarValue()
Returns the
XMLGregorianCalendar value of this literal. |
booleanValue, byteValue, decimalValue, doubleValue, equals, floatValue, getDatatype, getLabel, getLanguage, getXsdDatatype, hashCode, integerValue, intValue, longValue, setDatatype, setDatatype, setLabel, setLanguage, shortValue, stringValue, toStringtemporalAccessorValue, temporalAmountValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitisBNode, isIRI, isResource, isTripleprotected CalendarLiteral(XMLGregorianCalendar calendar)
XMLGregorianCalendar.getXMLSchemaType().public XMLGregorianCalendar calendarValue()
LiteralXMLGregorianCalendar 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.calendarValue in interface LiteralcalendarValue in class SimpleLiteralCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.