Class ValidatorMap

java.lang.Object
com.adobe.epubcheck.util.ValidatorMap

public final class ValidatorMap extends Object
A utility to store XMLValidator references and return a list of validators applicable to a given ValidationContext.
  • Field Details

  • Constructor Details

  • Method Details

    • builder

      public static ValidatorMap.Builder builder()
      Returns a new builder.
    • getValidators

      public List<XMLValidator> getValidators(ValidationContext context)
      Returns a list of XMLValidators applicable to the given ValidationContext, as determined by the Predicate used to build this map. The validators are returned in the order in which they have been added to the builder.

      XMLValidator instances are built dynamically, only when the context satisfies the underlying predicate.

      Parameters:
      context - a validation context
      Returns:
      the list of validators applicable to context