Class ValidationContext.ValidationContextPredicates
java.lang.Object
com.adobe.epubcheck.opf.ValidationContext.ValidationContextPredicates
- Enclosing class:
ValidationContext
Utility to create
Predicates applying to ValidationContext
instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.common.base.Predicate<ValidationContext> Returns a predicate that evaluates totrueif the given property is declared in the context being tested.static com.google.common.base.Predicate<ValidationContext> hasPubType(PublicationType type) Returns a predicate that evaluates totrueif the given publicationdc:typeis declared in the context being tested.static com.google.common.base.Predicate<ValidationContext> Returns a predicate that evaluates totrueif the context being tested has the given media type.static com.google.common.base.Predicate<ValidationContext> Returns a predicate that evaluates totrueif the context being tested has the given path.static com.google.common.base.Predicate<ValidationContext> profile(EPUBProfile profile) Returns a predicate that evaluates totrueif the context being tested declares the given validation profile.static com.google.common.base.Predicate<ValidationContext> version(EPUBVersion version) Returns a predicate that evaluates totrueif the context being tested declares the given EPUB version.
-
Constructor Details
-
ValidationContextPredicates
private ValidationContextPredicates()
-
-
Method Details
-
hasProp
Returns a predicate that evaluates totrueif the given property is declared in the context being tested. -
hasPubType
Returns a predicate that evaluates totrueif the given publicationdc:typeis declared in the context being tested. -
mimetype
Returns a predicate that evaluates totrueif the context being tested has the given media type. -
path
Returns a predicate that evaluates totrueif the context being tested has the given path. -
profile
Returns a predicate that evaluates totrueif the context being tested declares the given validation profile. -
version
Returns a predicate that evaluates totrueif the context being tested declares the given EPUB version.
-