Package org.jboss.windup.config
Class ValidationResult
- java.lang.Object
-
- org.jboss.windup.config.ValidationResult
-
public class ValidationResult extends Object
Indicates the result of a validation operation.- Author:
- Jesse Sightler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValidationResult.Level
-
Field Summary
Fields Modifier and Type Field Description static ValidationResultSUCCESSIndicates that the validation was successful (with no attached message).
-
Constructor Summary
Constructors Constructor Description ValidationResult()DO NOT USE - This is here so that Furnace can create proxies.ValidationResult(ValidationResult.Level level, String message)Indicates the success of failure of a validation, as well as a short informative message for the user.ValidationResult(ValidationResult.Level level, String message, boolean promptDefault)Indicates the success of failure of a validation, as well as a short informative message for the user and what value to assume as a default for the prompt message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ValidationResult.LevelgetLevel()Returns the validation level (error, prompt, etc).StringgetMessage()Returns a readable message to display to the user.booleangetPromptDefault()Gets the default prompt value forValidationResult.Level.PROMPT_TO_CONTINUEresults.inthashCode()booleanisSuccess()Indicates whether this is considered a valid response.StringtoString()
-
-
-
Field Detail
-
SUCCESS
public static final ValidationResult SUCCESS
Indicates that the validation was successful (with no attached message).
-
-
Constructor Detail
-
ValidationResult
public ValidationResult(ValidationResult.Level level, String message, boolean promptDefault)
Indicates the success of failure of a validation, as well as a short informative message for the user and what value to assume as a default for the prompt message.This only applies to
ValidationResult.Level.PROMPT_TO_CONTINUE.
-
ValidationResult
public ValidationResult(ValidationResult.Level level, String message)
Indicates the success of failure of a validation, as well as a short informative message for the user.
-
ValidationResult
public ValidationResult()
DO NOT USE - This is here so that Furnace can create proxies.
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
Indicates whether this is considered a valid response.
-
getPromptDefault
public boolean getPromptDefault()
Gets the default prompt value forValidationResult.Level.PROMPT_TO_CONTINUEresults.
-
getLevel
public ValidationResult.Level getLevel()
Returns the validation level (error, prompt, etc).
-
getMessage
public String getMessage()
Returns a readable message to display to the user.
-
-