|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.uwyn.rife.site.AbstractValidationRule
com.uwyn.rife.site.PropertyValidationRule
public abstract class PropertyValidationRule
This abstract class extends the AbstractValidationRule class
to provide common functionality that is useful for all bean property
validation rules.
| Constructor Summary | |
|---|---|
protected |
PropertyValidationRule(String propertyName)
Instantiates a new PropertyValidationRule instance. |
| Method Summary | ||
|---|---|---|
Collection<String> |
getLoadingErrors()
Retrieves the list of error messages that occurred during the loading of content data. |
|
String |
getPropertyName()
Retrieves the name of the property. |
|
String |
getSubject()
Retrieves the subject name of the property. |
|
protected void |
setLoadingErrors(Collection<String> errors)
Set the list of error messages that occurred during the loading of content data. |
|
|
setPropertyName(String propertyName)
Set the name of the property. |
|
PropertyValidationRule |
setSubject(String subjectName)
Set the subject that the property refers to. |
|
| Methods inherited from class com.uwyn.rife.site.AbstractValidationRule |
|---|
clone, getBean, getError, setBean, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected PropertyValidationRule(String propertyName)
PropertyValidationRule instance.
propertyName - the name of the property| Method Detail |
|---|
public <T extends PropertyValidationRule> T setPropertyName(String propertyName)
propertyName - the name of the propertygetPropertyName()public String getPropertyName()
setPropertyName(java.lang.String)public PropertyValidationRule setSubject(String subjectName)
subjectName - the subject name of the propertygetSubject()public String getSubject()
getSubject in interface ValidationRulegetSubject in class AbstractValidationRulesetSubject(java.lang.String)protected void setLoadingErrors(Collection<String> errors)
errors - the collection of errors messagespublic Collection<String> getLoadingErrors()
null if the data was null or the property
didn't exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||