Class DelegatingMapValidator<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Field Detail

      • DEFAULT_KEY

        @NotNull
        public static final @NotNull java.lang.String DEFAULT_KEY
        The default key.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DelegatingMapValidator

        public DelegatingMapValidator​(@NotNull
                                      @NotNull ValidatorPreferences validatorPreferences)
        Creates a new instance for the default key.
        Parameters:
        validatorPreferences - the validator preferences to use
    • Method Detail

      • validateAll

        public void validateAll​(@NotNull
                                @NotNull MapModel<G,​A,​R> mapModel)
        Performs all validations on a map.
        Parameters:
        mapModel - map to validate
      • addValidator

        public void addValidator​(@NotNull
                                 @NotNull Validator<G,​A,​R> validator)
        Adds a Validator that might to be queried. The validator is queried for a KeyName and the preferences are queried whether this validator module should or shouldn't be active.
        Parameters:
        validator - to be queried
      • iterator

        @NotNull
        public @NotNull java.util.Iterator<Validator<G,​A,​R>> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<G extends GameObject<G,​A,​R>>