public class DefaultValidatorFileParser extends Object implements ValidatorFileParser
ValidatorConfig
Constructor and Description |
---|
DefaultValidatorFileParser() |
Modifier and Type | Method and Description |
---|---|
String |
getMultiTextvalueSeparator() |
String |
getTextValue(Element valueEle)
Extract trimmed text value from the given DOM element, ignoring XML comments.
|
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).
|
void |
setMultiTextvalueSeparator(String type) |
void |
setObjectFactory(ObjectFactory fac) |
public void setMultiTextvalueSeparator(String type)
public String getMultiTextvalueSeparator()
public void setObjectFactory(ObjectFactory fac)
public List<ValidatorConfig> parseActionValidatorConfigs(ValidatorFactory validatorFactory, InputStream is, String resourceName)
ValidatorFileParser
parseActionValidatorConfigs
in interface ValidatorFileParser
validatorFactory
- a validator factoryis
- input stream to the resourceresourceName
- file name of the resourcepublic void parseValidatorDefinitions(Map<String,String> validators, InputStream is, String resourceName)
ValidatorFileParser
parseValidatorDefinitions
in interface ValidatorFileParser
validators
- map of validatorsis
- The input streamresourceName
- The location of the input streampublic String getTextValue(Element valueEle)
valueEle
- the given DOM elementCharacterData
,
EntityReference
,
Comment
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.