java.lang.Object
com.aoapps.lang.validation.InvalidResult
- All Implemented Interfaces:
ValidationResult
,Serializable
An invalid result with a user-friendly message.
- Author:
- AO Industries, Inc.
- See Also:
-
Constructor Summary
ConstructorDescriptionInvalidResult
(Resources resources, String key) InvalidResult
(Resources resources, String key, Serializable... args) -
Method Summary
-
Constructor Details
-
InvalidResult
-
InvalidResult
- Parameters:
args
- No defensive copy
-
-
Method Details
-
isValid
public boolean isValid()Description copied from interface:ValidationResult
Gets the validation result.- Specified by:
isValid
in interfaceValidationResult
-
toString
Description copied from interface:ValidationResult
Gets a description of why invalid in the current thread's locale. Should be simply "Valid" (or translation) for valid.- Specified by:
toString
in interfaceValidationResult
- Overrides:
toString
in classObject
-
getResources
-
getKey
-
getArgs
- Returns:
- No defensive copy.
-