|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springjutsu.validation.rules.ValidationEntity
public class ValidationEntity
A cacheable java description of the XML validation rules. Parsed from XML by @link{ValidationDefinitionParser}, this class will contain the context validation rules to execute for a given class, keyed by path, as well as the model rules which are always evaluated for a class. The ValidationEntity objects are stored by the
ValidationRule,
ValidationEntityDefinitionParser,
ValidationRulesContainer| Constructor Summary | |
|---|---|
ValidationEntity()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addRule(ValidationRule rule)
Adds a rule. |
void |
addTemplateReference(ValidationTemplateReference reference)
Add a template reference. |
void |
addValidationTemplate(ValidationTemplate template)
Adds a validation template |
List<String> |
getExcludedPaths()
|
List<ValidationRule> |
getRules()
|
List<ValidationTemplateReference> |
getTemplateReferences()
|
Class |
getValidationClass()
|
List<ValidationRule> |
getValidationRules(String form)
Return the context rules for the given string path. |
List<ValidationTemplate> |
getValidationTemplates()
|
void |
setExcludedPaths(List<String> excludedPaths)
|
void |
setRules(List<ValidationRule> rules)
|
void |
setTemplateReferences(List<ValidationTemplateReference> templateReferences)
|
void |
setValidationClass(Class<?> validationClass)
|
void |
setValidationTemplates(List<ValidationTemplate> validationTemplates)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationEntity()
| Method Detail |
|---|
public void addRule(ValidationRule rule)
rule - The model rule to add.public void addTemplateReference(ValidationTemplateReference reference)
reference - The template reference to add.public void addValidationTemplate(ValidationTemplate template)
template - the tempalte to add.public List<ValidationRule> getValidationRules(String form)
form - String representing form to get rules for.
public Class getValidationClass()
public void setValidationClass(Class<?> validationClass)
validationClass - The class these rules are for.public List<ValidationTemplate> getValidationTemplates()
public void setValidationTemplates(List<ValidationTemplate> validationTemplates)
validationTemplates - the validationTemplates to setpublic List<ValidationTemplateReference> getTemplateReferences()
public void setTemplateReferences(List<ValidationTemplateReference> templateReferences)
templateReferences - the templateReferences to setpublic List<ValidationRule> getRules()
public void setRules(List<ValidationRule> rules)
rules - the rules to setpublic List<String> getExcludedPaths()
public void setExcludedPaths(List<String> excludedPaths)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||