com.opensymphony.xwork2.validator
Interface ValidatorFileParser

All Known Implementing Classes:
DefaultValidatorFileParser

public interface ValidatorFileParser

This class serves 2 purpose :

Author:
Jason Carreira, James House, tm_jee ( tm_jee (at) yahoo.co.uk ), Rob Harrop, Rene Gielen
See Also:
ValidatorConfig

Method Summary
 java.util.List<ValidatorConfig> parseActionValidatorConfigs(ValidatorFactory validatorFactory, java.io.InputStream is, java.lang.String resourceName)
          Parse resource for a list of ValidatorConfig objects (configuring which validator(s) are being applied to a particular field etc.)
 void parseValidatorDefinitions(java.util.Map<java.lang.String,java.lang.String> validators, java.io.InputStream is, java.lang.String resourceName)
          Parses validator definitions (register various validators with XWork).
 

Method Detail

parseActionValidatorConfigs

java.util.List<ValidatorConfig> parseActionValidatorConfigs(ValidatorFactory validatorFactory,
                                                            java.io.InputStream is,
                                                            java.lang.String resourceName)
Parse resource for a list of ValidatorConfig objects (configuring which validator(s) are being applied to a particular field etc.)

Parameters:
is - input stream to the resource
resourceName - file name of the resource
Returns:
List list of ValidatorConfig

parseValidatorDefinitions

void parseValidatorDefinitions(java.util.Map<java.lang.String,java.lang.String> validators,
                               java.io.InputStream is,
                               java.lang.String resourceName)
Parses validator definitions (register various validators with XWork).

Parameters:
is - The input stream
resourceName - The location of the input stream


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.