Checks if the provided value matches the variable pattern, if one is defined. Always true if no pattern is defined. @param value to check. @return true if it matches.
(String value)
| 53 | * @return true if it matches. |
| 54 | */ |
| 55 | boolean matches(String value) { |
| 56 | if (pattern == null) { |
| 57 | return true; |
| 58 | } |
| 59 | return pattern.matcher(value).matches(); |
| 60 | } |
| 61 | |
| 62 | @Override |
| 63 | public String getValue() { |
no outgoing calls