Package com.volantis.xml.expression.atomic.temporal

Examples of com.volantis.xml.expression.atomic.temporal.SimpleDateValue


                                       hours,  minutes, seconds, milliseconds);
    }

    // javadoc inherited
    public DateValue createDateValue(String date) {
        return new SimpleDateValue(this, date);
    }
View Full Code Here


        return new SimpleDateValue(this, date);
    }
   
    // javadoc inherited
    public DateValue createDateValue(Calendar calendar) {
        return new SimpleDateValue(this, calendar);
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public Value compute(DateValue left, DurationValue right) {
        SimpleDateValue dv = (SimpleDateValue)left;
        Calendar calendar = dv.getCalendar();
        calendar.add(Calendar.YEAR, -right.getYears());
        calendar.add(Calendar.MONTH, -right.getMonths());
        calendar.add(Calendar.DATE, -right.getDays());
        calendar.add(Calendar.HOUR, -right.getHours());
        calendar.add(Calendar.MINUTE, -right.getMinutes());
View Full Code Here

                                    new Integer(2),
                                    new Integer(arguments.length)
                            }));
        }
        ExpressionFactory factory = context.getFactory();
        SimpleDateValue first = (SimpleDateValue)
                factory.createDateValue(
                        arguments[0].stringValue().asJavaString());
        DateValue second = factory.createDateValue(
                arguments[1].stringValue().asJavaString());
        return first.subtract(second);
    }
View Full Code Here

TOP

Related Classes of com.volantis.xml.expression.atomic.temporal.SimpleDateValue

Copyright © 2018 www.massapicom. 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.