Examples of GregorianCalendarAdapter


Examples of org.apache.taglibs.standard.lang.jpath.adapter.GregorianCalendarAdapter

                    .evaluate(pageContext, icontext)).intValue() - 1;
                int date =
                    Convert.toDouble(jjtGetChild(2).evaluate(pageContext,
                        icontext)).intValue();

                d = new GregorianCalendarAdapter(year, month, date);
            } else if (jjtGetNumChildren() == 5) {
                int year =
                    Convert.toDouble(jjtGetChild(0).evaluate(pageContext,
                        icontext)).intValue();
                int month =
                    Convert.toDouble(jjtGetChild(1)
                    .evaluate(pageContext, icontext)).intValue() - 1;
                int date =
                    Convert.toDouble(jjtGetChild(2).evaluate(pageContext,
                        icontext)).intValue();
                int hour =
                    Convert.toDouble(jjtGetChild(3).evaluate(pageContext,
                        icontext)).intValue();
                int minute =
                    Convert.toDouble(jjtGetChild(4).evaluate(pageContext,
                        icontext)).intValue();

                d = new GregorianCalendarAdapter(year, month, date, hour,
                        minute);
            } else if (jjtGetNumChildren() == 6) {
                int year =
                    Convert.toDouble(jjtGetChild(0).evaluate(pageContext,
                        icontext)).intValue();
                int month =
                    Convert.toDouble(jjtGetChild(1)
                    .evaluate(pageContext, icontext)).intValue() - 1;
                int date =
                    Convert.toDouble(jjtGetChild(2).evaluate(pageContext,
                        icontext)).intValue();
                int hour =
                    Convert.toDouble(jjtGetChild(3).evaluate(pageContext,
                        icontext)).intValue();
                int minute =
                    Convert.toDouble(jjtGetChild(4).evaluate(pageContext,
                        icontext)).intValue();
                int second =
                    Convert.toDouble(jjtGetChild(5).evaluate(pageContext,
                        icontext)).intValue();

                d = new GregorianCalendarAdapter(year, month, date, hour,
                        minute, second);
            } else {
                throw new EvaluationException(this,
                        "date does not have the proper"
                        + "number of arguments");
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.