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, toString
temporalAccessorValue, temporalAmountValue
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isBNode, isIRI, isResource, isTriple
protected CalendarLiteral(XMLGregorianCalendar calendar)
XMLGregorianCalendar.getXMLSchemaType()
.public XMLGregorianCalendar calendarValue()
Literal
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.calendarValue
in interface Literal
calendarValue
in class SimpleLiteral
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.