Package com.dtolabs.rundeck.core.plugins.configuration

Examples of com.dtolabs.rundeck.core.plugins.configuration.PropertyValidator


    PropertyValidator testValidator;

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        testValidator = new PropertyValidator() {
            @Override
            public boolean isValid(String value) throws ValidationException {
                return false;
            }
        };
View Full Code Here


                 */
                .description("How much money? (1..5)")
                    /**
                     * set a custom validator for the property
                     */
                .validator(new PropertyValidator() {
                    public boolean isValid(String s) throws ValidationException {
                        try {
                            final int i = Integer.parseInt(s);
                            if (i <= 0 || i >= 6) {
                                //throw ValidationException to indicate a problem, with a reason
View Full Code Here

TOP

Related Classes of com.dtolabs.rundeck.core.plugins.configuration.PropertyValidator

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.