Class XWork2ValidatorUtil


  • public class XWork2ValidatorUtil
    extends Object
    Usefull methods to works with work2 validator api.
    Since:
    2.0
    Author:
    Tony Chemit - chemit@codelutin.com
    • Constructor Detail

      • XWork2ValidatorUtil

        public XWork2ValidatorUtil()
    • Method Detail

      • getSharedValueStack

        public static com.opensymphony.xwork2.util.ValueStack getSharedValueStack()
      • setSharedValueStack

        public static void setSharedValueStack​(com.opensymphony.xwork2.util.ValueStack sharedValueStack)
        Sets the given value stack as shared (can be null).
        Parameters:
        sharedValueStack - the new shared value stack to use (can be null).
        Since:
        3.0
      • createValuestack

        public static com.opensymphony.xwork2.util.ValueStack createValuestack()
      • newXWorkScopeValidator

        public static <O> XWork2ScopeValidator<O> newXWorkScopeValidator​(Class<O> beanClass,
                                                                         String contextName,
                                                                         Set<String> fields,
                                                                         com.opensymphony.xwork2.util.ValueStack vs)
      • newValidationManager

        protected static com.opensymphony.xwork2.validator.ActionValidatorManager newValidationManager​(com.opensymphony.xwork2.util.ValueStack vs)
      • detectFieldsForScope

        protected static Set<String> detectFieldsForScope​(com.opensymphony.xwork2.validator.ActionValidatorManager validator,
                                                          Class<?> type,
                                                          NuitonValidatorScope scope,
                                                          String context,
                                                          Set<String> availableFields,
                                                          boolean includeDefaultContext)