org.springjutsu.validation.namespace
Class ValidationEntityDefinitionParser
java.lang.Object
org.springjutsu.validation.namespace.ValidationEntityDefinitionParser
- All Implemented Interfaces:
- org.springframework.beans.factory.xml.BeanDefinitionParser
public class ValidationEntityDefinitionParser
- extends Object
- implements org.springframework.beans.factory.xml.BeanDefinitionParser
Parses XML from the validation namespace into a @link{ValidationEntity}
object to be stored in the @link{ValidationEntityContainer}
- Author:
- Clark Duplichien, Taylor Wicksell
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidationEntityDefinitionParser
public ValidationEntityDefinitionParser()
parse
public org.springframework.beans.factory.config.BeanDefinition parse(Element entityNode,
org.springframework.beans.factory.xml.ParserContext parserContext)
- Do actual parsing.
Since rules may be nested, delegate to
#parseNestedRules(Element, Class)
where necessary.
- Specified by:
parse in interface org.springframework.beans.factory.xml.BeanDefinitionParser
parseNestedValidation
protected ValidationEntityDefinitionParser.ValidationStructure parseNestedValidation(Element ruleNode,
Class<?> modelClass)
- Parses nested validation rule and template-ref structures
- Parameters:
ruleNode - the ValidationRule nodemodelClass - the model class
- Returns:
- a @link{ValidationStructure} object whose
nested rules and template references are those
rules and template references stemming from the ruleNode.
Copyright © 2013 Spring Jutsu. All Rights Reserved.