Class ValidFileTypePredicate

java.lang.Object
de.hybris.platform.cmsfacades.media.validator.predicate.ValidFileTypePredicate
All Implemented Interfaces:
Predicate<String>

public class ValidFileTypePredicate extends Object implements Predicate<String>
Predicate to test if a given media file type maps to an existing extension type.

Returns TRUE if the type exists; FALSE otherwise.

  • Constructor Details

    • ValidFileTypePredicate

      public ValidFileTypePredicate()
  • Method Details

    • test

      public boolean test(String target)
      Specified by:
      test in interface Predicate<String>
    • getSupportedTypes

      protected String getSupportedTypes()
    • setSupportedTypes

      public void setSupportedTypes(String supportedTypes)