public void validate(String path, Schema schema, Object value, List<ValidationResult> results) {
		String name = path != null ? path : "value";
		Object value1 = ObjectReader.getProperty(value, _property1);
		Object value2 = ObjectReader.getProperty(value, _property2);

		if (!ObjectComparator.compare(value1, _operation, value2)) {
			results.add(new ValidationResult(path, ValidationResultType.Error, "PROPERTIES_NOT_MATCH",
					name + " must have " + _property1 + " " + _operation + " " + _property2, value2, value1));
		}
	}
public void validate ( String path , Schema schema , Object value , List < ValidationResult > results ) { String name = path != null ? path : "value" ; Object value1 = ObjectReader . getProperty ( value , _property1 ) ; Object value2 = ObjectReader . getProperty ( value , _property2 ) ; if ( ! ObjectComparator . compare ( value1 , _operation , value2 ) ) { results . add ( new ValidationResult ( path , ValidationResultType . Error , "PROPERTIES_NOT_MATCH" , name + " must have " + _property1 + " " + _operation + " " + _property2 , value2 , value1 ) ) ; } }
Validates a given value against this rule.

@param path    a dot notation path to the value.
@param schema  a schema this rule is called from
@param value   a value to be validated.
@param results a list with validation results to add new results.