Class Validation
java.lang.Object
org.gcube.resourcemanagement.model.reference.properties.utilities.Validation
Result of a
PropertyValidator.- Author:
- Manuele Simi (ISTI CNR)
-
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationCreates a failed validation.Gets the validation message.booleanChecks if the validation was successful.static ValidationCreates a successful validation.
-
Method Details
-
success
Creates a successful validation.- Parameters:
message- the success message- Returns:
- the validation
-
fail
Creates a failed validation.- Parameters:
message- the failure message- Returns:
- the validation
-
getMessage
Gets the validation message.- Returns:
- the message
-
isSuccess
public boolean isSuccess()Checks if the validation was successful.- Returns:
- true if successful, false otherwise
-