org.springjutsu.validation.rules
Class ValidationTemplateReference

java.lang.Object
  extended by org.springjutsu.validation.rules.ValidationTemplateReference

public class ValidationTemplateReference
extends Object

A java representation of an XML template-ref Template references will be unwrapped into rule sets during initialization of the ValidationRulesContainer in order to save on processing time down the road.

Author:
Clark Duplichien

Field Summary
protected  String basePath
          The base path representing the object to be validated by the template.
protected  List<String> formConstraints
          A list of form mappings, if provided, the rule will only execute when the specified form(s) is/are loaded.
protected  String templateName
          The name of the validation template to reference.
 
Constructor Summary
ValidationTemplateReference(String basePath, String templateName)
          Default constructor.
 
Method Summary
 String getBasePath()
           
 List<String> getFormConstraints()
           
 String getTemplateName()
           
 void setBasePath(String basePath)
           
 void setFormConstraints(List<String> formConstraints)
           
 void setTemplateName(String templateName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

basePath

protected String basePath
The base path representing the object to be validated by the template.


templateName

protected String templateName
The name of the validation template to reference.


formConstraints

protected List<String> formConstraints
A list of form mappings, if provided, the rule will only execute when the specified form(s) is/are loaded.

Constructor Detail

ValidationTemplateReference

public ValidationTemplateReference(String basePath,
                                   String templateName)
Default constructor. Initialize.

Parameters:
basePath - The Base path.
templateName - The template name referenced.
Method Detail

getBasePath

public String getBasePath()
Returns:
the basePath

setBasePath

public void setBasePath(String basePath)
Parameters:
basePath - the basePath to set

getTemplateName

public String getTemplateName()
Returns:
the templateName

setTemplateName

public void setTemplateName(String templateName)
Parameters:
templateName - the templateName to set

getFormConstraints

public List<String> getFormConstraints()

setFormConstraints

public void setFormConstraints(List<String> formConstraints)


Copyright © 2013 Spring Jutsu. All Rights Reserved.