Package com.inrupt.client
Class ValidationResult
java.lang.Object
com.inrupt.client.ValidationResult
The result of performing validation on a
Resource
.-
Constructor Summary
ConstructorDescriptionValidationResult
(boolean valid, String... messages) Create a ValidationResult object.ValidationResult
(boolean valid, List<String> messages) Create a ValidationResult object. -
Method Summary
Modifier and TypeMethodDescriptionThe messages from validation.boolean
isValid()
The result of the validation.
-
Constructor Details
-
ValidationResult
Create a ValidationResult object.- Parameters:
valid
- the result from validationmessages
- the messages from validation method
-
ValidationResult
Create a ValidationResult object.- Parameters:
valid
- the result from validationmessages
- the messages from validation method
-
-
Method Details
-
isValid
public boolean isValid()The result of the validation.- Returns:
- the valid boolean value
-
getResults
The messages from validation.- Returns:
- the result messages
-