org.springjutsu.validation.namespace
Class ValidationEntityDefinitionParser

java.lang.Object
  extended by 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

Nested Class Summary
 class ValidationEntityDefinitionParser.ValidationParseException
          Exception when validation cannot be parsed.
protected  class ValidationEntityDefinitionParser.ValidationStructure
           
 
Constructor Summary
ValidationEntityDefinitionParser()
           
 
Method Summary
 org.springframework.beans.factory.config.BeanDefinition parse(Element entityNode, org.springframework.beans.factory.xml.ParserContext parserContext)
          Do actual parsing.
protected  ValidationEntityDefinitionParser.ValidationStructure parseNestedValidation(Element ruleNode, Class<?> modelClass)
          Parses nested validation rule and template-ref structures
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationEntityDefinitionParser

public ValidationEntityDefinitionParser()
Method Detail

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 node
modelClass - 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.