Package rife.cmf
Class MimeTypeValidation
java.lang.Object
rife.cmf.MimeTypeValidation
Returns appropriate validation rules for supported CMF mime types.
- Since:
- 1.7
-
Method Summary
Modifier and TypeMethodDescriptionstatic CmfPropertyValidationRule
getValidationRule
(MimeType mimeType, ConstrainedProperty constrainedProperty) Constructs and returns a CMF-specific validation rule that is able to validate data for this mime type.
-
Method Details
-
getValidationRule
public static CmfPropertyValidationRule getValidationRule(MimeType mimeType, ConstrainedProperty constrainedProperty) Constructs and returns a CMF-specific validation rule that is able to validate data for this mime type.- Parameters:
mimeType
- the mime type for which the validation rule has to be builtconstrainedProperty
- an instance of the property for which the validation rule has to be built- Returns:
- an instance of the validation rule; or
null
of no validation rule could be created - Since:
- 1.7
-