net.sf.oval.configuration.pojo
Class POJOConfigurer
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
classConfigurations
protected Set<ClassConfiguration> classConfigurations
constraintSetConfigurations
protected Set<ConstraintSetConfiguration> constraintSetConfigurations
POJOConfigurer
public POJOConfigurer()
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-2013 The OVal Development Team. All Rights Reserved.