public class WildcardMatchConstraint extends java.lang.Object implements ValidationConstraint<WildcardMatch>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
pattern |
| Constructor and Description |
|---|
WildcardMatchConstraint() |
WildcardMatchConstraint(java.lang.String pattern) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(WildcardMatch annotation)
Configures constraint from associated annotation.
|
java.lang.String |
getPattern() |
boolean |
isValid(ValidationConstraintContext vcc,
java.lang.Object value)
Performs validation in context of target object on provided value.
|
void |
setPattern(java.lang.String pattern) |
static boolean |
validate(java.lang.Object value,
java.lang.String pattern) |
public WildcardMatchConstraint()
public WildcardMatchConstraint(java.lang.String pattern)
public java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
public void configure(WildcardMatch annotation)
ValidationConstraintconfigure in interface ValidationConstraint<WildcardMatch>public boolean isValid(ValidationConstraintContext vcc, java.lang.Object value)
ValidationConstraintisValid in interface ValidationConstraint<WildcardMatch>true if validation passes, otherwise false.public static boolean validate(java.lang.Object value,
java.lang.String pattern)
Copyright © 2003-present Jodd Team