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