Package net.objecthunter.exp4j
Class ValidationResult
- java.lang.Object
-
- net.objecthunter.exp4j.ValidationResult
-
- All Implemented Interfaces:
java.io.Serializable
public final class ValidationResult extends java.lang.Object implements java.io.Serializable
Contains the validation result for a givenExpression
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ValidationResult
SUCCESS
A static class representing a successful validation result
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
-
-
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
-
-