|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NuitonValidator<O>
Contract of a validator.
To obtain validator, see theNuitonValidatorFactory api.
NuitonValidatorFactory| Method Summary | |
|---|---|
Set<String> |
getEffectiveFields()
Obtains the set of effective fields for the validator : means the very fields validated by the validator. |
Set<String> |
getEffectiveFields(NuitonValidatorScope scope)
Obtains the set of effective fields for the validator for the given scope : means the very fields validated by the validator. |
Set<NuitonValidatorScope> |
getEffectiveScopes()
Obtains the set of effective scopes for the validator : means the very scopes that the validator is dealing with. |
NuitonValidatorModel<O> |
getModel()
Obtains the model of the validator. |
NuitonValidatorResult |
validate(O object)
Validates the given object and returns the result of validation. |
| Method Detail |
|---|
NuitonValidatorResult validate(O object)
throws NullPointerException
object - the object to validate
NullPointerException - if object is null.NuitonValidatorModel<O> getModel()
Set<NuitonValidatorScope> getEffectiveScopes()
Set<String> getEffectiveFields()
Set<String> getEffectiveFields(NuitonValidatorScope scope)
scope - given scope to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||