|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springjutsu.validation.rules.ValidationRulesContainer
public class ValidationRulesContainer
This serves as a container for all parsed validation rules. The container serves the rules when requested to the
| Constructor Summary | |
|---|---|
ValidationRulesContainer()
|
|
| Method Summary | |
|---|---|
List<Class<?>> |
getExcludeAnnotations()
|
List<ValidationRule> |
getRules(Class<?> clazz,
String form)
Retrieves rules stored for a given class. |
ValidationEntity |
getValidationEntity(Class<?> clazz)
|
Boolean |
hasRulesForClass(Class<?> clazz)
|
protected void |
initRuleInheritance()
Copy rules from parent classes into child classes. |
protected void |
initValidationEntityMap()
Inititalizes the validation entity map by scanning for |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
|
void |
setExcludeAnnotations(List<Class<?>> excludeAnnotations)
|
Boolean |
supportsClass(Class<?> clazz)
|
protected void |
unwrapTemplateReference(ValidationTemplateReference templateReference,
List<ValidationRule> dumpTo,
Stack<String> usedNames,
String baseName,
Map<String,ValidationTemplate> validationTemplateMap)
|
protected void |
unwrapTemplateReferences()
Since use of template references and performing error checking on them would otherwise be expensive, unwrap all template references into rule sets during initialization. |
protected void |
unwrapValidationRuleTemplateReferences(ValidationRule rule,
Stack<String> usedNames,
String baseName,
Map<String,ValidationTemplate> validationTemplateMap)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationRulesContainer()
| Method Detail |
|---|
public ValidationEntity getValidationEntity(Class<?> clazz)
protected void initValidationEntityMap()
protected void initRuleInheritance()
protected void unwrapTemplateReferences()
protected void unwrapTemplateReference(ValidationTemplateReference templateReference,
List<ValidationRule> dumpTo,
Stack<String> usedNames,
String baseName,
Map<String,ValidationTemplate> validationTemplateMap)
protected void unwrapValidationRuleTemplateReferences(ValidationRule rule,
Stack<String> usedNames,
String baseName,
Map<String,ValidationTemplate> validationTemplateMap)
public List<ValidationRule> getRules(Class<?> clazz,
String form)
clazz - The class to retrieve rules for.form - A string describing the form which the context
rules are to apply to.
public Boolean hasRulesForClass(Class<?> clazz)
clazz - The class to check rules for
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwarebeanFactory - the beanFactory to setpublic Boolean supportsClass(Class<?> clazz)
clazz - the class to determine support for.
public List<Class<?>> getExcludeAnnotations()
public void setExcludeAnnotations(List<Class<?>> excludeAnnotations)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||