Package rife.cmf.validation
Class SupportedImage
java.lang.Object
rife.validation.AbstractValidationRule
rife.validation.PropertyValidationRule
rife.cmf.validation.CmfPropertyValidationRule
rife.cmf.validation.SupportedImage
- All Implemented Interfaces:
Cloneable
,ValidationRule
A validation rule that checks if the data in a property can be
loaded as a supported image format without errors.
- Since:
- 1.0
-
Constructor Summary
-
Method Summary
Methods inherited from class rife.cmf.validation.CmfPropertyValidationRule
getFragment, setCachedLoadedData
Methods inherited from class rife.validation.PropertyValidationRule
getLoadingErrors, getPropertyName, getSubject, setLoadingErrors, setPropertyName, setSubject
Methods inherited from class rife.validation.AbstractValidationRule
clone, getBean, setBean
-
Constructor Details
-
SupportedImage
Creates a newSupportedImage
instance.- Parameters:
propertyName
- the name of the property that has to be validated- Since:
- 1.0
-
-
Method Details
-
validate
public boolean validate()- Specified by:
validate
in interfaceValidationRule
- Specified by:
validate
in classAbstractValidationRule
-
getError
- Specified by:
getError
in interfaceValidationRule
- Specified by:
getError
in classAbstractValidationRule
-