O - type of the bean to validate.public class XWork2ScopeValidator<O> extends Object
validate(Object) to obtain the messages detected by
the validator for the given bean.| Modifier and Type | Field and Description |
|---|---|
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 |
| Modifier | Constructor and Description |
|---|---|
protected |
XWork2ScopeValidator(Class<O> type,
String context,
Set<String> fieldNames,
com.opensymphony.xwork2.util.ValueStack vs) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected String context
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
public String getContext()
public com.opensymphony.xwork2.validator.ActionValidatorManager getValidator()
public boolean containsField(String fieldName)
fieldName - the name of the searched fieldtrue if validator contaisn this field,
false otherwisepublic Map<String,List<String>> validate(O bean)
bean - le bean a valider (il doit etre non null)Copyright © 2013 CodeLutin. All rights reserved.