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

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String getKey()
      Get a Key that uniquely identifies this Validator.
      boolean isDefaultEnabled()
      Get whether this Validator should be enabled per default.
      boolean isEnabled()
      Get whether this Validator is enabled.
      void setEnabled​(boolean enabled)
      Set whether this Validator should be enabled.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractValidator

        protected AbstractValidator​(@NotNull
                                    @NotNull ValidatorPreferences validatorPreferences)
                             throws java.lang.IllegalArgumentException
        Creates a new instance. The key is generated from the validator's name, which must end on "Checker".
        Parameters:
        validatorPreferences - the validator preferences to use
        Throws:
        java.lang.IllegalArgumentException - in case the validator's name does not end on "Checker".
      • AbstractValidator

        protected AbstractValidator​(@NotNull
                                    @NotNull ValidatorPreferences validatorPreferences,
                                    @NotNull
                                    @NotNull java.lang.String key)
        Creates a new instance.
        Parameters:
        validatorPreferences - the validator preferences to use
        key - Key