|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.validator.xwork2.XWork2ScopeValidator<O>
O - type of the bean to validate.public class XWork2ScopeValidator<O>
A customized validator for a given bean.
Use the methodvalidate(Object) to obtain the messages detected by
the validator for the given bean.
| Field Summary | |
|---|---|
protected String |
context
the validation named context (can be null) |
protected static Map<String,List<String>> |
EMPTY_RESULT
|
protected Set<String> |
fieldNames
the list of field names detected for this validator |
protected Class<O> |
type
the type of bean to validate |
protected com.opensymphony.xwork2.validator.DelegatingValidatorContext |
validationContext
|
protected com.opensymphony.xwork2.ValidationAwareSupport |
validationSupport
|
protected com.opensymphony.xwork2.validator.ActionValidatorManager |
validator
|
protected com.opensymphony.xwork2.util.ValueStack |
vs
|
| Constructor Summary | |
|---|---|
protected |
XWork2ScopeValidator(Class<O> type,
String context,
Set<String> fieldNames,
com.opensymphony.xwork2.util.ValueStack vs)
|
| Method Summary | |
|---|---|
boolean |
containsField(String fieldName)
Test if the validator contains the field given his name |
String |
getContext()
|
Set<String> |
getFieldNames()
|
Class<O> |
getType()
|
com.opensymphony.xwork2.validator.ActionValidatorManager |
getValidator()
|
String |
toString()
|
Map<String,List<String>> |
validate(O bean)
Valide le bean donné et retourne les messages produits. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final Map<String,List<String>> EMPTY_RESULT
protected final Class<O> type
protected String context
protected Set<String> fieldNames
protected com.opensymphony.xwork2.ValidationAwareSupport validationSupport
protected com.opensymphony.xwork2.validator.DelegatingValidatorContext validationContext
protected com.opensymphony.xwork2.validator.ActionValidatorManager validator
protected com.opensymphony.xwork2.util.ValueStack vs
| Constructor Detail |
|---|
protected XWork2ScopeValidator(Class<O> type,
String context,
Set<String> fieldNames,
com.opensymphony.xwork2.util.ValueStack vs)
| Method Detail |
|---|
public Class<O> getType()
public String getContext()
public Set<String> getFieldNames()
public com.opensymphony.xwork2.validator.ActionValidatorManager getValidator()
public boolean containsField(String fieldName)
fieldName - the name of the searched field
true if validator contaisn this field,
false otherwisepublic Map<String,List<String>> validate(O bean)
bean - le bean a valider (il doit etre non null)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||