public class SimpleConstraintChecker extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AND |
static String |
BETWEEN |
static String |
CONTAINS |
static String |
ENDS_WITH |
static String |
EQUALS |
static String |
GREATER_THAN |
static String |
LESS_THAN |
static String |
MATCHES |
static String |
OLDER_THAN |
static String |
STARTS_WITH |
Constructor and Description |
---|
SimpleConstraintChecker() |
Modifier and Type | Method and Description |
---|---|
boolean |
check(Object inputValue,
String constraint)
Check value against expression and report to result
|
public static final String GREATER_THAN
public static final String LESS_THAN
public static final String EQUALS
public static final String BETWEEN
public static final String AND
public static final String CONTAINS
public static final String STARTS_WITH
public static final String ENDS_WITH
public static final String MATCHES
public static final String OLDER_THAN
public boolean check(Object inputValue, String constraint) throws NumberFormatException
inputValue
- the value to checkconstraint
- the constraint to check the value againstNumberFormatException
Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.