Package org.openengsb.core.api.validation

Examples of org.openengsb.core.api.validation.ValidationResultImpl


    private static final class AllValidValidator implements FieldValidator {

        @Override
        public SingleAttributeValidationResult validate(String validate) {
            return new ValidationResultImpl(true, "");
        }
View Full Code Here


    @Override
    public SingleAttributeValidationResult validate(String validate) {
        Pattern pattern = Pattern.compile("\\d+");
        Matcher matcher = pattern.matcher(validate);
        if (!matcher.matches()) {
            ValidationResultImpl validationResultImpl = new ValidationResultImpl(false, "validation.number.formating");
            return validationResultImpl;
        } else {
            return new ValidationResultImpl(true, "");
        }
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.api.validation.ValidationResultImpl

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.