private ValidationResult    validateParameterSecond(Map<String,String> properties) {
        String val = properties.get(PARAMETER_NAME_SECOND_VALUE);
        int intValue = -1;
        try {
            intValue = checkInteger(val);
        } catch (NumberFormatException nfe) {
            return  new MyValidationResult(false, "Must be an integer");
        }

        if (intValue > SECOND_VALUE_MAX)
            return  new MyValidationResult(false, "Must be less than "+SECOND_VALUE_MAX);

        return  ValidationResult.SUCCESS;
    }
Validates the parameter second value.

@param   properties      the view instance parameters
@return  the validation result
ambari-views/examples/property-validator-view/src/main/java/org/apache/ambari/view/property/MyValidator.java