Examples of GregorianDateTimeValue


Examples of xbird.xquery.dm.value.xsi.GregorianDateTimeValue

        super(TypeTable.GYEAR_MONTH_TID, SYMBOL);
    }

    public AtomicValue createInstance(String literal, AtomicType srcType, DynamicContext dynEnv)
            throws XQueryException {
        return new GregorianDateTimeValue(literal, this);
    }
View Full Code Here

Examples of xbird.xquery.dm.value.xsi.GregorianDateTimeValue

        final DatatypeFactory factory = XsDatatypeFactory.getDatatypeFactory();
        int year = value.getYear();
        int month = value.getMonth();
        int tz = value.getTimezone();
        XMLGregorianCalendar cal = factory.newXMLGregorianCalendarDate(year, month, DatatypeConstants.FIELD_UNDEFINED, tz);
        return new GregorianDateTimeValue(cal, GYEARMONTH);
    }
View Full Code Here

Examples of xbird.xquery.dm.value.xsi.GregorianDateTimeValue

        super(TypeTable.GDAY_TID, SYMBOL);
    }

    public GregorianDateTimeValue createInstance(String literal, AtomicType srcType, DynamicContext dynEnv)
            throws XQueryException {
        return new GregorianDateTimeValue(literal, this);
    }
View Full Code Here

Examples of xbird.xquery.dm.value.xsi.GregorianDateTimeValue

    public GregorianDateTimeValue createInstance(XMLGregorianCalendar value) {
        final DatatypeFactory factory = XsDatatypeFactory.getDatatypeFactory();
        int day = value.getDay();
        int tz = value.getTimezone();
        XMLGregorianCalendar cal = factory.newXMLGregorianCalendarDate(DatatypeConstants.FIELD_UNDEFINED, DatatypeConstants.FIELD_UNDEFINED, day, tz);
        return new GregorianDateTimeValue(cal, GDAY);
    }
View Full Code Here

Examples of xbird.xquery.dm.value.xsi.GregorianDateTimeValue

        super(TypeTable.GYEAR_TID, SYMBOL);
    }

    public AtomicValue createInstance(String literal, AtomicType srcType, DynamicContext dynEnv)
            throws XQueryException {
        return new GregorianDateTimeValue(literal, this);
    }
View Full Code Here

Examples of xbird.xquery.dm.value.xsi.GregorianDateTimeValue

    public GregorianDateTimeValue createInstance(XMLGregorianCalendar value) {
        final DatatypeFactory factory = XsDatatypeFactory.getDatatypeFactory();
        int year = value.getYear();
        int tz = value.getTimezone();
        XMLGregorianCalendar cal = factory.newXMLGregorianCalendarDate(year, DatatypeConstants.FIELD_UNDEFINED, DatatypeConstants.FIELD_UNDEFINED, tz);
        return new GregorianDateTimeValue(cal, GYEAR);
    }
View Full Code Here

Examples of xbird.xquery.dm.value.xsi.GregorianDateTimeValue

        super(TypeTable.GMONTH_DAY_TID, SYMBOL);
    }

    public AtomicValue createInstance(String literal, AtomicType srcType, DynamicContext dynEnv)
            throws XQueryException {
        return new GregorianDateTimeValue(literal, this);
    }
View Full Code Here

Examples of xbird.xquery.dm.value.xsi.GregorianDateTimeValue

        final DatatypeFactory factory = XsDatatypeFactory.getDatatypeFactory();
        int month = value.getMonth();
        int day = value.getDay();
        int tz = value.getTimezone();
        XMLGregorianCalendar cal = factory.newXMLGregorianCalendarDate(DatatypeConstants.FIELD_UNDEFINED, month, day, tz);
        return new GregorianDateTimeValue(cal, GMONTHDAY);
    }
View Full Code Here

Examples of xbird.xquery.dm.value.xsi.GregorianDateTimeValue

        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);
    }
View Full Code Here

Examples of xbird.xquery.dm.value.xsi.GregorianDateTimeValue

        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);
    }
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.