Package org.openengsb.core.api.validation

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


        assertBuildException("password");
    }

    @Test
    public void testBuildWithValidator_shouldReturnSameValidator() throws Exception {
        @SuppressWarnings("serial")
        FieldValidator fieldValidator = new FieldValidator() {
            @Override
            public SingleAttributeValidationResult validate(String validate) {
                return null;
            }
        };
View Full Code Here


            this.attribute = attribute;
        }

        @Override
        protected void onValidate(IValidatable<T> validatable) {
            FieldValidator validator = this.attribute.getValidator();
            SingleAttributeValidationResult validationResult = validator.validate(validatable.getValue().toString());
            if (!validationResult.isValid()) {
                error(validatable, validationResult.getErrorMessageId());
            }
        }
View Full Code Here

TOP

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

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.