Package com.adobe.epubcheck.opf
Class ValidationContext.ValidationContextPredicates
- java.lang.Object
-
- com.adobe.epubcheck.opf.ValidationContext.ValidationContextPredicates
-
- Enclosing class:
- ValidationContext
public static final class ValidationContext.ValidationContextPredicates extends java.lang.ObjectUtility to createPredicates applying toValidationContextinstances.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateValidationContextPredicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.common.base.Predicate<ValidationContext>hasProp(Property property)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>mimetype(java.lang.String mimetype)Returns a predicate that evaluates totrueif the context being tested has the given media type.static com.google.common.base.Predicate<ValidationContext>path(java.lang.String path)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.
-
-
-
Method Detail
-
hasProp
public static com.google.common.base.Predicate<ValidationContext> hasProp(Property property)
Returns a predicate that evaluates totrueif 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 totrueif the given publicationdc:typeis declared in the context being tested.
-
mimetype
public static com.google.common.base.Predicate<ValidationContext> mimetype(java.lang.String mimetype)
Returns a predicate that evaluates totrueif the context being tested has the given media type.
-
path
public static com.google.common.base.Predicate<ValidationContext> path(java.lang.String path)
Returns a predicate that evaluates totrueif 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 totrueif 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 totrueif the context being tested declares the given EPUB version.
-
-