Package rife.cmf

Class MimeTypeValidation

java.lang.Object
rife.cmf.MimeTypeValidation

public final class MimeTypeValidation extends Object
Returns appropriate validation rules for supported CMF mime types.
Since:
1.7
  • 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 built
      constrainedProperty - 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