Class ValidationResult

java.lang.Object
com.inrupt.client.ValidationResult

public class ValidationResult extends Object
The result of performing validation on a Resource.
  • Constructor Details

    • ValidationResult

      public ValidationResult(boolean valid, String... messages)
      Create a ValidationResult object.
      Parameters:
      valid - the result from validation
      messages - the messages from validation method
    • ValidationResult

      public ValidationResult(boolean valid, List<String> messages)
      Create a ValidationResult object.
      Parameters:
      valid - the result from validation
      messages - the messages from validation method
  • Method Details

    • isValid

      public boolean isValid()
      The result of the validation.
      Returns:
      the valid boolean value
    • getResults

      public List<String> getResults()
      The messages from validation.
      Returns:
      the result messages