Class ValidationMessage

    • Constructor Detail

      • ValidationMessage

        public ValidationMessage()
    • Method Detail

      • setMessage

        public void setMessage​(String message)

        A message describing the error or warning.

        Parameters:
        message - A message describing the error or warning.
      • getMessage

        public String getMessage()

        A message describing the error or warning.

        Returns:
        A message describing the error or warning.
      • withMessage

        public ValidationMessage withMessage​(String message)

        A message describing the error or warning.

        Parameters:
        message - A message describing the error or warning.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setSeverity

        public void setSeverity​(String severity)

        An indication of the severity of this message:

        • error: This message indicates that this is not a valid setting for an option.
        • warning: This message is providing information you should take into account.
        Parameters:
        severity - An indication of the severity of this message:

        • error: This message indicates that this is not a valid setting for an option.
        • warning: This message is providing information you should take into account.
        See Also:
        ValidationSeverity
      • getSeverity

        public String getSeverity()

        An indication of the severity of this message:

        • error: This message indicates that this is not a valid setting for an option.
        • warning: This message is providing information you should take into account.
        Returns:
        An indication of the severity of this message:

        • error: This message indicates that this is not a valid setting for an option.
        • warning: This message is providing information you should take into account.
        See Also:
        ValidationSeverity
      • withSeverity

        public ValidationMessage withSeverity​(String severity)

        An indication of the severity of this message:

        • error: This message indicates that this is not a valid setting for an option.
        • warning: This message is providing information you should take into account.
        Parameters:
        severity - An indication of the severity of this message:

        • error: This message indicates that this is not a valid setting for an option.
        • warning: This message is providing information you should take into account.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ValidationSeverity
      • setSeverity

        public void setSeverity​(ValidationSeverity severity)

        An indication of the severity of this message:

        • error: This message indicates that this is not a valid setting for an option.
        • warning: This message is providing information you should take into account.
        Parameters:
        severity - An indication of the severity of this message:

        • error: This message indicates that this is not a valid setting for an option.
        • warning: This message is providing information you should take into account.
        See Also:
        ValidationSeverity
      • withSeverity

        public ValidationMessage withSeverity​(ValidationSeverity severity)

        An indication of the severity of this message:

        • error: This message indicates that this is not a valid setting for an option.
        • warning: This message is providing information you should take into account.
        Parameters:
        severity - An indication of the severity of this message:

        • error: This message indicates that this is not a valid setting for an option.
        • warning: This message is providing information you should take into account.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ValidationSeverity
      • setNamespace

        public void setNamespace​(String namespace)

        Parameters:
        namespace -
      • getNamespace

        public String getNamespace()

        Returns:
      • withNamespace

        public ValidationMessage withNamespace​(String namespace)

        Parameters:
        namespace -
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setOptionName

        public void setOptionName​(String optionName)

        Parameters:
        optionName -
      • getOptionName

        public String getOptionName()

        Returns:
      • withOptionName

        public ValidationMessage withOptionName​(String optionName)

        Parameters:
        optionName -
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object