Class ValidationContext.ValidationContextPredicates

java.lang.Object
com.adobe.epubcheck.opf.ValidationContext.ValidationContextPredicates
Enclosing class:
ValidationContext

public static final class ValidationContext.ValidationContextPredicates extends Object
Utility to create Predicates applying to ValidationContext instances.
  • Constructor Details

    • ValidationContextPredicates

      private ValidationContextPredicates()
  • Method Details

    • hasProp

      public static com.google.common.base.Predicate<ValidationContext> hasProp(Property property)
      Returns a predicate that evaluates to true if the given property is declared in the context being tested.
    • hasPubType

      public static com.google.common.base.Predicate<ValidationContext> hasPubType(PublicationType type)
      Returns a predicate that evaluates to true if the given publication dc:type is declared in the context being tested.
    • mimetype

      public static com.google.common.base.Predicate<ValidationContext> mimetype(String mimetype)
      Returns a predicate that evaluates to true if the context being tested has the given media type.
    • path

      public static com.google.common.base.Predicate<ValidationContext> path(String path)
      Returns a predicate that evaluates to true if the context being tested has the given path.
    • profile

      public static com.google.common.base.Predicate<ValidationContext> profile(EPUBProfile profile)
      Returns a predicate that evaluates to true if the context being tested declares the given validation profile.
    • version

      public static com.google.common.base.Predicate<ValidationContext> version(EPUBVersion version)
      Returns a predicate that evaluates to true if the context being tested declares the given EPUB version.