com.opensymphony.xwork.validator
Class ValidatorFileParser
java.lang.Object
com.opensymphony.xwork.validator.ValidatorFileParser
public class ValidatorFileParser
- extends Object
Parse the validation file (eg. MyAction-validation.xml, MyAction-actionAlias-validation.xml)
to return a List of ValidatorConfig encapsulating the validator information.
- Author:
- Jason Carreira, James House, tm_jee ( tm_jee (at) yahoo.co.uk )
- See Also:
ValidatorConfig
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidatorFileParser
public ValidatorFileParser()
parseActionValidatorConfigs
public static List parseActionValidatorConfigs(InputStream is,
String resourceName)
- Parse resource for a list of ValidatorConfig objects.
- Parameters:
is - input stream to the resourceresourceName - file name of the resource
- Returns:
- List list of ValidatorConfig
parseValidatorDefinitions
public static void parseValidatorDefinitions(InputStream is)