Package org.jbpm.formapi.shared.api.validation

Examples of org.jbpm.formapi.shared.api.validation.XORValidation


        subValidations = new SubValidationsList("XOR", existingValidations);
    }

    @Override
    public FBValidation createValidation() {
        XORValidation validation = getRepresentation(new XORValidation());
        if (subValidations != null && subValidations.getItems() != null) {
            for (FBValidationItem subValidationItem : subValidations.getItems()) {
                FBValidation subValidation = subValidationItem.createValidation();
                validation.addValidation(subValidation);
            }
        }
        return validation;
    }
View Full Code Here


    public void populate(FBValidation validation) throws FormBuilderException {
        if (!(validation instanceof XORValidation)) {
            throw new FormBuilderException(i18n.RepNotOfType(validation.getClass().getName(), "XORValidation"));
        }
        subValidations.clearItems();
        XORValidation xor = (XORValidation) validation;
        List<FBValidation> subVals = xor.getValidations();
        for (FBValidation subVal : subVals) {
            FBValidationItem item = createValidation(subVal);
            subValidations.addItem(item);
        }
    }
View Full Code Here

TOP

Related Classes of org.jbpm.formapi.shared.api.validation.XORValidation

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.