Package com.alibaba.citrus.service.form

Examples of com.alibaba.citrus.service.form.Condition


    public boolean validate(Context context) {
        for (Validator validator : getValidators()) {
            if (validator instanceof When) {
                When when = (When) validator;
                Condition cond = when.condition;

                if (cond.isSatisfied(context)) {
                    return when.validateInChoose(context);
                }
            } else if (validator instanceof Otherwise) {
                Otherwise ow = (Otherwise) validator;
                return ow.validateInChoose(context);
View Full Code Here


    public boolean validate(Context context) {
        for (Validator validator : getValidators()) {
            if (validator instanceof When) {
                When when = (When) validator;
                Condition cond = when.condition;

                if (cond.isSatisfied(context)) {
                    return when.validateInChoose(context);
                }
            } else if (validator instanceof Otherwise) {
                Otherwise ow = (Otherwise) validator;
                return ow.validateInChoose(context);
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.service.form.Condition

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.