org.broadleafcommerce.openadmin.server.service.persistence.validation
Class MatchesFieldValidator

java.lang.Object
  extended by org.broadleafcommerce.openadmin.server.service.persistence.validation.ValidationConfigurationBasedPropertyValidator
      extended by org.broadleafcommerce.openadmin.server.service.persistence.validation.MatchesFieldValidator
All Implemented Interfaces:
PropertyValidator

public class MatchesFieldValidator
extends ValidationConfigurationBasedPropertyValidator

Checks for equality between this field and a configured 'otherField'

Author:
Phillip Verheyden

Constructor Summary
MatchesFieldValidator()
           
 
Method Summary
 boolean validateInternal(Entity entity, Serializable instance, Map<String,FieldMetadata> entityFieldMetadata, Map<String,String> validationConfiguration, BasicFieldMetadata propertyMetadata, String propertyName, String value)
          Delegate method for ValidationConfiguration-based processors that don't need to return an error message
 
Methods inherited from class org.broadleafcommerce.openadmin.server.service.persistence.validation.ValidationConfigurationBasedPropertyValidator
validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchesFieldValidator

public MatchesFieldValidator()
Method Detail

validateInternal

public boolean validateInternal(Entity entity,
                                Serializable instance,
                                Map<String,FieldMetadata> entityFieldMetadata,
                                Map<String,String> validationConfiguration,
                                BasicFieldMetadata propertyMetadata,
                                String propertyName,
                                String value)
Description copied from class: ValidationConfigurationBasedPropertyValidator
Delegate method for ValidationConfiguration-based processors that don't need to return an error message

Overrides:
validateInternal in class ValidationConfigurationBasedPropertyValidator


Copyright © 2013. All Rights Reserved.