public class ValidationMessage extends Object implements Serializable
An error or warning for a desired configuration option value.
Constructor and Description |
---|
ValidationMessage()
Default constructor for a new ValidationMessage object.
|
Modifier and Type | Method and Description |
---|---|
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 ValidationMessage()
public String getMessage()
public void setMessage(String message)
message
- A message describing the error or warning.public ValidationMessage withMessage(String message)
Returns a reference to this object so that method calls can be chained together.
message
- A message describing the error or warning.public String getSeverity()
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.
Constraints:
Allowed Values: error, warning
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(String severity)
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.
Constraints:
Allowed Values: error, warning
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(String severity)
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 a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: error, warning
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)
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.
Constraints:
Allowed Values: error, warning
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)
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 a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: error, warning
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 getNamespace()
public void setNamespace(String namespace)
namespace
- public ValidationMessage withNamespace(String namespace)
Returns a reference to this object so that method calls can be chained together.
namespace
- public String getOptionName()
public void setOptionName(String optionName)
optionName
- public ValidationMessage withOptionName(String optionName)
Returns a reference to this object so that method calls can be chained together.
optionName
- public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.