public final class Success extends Object implements Validator.Result
Modifier and Type | Method and Description |
---|---|
String |
get()
If valid returns the value in string form.
|
String |
getErrorMessage()
If validation failed, the reason is found here in plain text.
|
String |
getErrorMessageHtml()
If validation failed, the reason is found here in html.
|
boolean |
isValid()
Whether the validation succeeded.
|
public Success(String value)
public boolean isValid()
Validator.Result
isValid
in interface Validator.Result
public String getErrorMessage()
Validator.Result
getErrorMessage
in interface Validator.Result
public String getErrorMessageHtml()
Validator.Result
getErrorMessageHtml
in interface Validator.Result
public String get() throws IllegalStateException
Validator.Result
get
in interface Validator.Result
IllegalStateException
- if the result is not valid.Copyright © 2002-2022 Atlassian. All Rights Reserved.