Class AbstractValidator<V>

    • Constructor Detail

      • AbstractValidator

        public AbstractValidator()
        The constructor.
    • Method Detail

      • getId

        public String getId()
        AbstractValidator only provides a default implementation of this method.
        ATTENTION:
        This default implementation returns the simple class name of the actual Validator implementation. This strategy is chosen for simplicity when implementing a new Validator. To ensure stable IDs override this method and return a string constant. This shall at least be done when the name of the class is changed to provide backwards compatibility.
        Specified by:
        getId in interface Validator<V>
        Returns:
        the identifier of this Validator.
        See Also:
        ValidationResult.getCode()
      • isDynamic

        public boolean isDynamic()
        This method determines if this Validator is dynamic. Here dynamic means that the validation of the same input may not always return the same validation result (e.g. it holds references to instances that have dynamic impact on the validation).
        Returns:
        true if this Validator is dynamic, false otherwise.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object