Examples of newXMLGregorianCalendarDate()


Examples of javax.xml.datatype.DatatypeFactory.newXMLGregorianCalendarDate()

        final DatatypeFactory factory = XsDatatypeFactory.getDatatypeFactory();
        int year = value.getYear();
        int month = value.getMonth();
        int day = value.getDay();
        int tz = value.getTimezone();
        XMLGregorianCalendar cal = factory.newXMLGregorianCalendarDate(year, month, day, tz);
        return new GregorianDateTimeValue(cal, DATE);
    }

    @Override
    public boolean isTimeSet() {
View Full Code Here

Examples of javax.xml.datatype.DatatypeFactory.newXMLGregorianCalendarDate()

            try {
                factory = DatatypeFactory.newInstance();
            } catch (DatatypeConfigurationException e) {
                throw new RuntimeException(e);
            }
            return factory.newXMLGregorianCalendarDate(localDate.getYear(),
                    localDate.getMonthOfYear(), localDate.getDayOfMonth(),
                    DatatypeConstants.FIELD_UNDEFINED);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.