private ValidationResult    validateParameterFirst(Map<String,String> properties) {
        String val = properties.get(PARAMETER_NAME_FIRST_VALUE);
        int intValue = -1;
        try {
            checkInteger(val);
        } catch (NumberFormatException nfe) {
            return  new MyValidationResult(false, "Must be an integer");
        }
        return  ValidationResult.SUCCESS;
    }
Validates the parameter first 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