Class CalendarLiteral

    • Field Detail

      • calendar

        private final javax.xml.datatype.XMLGregorianCalendar calendar
    • Constructor Detail

      • CalendarLiteral

        protected CalendarLiteral​(javax.xml.datatype.XMLGregorianCalendar calendar)
        Creates a literal for the specified calendar using a datatype appropriate for the value indicated by XMLGregorianCalendar.getXMLSchemaType().
    • Method Detail

      • calendarValue

        public javax.xml.datatype.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 SimpleLiteral
        Returns:
        The calendar value of the literal.