net.sourceforge.annovalidator.builtin.validators
Class ValidateMatchingField.MatchingFieldValidator

java.lang.Object
  extended by net.sourceforge.annovalidator.builtin.validators.ValidateMatchingField.MatchingFieldValidator
Enclosing class:
ValidateMatchingField

public static class ValidateMatchingField.MatchingFieldValidator
extends java.lang.Object

Validator class for ValidateMatchingField.


Constructor Summary
ValidateMatchingField.MatchingFieldValidator()
           
 
Method Summary
 boolean validate(java.lang.Object target, java.lang.Object matchingObject)
          Tests that target matches the value of the matchingFieldName field on object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidateMatchingField.MatchingFieldValidator

public ValidateMatchingField.MatchingFieldValidator()
Method Detail

validate

public boolean validate(java.lang.Object target,
                        java.lang.Object matchingObject)
Tests that target matches the value of the matchingFieldName field on object.

Parameters:
target - The field being validated.
matchingObject - The object being validated.
matchingObject - The name of the field on object to match target against.
Returns:
true if target matches the value of the matchingFieldName field on object, otherwise false.


Copyright © 2008. All Rights Reserved.