org.unitils.objectvalidation.rulescollection
Class SunBeanRules
java.lang.Object
org.unitils.objectvalidation.rulescollection.SunBeanRules
- All Implemented Interfaces:
- ObjectValidationRulesCollection
public class SunBeanRules
- extends Object
- implements ObjectValidationRulesCollection
A set of default rules for the class validation.
Checks that :
1. The equals is complient with the Sun rules : EqualsComplientRule
2. The hashCode is complient with the Sun rules : HashCodeComplientRule
3. The getters and setters are complient with the Sun rules : GetterAndSetterComplientRule
4. The class is serializable and contains the serialVersionUID field : ClassMustBeSerializableRule
6. There is a public empty constructor : PublicEmptyConstructorRule
- Since:
- Oct 10, 2013
- Author:
- Matthieu Mestrez
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
objectCreator
protected ObjectCreator objectCreator
objectCloner
protected ObjectCloner objectCloner
SunBeanRules
public SunBeanRules()
getRules
public List<Rule> getRules()
- Specified by:
getRules in interface ObjectValidationRulesCollection
getEqualsHashCodeValidator
public EqualsHashCodeValidator getEqualsHashCodeValidator()
- Specified by:
getEqualsHashCodeValidator in interface ObjectValidationRulesCollection
Copyright © 2013-2015. All Rights Reserved.