public class ValidationMessage
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
An error or warning for a desired configuration option value.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
message
A message describing the error or warning.
|
private java.lang.String |
namespace
|
private java.lang.String |
optionName
|
private java.lang.String |
severity
An indication of the severity of this message:
|
Constructor and Description |
---|
ValidationMessage() |
Modifier and Type | Method and Description |
---|---|
ValidationMessage |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMessage()
A message describing the error or warning.
|
java.lang.String |
getNamespace()
|
java.lang.String |
getOptionName()
|
java.lang.String |
getSeverity()
An indication of the severity of this message:
|
int |
hashCode() |
void |
setMessage(java.lang.String message)
A message describing the error or warning.
|
void |
setNamespace(java.lang.String namespace)
|
void |
setOptionName(java.lang.String optionName)
|
void |
setSeverity(java.lang.String severity)
An indication of the severity of this message:
|
void |
setSeverity(ValidationSeverity severity)
An indication of the severity of this message:
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ValidationMessage |
withMessage(java.lang.String message)
A message describing the error or warning.
|
ValidationMessage |
withNamespace(java.lang.String namespace)
|
ValidationMessage |
withOptionName(java.lang.String optionName)
|
ValidationMessage |
withSeverity(java.lang.String severity)
An indication of the severity of this message:
|
ValidationMessage |
withSeverity(ValidationSeverity severity)
An indication of the severity of this message:
|
private java.lang.String message
A message describing the error or warning.
private java.lang.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.private java.lang.String namespace
private java.lang.String optionName
public void setMessage(java.lang.String message)
A message describing the error or warning.
message
- A message describing the error or warning.public java.lang.String getMessage()
A message describing the error or warning.
public ValidationMessage withMessage(java.lang.String message)
A message describing the error or warning.
message
- A message describing the error or warning.public void setSeverity(java.lang.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.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.ValidationSeverity
public java.lang.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.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.ValidationSeverity
public ValidationMessage withSeverity(java.lang.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.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.ValidationSeverity
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.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.ValidationSeverity
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.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.ValidationSeverity
public void setNamespace(java.lang.String namespace)
namespace
- public java.lang.String getNamespace()
public ValidationMessage withNamespace(java.lang.String namespace)
namespace
- public void setOptionName(java.lang.String optionName)
optionName
- public java.lang.String getOptionName()
public ValidationMessage withOptionName(java.lang.String optionName)
optionName
- public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ValidationMessage clone()
clone
in class java.lang.Object