|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork.validator.ValidatorFileParser
public class ValidatorFileParser
Parse the validation file. (eg. MyAction-validation.xml, MyAction-actionAlias-validation.xml) to return a List of ValidatorConfig encapsulating the validator information.
ValidatorConfig| Constructor Summary | |
|---|---|
ValidatorFileParser()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getTextValue(org.w3c.dom.Element valueEle)
Extract trimmed text value from the given DOM element, ignoring XML comments. |
static java.util.List |
parseActionValidatorConfigs(java.io.InputStream is,
java.lang.String resourceName)
Parse resource for a list of ValidatorConfig objects. |
static void |
parseValidatorDefinitions(java.io.InputStream is)
Deprecated. Use parseValidatorDefinitions(InputStream, String) |
static void |
parseValidatorDefinitions(java.io.InputStream is,
java.lang.String resourceName)
Parses validator definitions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidatorFileParser()
| Method Detail |
|---|
public static java.util.List parseActionValidatorConfigs(java.io.InputStream is,
java.lang.String resourceName)
is - input stream to the resourceresourceName - file name of the resource
public static void parseValidatorDefinitions(java.io.InputStream is)
is - The input stream
public static void parseValidatorDefinitions(java.io.InputStream is,
java.lang.String resourceName)
is - The input streamresourceName - The location of the input streampublic static java.lang.String getTextValue(org.w3c.dom.Element valueEle)
CharacterData,
EntityReference,
Comment
|
XWork Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||