public class XWork2ValidatorUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
XWork2ValidatorUtil.NuitonDefaultUnknownHandler
A dummy unknown handler when we want to use for example visitor validators
which need a invocation handler.
|
| Constructor and Description |
|---|
XWork2ValidatorUtil() |
| Modifier and Type | Method and Description |
|---|---|
static com.opensymphony.xwork2.util.ValueStack |
createValuestack() |
static <O> Map<NuitonValidatorScope,String[]> |
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 <O> XWork2ScopeValidator<O> |
newXWorkScopeValidator(Class<O> beanClass,
String contextName,
Set<String> fields) |
static <O> XWork2ScopeValidator<O> |
newXWorkScopeValidator(Class<O> beanClass,
String contextName,
Set<String> fields,
com.opensymphony.xwork2.util.ValueStack vs) |
static void |
setSharedValueStack(com.opensymphony.xwork2.util.ValueStack sharedValueStack)
Sets the given value stack as shared (can be null).
|
public static com.opensymphony.xwork2.util.ValueStack getSharedValueStack()
public static void setSharedValueStack(com.opensymphony.xwork2.util.ValueStack sharedValueStack)
sharedValueStack - the new shared value stack to use (can be null).public static com.opensymphony.xwork2.util.ValueStack createValuestack()
public static <O> XWork2ScopeValidator<O> newXWorkScopeValidator(Class<O> beanClass, String contextName, Set<String> fields)
public static <O> XWork2ScopeValidator<O> newXWorkScopeValidator(Class<O> beanClass, String contextName, Set<String> fields, com.opensymphony.xwork2.util.ValueStack vs)
public static String getContextForScope(String context, NuitonValidatorScope scope)
protected static com.opensymphony.xwork2.validator.ActionValidatorManager newValidationManager(com.opensymphony.xwork2.util.ValueStack vs)
public static <O> Map<NuitonValidatorScope,String[]> detectFields(Class<O> type, String context, NuitonValidatorScope[] scopeUniverse)
Copyright © 2013–2017 CodeLutin. All rights reserved.