Package com.adobe.epubcheck.util
Class ValidatorMap.Builder
- java.lang.Object
-
- com.adobe.epubcheck.util.ValidatorMap.Builder
-
- Enclosing class:
- ValidatorMap
public static final class ValidatorMap.Builder extends java.lang.ObjectA builder for theValidatorMap
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.LinkedListMultimap<XMLValidators,com.google.common.base.Predicate<? super ValidationContext>>validatorsBuilder
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidatorMapbuild()Returns a newly createdValidatorMapfrom the validators added to this builder.ValidatorMap.Builderput(XMLValidators validator)Puts the given validator in this map, applicable to any validation context.ValidatorMap.Builderput(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.ValidatorMap.BuilderputAll(XMLValidators... validators)Puts all the given validators in this map, applicable to any validation context.ValidatorMap.BuilderputAll(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 Detail
-
validatorsBuilder
private com.google.common.collect.LinkedListMultimap<XMLValidators,com.google.common.base.Predicate<? super ValidationContext>> validatorsBuilder
-
-
Method Detail
-
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
public ValidatorMap.Builder put(XMLValidators validator)
Puts the given validator in this map, applicable to any validation context.
-
putAll
public ValidatorMap.Builder putAll(XMLValidators... validators)
Puts all the given validators in this map, applicable to any validation context.
-
build
public ValidatorMap build()
Returns a newly createdValidatorMapfrom the validators added to this builder.
-
-