public class ValidationMessage
extends java.lang.Object
implements java.io.Serializable
An error or warning for a desired configuration option value.
| コンストラクタと説明 |
|---|
ValidationMessage()
Default constructor for a new ValidationMessage object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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)
Returns a reference to this object so that method calls can be chained together.
|
ValidationMessage |
withOptionName(java.lang.String optionName)
Returns a reference to this object so that method calls can be chained together.
|
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:
|
public ValidationMessage()
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message - A message describing the error or warning.public ValidationMessage withMessage(java.lang.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 java.lang.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.
ValidationSeveritypublic void setSeverity(java.lang.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.
ValidationSeveritypublic ValidationMessage withSeverity(java.lang.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.
ValidationSeveritypublic 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.
ValidationSeveritypublic 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.
ValidationSeveritypublic java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
namespace - public ValidationMessage withNamespace(java.lang.String namespace)
Returns a reference to this object so that method calls can be chained together.
namespace - public java.lang.String getOptionName()
public void setOptionName(java.lang.String optionName)
optionName - public ValidationMessage withOptionName(java.lang.String optionName)
Returns a reference to this object so that method calls can be chained together.
optionName - public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object