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
 List<ValidatorConfig> parseActionValidatorConfigs(ValidatorFactory validatorFactory, InputStream is, String resourceName)
          Parse resource for a list of ValidatorConfig objects (configuring which validator(s) are being applied to a particular field etc.)
 void parseValidatorDefinitions(Map<String,String> validators, InputStream is, String resourceName)
          Parses validator definitions (register various validators with XWork).
 

Method Detail

parseActionValidatorConfigs

List<ValidatorConfig> parseActionValidatorConfigs(ValidatorFactory validatorFactory,
                                                  InputStream is,
                                                  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(Map<String,String> validators,
                               InputStream is,
                               String resourceName)
Parses validator definitions (register various validators with XWork).

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


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