public class XValidationResult extends Object implements IXValidationResult
IXValidationResult
.Constructor and Description |
---|
XValidationResult()
Creates a new validation result representing a successful validation (no validation error).
|
XValidationResult(boolean valid)
Creates a new validation result with an empty message.
|
XValidationResult(boolean valid,
String message)
Creates a new validation result with the given message.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
boolean |
getValid()
Deprecated.
|
boolean |
isValid() |
void |
setMessage(String message)
Deprecated.
Do not modify this instance, use the appropriate constructor with the data you require.
|
void |
setValid(boolean valid)
Deprecated.
Do not modify this instance, use the appropriate constructor with the data you require.
|
public XValidationResult()
public XValidationResult(boolean valid)
valid
- Whether the submitted values were valid.public XValidationResult(boolean valid, String message)
valid
- Whether the submitted values were valid.message
- The error message to display in case the values are not valid.public String getMessage()
getMessage
in interface IXValidationResult
IXValidationResult.isValid()
returns false
, the error message that should be displayed.@Deprecated public void setMessage(String message)
message
- the message@Deprecated public boolean getValid()
isValid()
.public boolean isValid()
isValid
in interface IXValidationResult
@Deprecated public void setValid(boolean valid)
valid
- Whether the submitted values are valid.Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.