|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.validator.xwork2.XWork2NuitonValidator<O>
public class XWork2NuitonValidator<O>
Implementation of NuitonValidator using XWork2 validators.
| Field Summary | |
|---|---|
protected NuitonValidatorModel<O> |
model
|
protected Map<NuitonValidatorScope,XWork2ScopeValidator<O>> |
validators
xworks scope validators * |
| Constructor Summary | |
|---|---|
XWork2NuitonValidator(NuitonValidatorModel<O> model)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected NuitonValidatorModel<O> model
protected Map<NuitonValidatorScope,XWork2ScopeValidator<O>> validators
| Constructor Detail |
|---|
public XWork2NuitonValidator(NuitonValidatorModel<O> model)
| Method Detail |
|---|
public NuitonValidatorResult validate(O object)
throws NullPointerException
NuitonValidator
validate in interface NuitonValidator<O>object - the object to validate
NullPointerException - if object is null.public Set<NuitonValidatorScope> getEffectiveScopes()
NuitonValidator
getEffectiveScopes in interface NuitonValidator<O>public Set<String> getEffectiveFields()
NuitonValidator
getEffectiveFields in interface NuitonValidator<O>public Set<String> getEffectiveFields(NuitonValidatorScope scope)
NuitonValidator
getEffectiveFields in interface NuitonValidator<O>scope - given scope to use
public NuitonValidatorModel<O> getModel()
NuitonValidator
getModel in interface NuitonValidator<O>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||