| Package | Description |
|---|---|
| com.openpojo.validation | |
| com.openpojo.validation.impl | |
| com.openpojo.validation.rule.impl | |
| com.openpojo.validation.utils |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Rule> |
ValidatorBuilder.getRules() |
| Modifier and Type | Method and Description |
|---|---|
void |
PojoValidator.addRule(Rule rule)
Deprecated.
Add Rule to use for validation.
|
ValidatorBuilder |
ValidatorBuilder.with(Rule... rules) |
| Constructor and Description |
|---|
DefaultValidator(java.util.List<Rule> rules,
java.util.List<Tester> testers) |
| Modifier and Type | Class and Description |
|---|---|
class |
BusinessKeyMustExistRule
This rule ensures that PojoClass declares at least one required
BusinessKey.Required BusinessKey means either the required = true, or composite = true. |
class |
GetterMustExistRule
This rule ensures that all Fields have a getter associated with them.
|
class |
NoFieldShadowingRule
This rule ensures that no subclass shadows fields defined in a parent class.
|
class |
NoNestedClassRule
This Rule checks for classes being "nested".
|
class |
NoPrimitivesRule
This Rule ensures that you aren't using any primitive type fields.
|
class |
NoPublicFieldsExceptStaticFinalRule
This rule ensures that no fields declared with public visibility unless they
are static and final It is best to non-POJO classes (Interfaces, Enums,
...etc.) to hold those instead of mixing responsibilities.
|
class |
NoPublicFieldsRule
This rule ensures that no fields declared with public visibility.
|
class |
NoStaticExceptFinalRule
This rule ensures that there are no static fields unless they are final.
|
class |
SerializableMustHaveSerialVersionUIDRule
This Rule ensures that all Serializable classes define "serialVersionUID".
|
class |
SetterMustExistRule
This rule ensures that all Fields have a setter associated with them.
|
class |
TestClassMustBeProperlyNamedRule
There are three default accepted naming schemes for test classes.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ValidationHelper.runValidation(PojoClass pojoClass,
java.util.List<Rule> rules,
java.util.List<Tester> testers) |
Copyright © 2010-2015. All Rights Reserved.