public class XWork2NuitonValidator<O> extends Object implements NuitonValidator<O>
NuitonValidator using XWork2 validators.| Modifier and Type | Field and Description |
|---|---|
protected NuitonValidatorModel<O> |
model |
protected Map<NuitonValidatorScope,XWork2ScopeValidator<O>> |
validators
xworks scope validators *
|
| Constructor and Description |
|---|
XWork2NuitonValidator(NuitonValidatorModel<O> model) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected NuitonValidatorModel<O> model
protected Map<NuitonValidatorScope,XWork2ScopeValidator<O>> validators
public XWork2NuitonValidator(NuitonValidatorModel<O> model)
public NuitonValidatorResult validate(O object) throws NullPointerException
NuitonValidatorvalidate in interface NuitonValidator<O>object - the object to validateNullPointerException - if object is null.public Set<NuitonValidatorScope> getEffectiveScopes()
NuitonValidatorgetEffectiveScopes in interface NuitonValidator<O>public Set<String> getEffectiveFields()
NuitonValidatorgetEffectiveFields in interface NuitonValidator<O>public Set<String> getEffectiveFields(NuitonValidatorScope scope)
NuitonValidatorgetEffectiveFields in interface NuitonValidator<O>scope - given scope to usepublic NuitonValidatorModel<O> getModel()
NuitonValidatorgetModel in interface NuitonValidator<O>Copyright © 2013–2014 CodeLutin. All rights reserved.