jhplot.math.exp4j
Class ValidationResult
- java.lang.Object
-
- jhplot.math.exp4j.ValidationResult
-
public class ValidationResult extends java.lang.Object
Contains the validation result for a givenExpression
-
-
Field Summary
Fields Modifier and Type Field and Description static ValidationResult
SUCCESS
A static class representing a successful validation result
-
Constructor Summary
Constructors Constructor and Description ValidationResult(boolean valid, java.util.List<java.lang.String> errors)
Create a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<java.lang.String>
getErrors()
Get the list of errors describing the issues while validating the expressionboolean
isValid()
Check if an expression has been validated successfully
-
-
-
Field Detail
-
SUCCESS
public static final ValidationResult SUCCESS
A static class representing a successful validation result
-
-
Constructor Detail
-
ValidationResult
public ValidationResult(boolean valid, java.util.List<java.lang.String> errors)
Create a new instance- Parameters:
valid
- Whether the validation of the expression was successfulerrors
- The list of errors returned if the validation was unsuccessful
-
-
Method Detail
-
isValid
public boolean isValid()
Check if an expression has been validated successfully- Returns:
- true if the validation was successful, false otherwise
-
getErrors
public java.util.List<java.lang.String> getErrors()
Get the list of errors describing the issues while validating the expression- Returns:
- The List of errors
-
-
DMelt 3.0 © DataMelt by jWork.ORG