| Package | Description |
|---|---|
| org.unitils.objectvalidation | |
| org.unitils.objectvalidation.rules | |
| org.unitils.objectvalidation.rulescollection |
| Modifier and Type | Method and Description |
|---|---|
List<Rule> |
ObjectValidationRulesCollection.getRules() |
| Constructor and Description |
|---|
ObjectValidator(List<Rule> rulesToValidate,
List<EqualsHashCodeValidator> equalsHashCodeValidators) |
| Modifier and Type | Class and Description |
|---|---|
class |
ClassIsFinalRule
Rule to check that the class is final.
|
class |
ClassMustBeSerializableRule
Rule to check that the class passed in parameter must implement
Serializable. |
class |
EqualsComplientRule
Verifies the seven equality rules defined by Sun :
1.
|
class |
GetterAndSetterComplientRule
Rule to validate that every field is accessible with a getter and a setter.
|
class |
HashCodeComplientRule
Assert the compliancy of an object hashCode() method.
|
class |
OnlyStaticMethodsRule
Rule to check that there is only static methods declared in the class.
|
class |
PrivateConstructorRule
Rule to check that no public constructors are available on the tested class.
|
class |
PublicEmptyConstructorRule
Rules to verify that the provided class has a default empty constructor.
|
class |
ToStringHasToBeOverridenRule
Rule to check that the toString method is well overriden in the tested class.
|
class |
ToStringMustContainsEveryFieldRule
Rule to check that the toString method returns a string with every field named in it.
|
| Modifier and Type | Method and Description |
|---|---|
List<Rule> |
UtilityClassRules.getRules() |
List<Rule> |
SunBeanRules.getRules() |
Copyright © 2013. All Rights Reserved.