Class ValidatorMap


  • public final class ValidatorMap
    extends java.lang.Object
    A utility to store XMLValidator references and return a list of validators applicable to a given ValidationContext.
    • Constructor Detail

    • Method Detail

      • getValidators

        public java.util.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