org.springframework.rules.reporting
Class BeanValidationResultsBuilder

java.lang.Object
  extended by org.springframework.rules.reporting.ValidationResultsBuilder
      extended by org.springframework.rules.reporting.BeanValidationResultsBuilder
All Implemented Interfaces:
BeanValidationResults

public class BeanValidationResultsBuilder
extends ValidationResultsBuilder
implements BeanValidationResults

Author:
Keith Donald

Field Summary
 
Fields inherited from class org.springframework.rules.reporting.ValidationResultsBuilder
logger
 
Constructor Summary
BeanValidationResultsBuilder(Object bean)
           
 
Method Summary
protected  void constraintSatisfied()
           
protected  void constraintViolated(Constraint constraint)
           
 String getCurrentPropertyName()
           
 Object getCurrentPropertyValue()
           
 Map getResults()
           
 PropertyResults getResults(String propertyName)
           
 int getViolatedCount()
           
 void setCurrentBeanPropertyExpression(PropertyConstraint expression)
           
 
Methods inherited from class org.springframework.rules.reporting.ValidationResultsBuilder
clear, negated, pop, push, pushAnd, pushNot, pushOr, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanValidationResultsBuilder

public BeanValidationResultsBuilder(Object bean)
Method Detail

getResults

public Map getResults()
Specified by:
getResults in interface BeanValidationResults

getResults

public PropertyResults getResults(String propertyName)
Specified by:
getResults in interface BeanValidationResults

getViolatedCount

public int getViolatedCount()
Specified by:
getViolatedCount in interface BeanValidationResults

constraintViolated

protected void constraintViolated(Constraint constraint)
Specified by:
constraintViolated in class ValidationResultsBuilder

constraintSatisfied

protected void constraintSatisfied()
Specified by:
constraintSatisfied in class ValidationResultsBuilder

getCurrentPropertyName

public String getCurrentPropertyName()

getCurrentPropertyValue

public Object getCurrentPropertyValue()

setCurrentBeanPropertyExpression

public void setCurrentBeanPropertyExpression(PropertyConstraint expression)


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.