@Override
    public ValidationResult validateInstance(ViewInstanceDefinition definition, ValidationContext mode) {
        // get the instance props
        Map<String,String> props = definition.getPropertyMap();
        
        // do a check to confirm first is less than or equals to second    
        return  validateParameterFirstSecondValues(props);
    }
The validator class for the PropertyValidator view.
ambari-views/examples/property-validator-view/src/main/java/org/apache/ambari/view/property/MyValidator.java