|
||||||||||
| 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
com.uwyn.rife.cmf.validation.CmfPropertyValidationRule
public abstract class CmfPropertyValidationRule
This abstract class extends the PropertyValidationRule class
to provide common functionality that is useful for all concrete CMF
validation rules.
| Constructor Summary | |
|---|---|
CmfPropertyValidationRule(String propertyName,
boolean fragment)
Instantiates a new CmfPropertyValidationRule instance. |
|
| Method Summary | |
|---|---|
boolean |
getFragment()
Indicates whether the property that is validated is a fragment. |
protected void |
setCachedLoadedData(Object data)
Sets the cached loaded data to a ConstrainedProperty if the content data has been successfully loaded during
validation. |
| Methods inherited from class com.uwyn.rife.site.PropertyValidationRule |
|---|
getLoadingErrors, getPropertyName, getSubject, setLoadingErrors, setPropertyName, setSubject |
| 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 |
|---|
public CmfPropertyValidationRule(String propertyName,
boolean fragment)
CmfPropertyValidationRule instance.
propertyName - the name of the propertyfragment - true if the property is a fragment; or
false if it's a complete document
| Method Detail |
|---|
public boolean getFragment()
true if the property is a fragment; or
false if it's a complete document
protected void setCachedLoadedData(Object data)
ConstrainedProperty if the content data has been successfully loaded during
validation. This prevents the data of having to be loaded again
elsewhere.
If the validation rule's bean is not Constrained or if it doesn't contain a
corresponding ConstrainedProperty, this method does nothing.
data - the loaded dataConstrainedProperty.setCachedLoadedData(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||