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
Constructors -
Method Summary
Methods inherited from class rife.cmf.validation.CmfPropertyValidationRule
getFragment, setCachedLoadedDataMethods inherited from class rife.validation.PropertyValidationRule
getLoadingErrors, getPropertyName, getSubject, setLoadingErrors, setPropertyName, setSubjectMethods inherited from class rife.validation.AbstractValidationRule
clone, getBean, setBean
-
Constructor Details
-
SupportedImage
Creates a newSupportedImageinstance.- Parameters:
propertyName- the name of the property that has to be validated- Since:
- 1.0
-
-
Method Details
-
validate
public boolean validate()- Specified by:
validatein interfaceValidationRule- Specified by:
validatein classAbstractValidationRule
-
getError
- Specified by:
getErrorin interfaceValidationRule- Specified by:
getErrorin classAbstractValidationRule
-