Examples of newXMLGregorianCalendarTime()


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

        int hour = value.getHour();
        int minute = value.getMinute();
        int sec = value.getSecond();
        BigDecimal fsec = value.getFractionalSecond();
        int tz = value.getTimezone();
        XMLGregorianCalendar cal = factory.newXMLGregorianCalendarTime(hour, minute, sec, fsec, tz);
        return new GregorianDateTimeValue(cal, TIME);
    }

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

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

                factory = DatatypeFactory.newInstance();
            } catch (DatatypeConfigurationException e) {
                throw new RuntimeException(e);
            }

            return factory.newXMLGregorianCalendarTime(dateTime.getHourOfDay(),
                    dateTime.getMinuteOfHour(), dateTime.getSecondOfMinute(),
                    dateTime.getMillisOfSecond(),
                    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.