net.sf.oval.configuration.pojo
Class POJOConfigurer

java.lang.Object
  extended by net.sf.oval.configuration.pojo.POJOConfigurer
All Implemented Interfaces:
Serializable, Configurer

public class POJOConfigurer
extends Object
implements Configurer, Serializable

Author:
Sebastian Thomschke
See Also:
Serialized Form

Field Summary
protected  Set<ClassConfiguration> classConfigurations
           
protected  Set<ConstraintSetConfiguration> constraintSetConfigurations
           
 
Constructor Summary
POJOConfigurer()
           
 
Method Summary
 ClassConfiguration getClassConfiguration(Class<?> clazz)
          Returns the constraint configurations for the given class.
 Set<ClassConfiguration> getClassConfigurations()
           
 ConstraintSetConfiguration getConstraintSetConfiguration(String constraintSetId)
          Returns the constraint configuration for the constraint set with the given Id.
 Set<ConstraintSetConfiguration> getConstraintSetConfigurations()
           
 void setClassConfigurations(Set<ClassConfiguration> classConfigurations)
           
 void setConstraintSetConfigurations(Set<ConstraintSetConfiguration> constraintSetConfigurations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classConfigurations

protected Set<ClassConfiguration> classConfigurations

constraintSetConfigurations

protected Set<ConstraintSetConfiguration> constraintSetConfigurations
Constructor Detail

POJOConfigurer

public POJOConfigurer()
Method Detail

getClassConfiguration

public ClassConfiguration getClassConfiguration(Class<?> clazz)
Returns the constraint configurations for the given class. This method is invoked only once by the Validator, the very first time an object of the given class needs to be validated. The constraint configuration is then translated into an Validator internal format and cached.

Specified by:
getClassConfiguration in interface Configurer
Parameters:
clazz - the class to get the configuration for
Returns:
The constraint configurations for the given class.

getClassConfigurations

public Set<ClassConfiguration> getClassConfigurations()
Returns:
the classConfigurations

getConstraintSetConfiguration

public ConstraintSetConfiguration getConstraintSetConfiguration(String constraintSetId)
Returns the constraint configuration for the constraint set with the given Id.

Specified by:
getConstraintSetConfiguration in interface Configurer
Parameters:
constraintSetId - the ID of the constraint set
Returns:
The constraint configuration for the constraint set with the given Id.

getConstraintSetConfigurations

public Set<ConstraintSetConfiguration> getConstraintSetConfigurations()
Returns:
the constraintSetConfigurations

setClassConfigurations

public void setClassConfigurations(Set<ClassConfiguration> classConfigurations)
Parameters:
classConfigurations - the classConfigurations to set

setConstraintSetConfigurations

public void setConstraintSetConfigurations(Set<ConstraintSetConfiguration> constraintSetConfigurations)
Parameters:
constraintSetConfigurations - the constraintSetConfigurations to set


Copyright © 2005–2015 The OVal Development Team. All rights reserved.