Class ValidatorMap.Builder
java.lang.Object
com.adobe.epubcheck.util.ValidatorMap.Builder
- Enclosing class:
ValidatorMap
A builder for the
ValidatorMap-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.google.common.collect.LinkedListMultimap<XMLValidators, com.google.common.base.Predicate<? super ValidationContext>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a newly createdValidatorMapfrom the validators added to this builder.put(XMLValidators validator) Puts the given validator in this map, applicable to any validation context.put(com.google.common.base.Predicate<? super ValidationContext> predicate, XMLValidators validator) Puts the given validator in this map and determines its applicability to a validation context by the given predicate.putAll(XMLValidators... validators) Puts all the given validators in this map, applicable to any validation context.putAll(com.google.common.base.Predicate<? super ValidationContext> predicate, XMLValidators... validators) Puts all the given validators in this map and determines their applicability to a validation context by the given predicate.
-
Field Details
-
validatorsBuilder
private com.google.common.collect.LinkedListMultimap<XMLValidators, com.google.common.base.Predicate<? super ValidationContext>> validatorsBuilder
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
put
public ValidatorMap.Builder put(com.google.common.base.Predicate<? super ValidationContext> predicate, XMLValidators validator) Puts the given validator in this map and determines its applicability to a validation context by the given predicate. -
putAll
public ValidatorMap.Builder putAll(com.google.common.base.Predicate<? super ValidationContext> predicate, XMLValidators... validators) Puts all the given validators in this map and determines their applicability to a validation context by the given predicate. -
put
Puts the given validator in this map, applicable to any validation context. -
putAll
Puts all the given validators in this map, applicable to any validation context. -
build
Returns a newly createdValidatorMapfrom the validators added to this builder.
-