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
ConstructorsConstructorDescriptionInvalidResult(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:ValidationResultGets the validation result.- Specified by:
isValidin interfaceValidationResult
-
toString
Description copied from interface:ValidationResultGets a description of why invalid in the current thread's locale. Should be simply "Valid" (or translation) for valid.- Specified by:
toStringin interfaceValidationResult- Overrides:
toStringin classObject
-
getResources
-
getKey
-
getArgs
- Returns:
- No defensive copy.
-
