org.nuiton.validator.xwork2
Class XWork2ValidatorUtil
java.lang.Object
org.nuiton.validator.xwork2.XWork2ValidatorUtil
public class XWork2ValidatorUtil
- extends Object
Usefull methods to works with work2 validator api.
- Since:
- 2.0
- Author:
- tchemit
|
Method Summary |
static com.opensymphony.xwork2.util.ValueStack |
createValuestack()
|
static
|
detectFields(Class<O> type,
String context,
NuitonValidatorScope[] scopeUniverse)
|
protected static Set<String> |
detectFieldsForScope(com.opensymphony.xwork2.validator.ActionValidatorManager validator,
Class<?> type,
NuitonValidatorScope scope,
String context,
Set<String> availableFields,
boolean includeDefaultContext)
|
static String |
getContextForScope(String context,
NuitonValidatorScope scope)
|
static com.opensymphony.xwork2.util.ValueStack |
getSharedValueStack()
|
protected static com.opensymphony.xwork2.validator.ActionValidatorManager |
newValidationManager(com.opensymphony.xwork2.util.ValueStack vs)
|
static
|
newXWorkScopeValidator(Class<O> beanClass,
String contextName,
Set<String> fields)
|
static
|
newXWorkScopeValidator(Class<O> beanClass,
String contextName,
Set<String> fields,
com.opensymphony.xwork2.util.ValueStack vs)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XWork2ValidatorUtil
public XWork2ValidatorUtil()
getSharedValueStack
public static com.opensymphony.xwork2.util.ValueStack getSharedValueStack()
createValuestack
public static com.opensymphony.xwork2.util.ValueStack createValuestack()
newXWorkScopeValidator
public static <O> XWork2ScopeValidator<O> newXWorkScopeValidator(Class<O> beanClass,
String contextName,
Set<String> fields)
newXWorkScopeValidator
public static <O> XWork2ScopeValidator<O> newXWorkScopeValidator(Class<O> beanClass,
String contextName,
Set<String> fields,
com.opensymphony.xwork2.util.ValueStack vs)
getContextForScope
public static String getContextForScope(String context,
NuitonValidatorScope scope)
newValidationManager
protected static com.opensymphony.xwork2.validator.ActionValidatorManager newValidationManager(com.opensymphony.xwork2.util.ValueStack vs)
detectFields
public static <O> Map<NuitonValidatorScope,String[]> detectFields(Class<O> type,
String context,
NuitonValidatorScope[] scopeUniverse)
detectFieldsForScope
protected static Set<String> detectFieldsForScope(com.opensymphony.xwork2.validator.ActionValidatorManager validator,
Class<?> type,
NuitonValidatorScope scope,
String context,
Set<String> availableFields,
boolean includeDefaultContext)
Copyright © 2011 CodeLutin. All Rights Reserved.