public class WildcardPathMatchConstraint extends java.lang.Object implements ValidationConstraint<WildcardPathMatch>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
pattern |
Constructor and Description |
---|
WildcardPathMatchConstraint() |
WildcardPathMatchConstraint(java.lang.String pattern) |
Modifier and Type | Method and Description |
---|---|
void |
configure(WildcardPathMatch 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 WildcardPathMatchConstraint()
public WildcardPathMatchConstraint(java.lang.String pattern)
public java.lang.String getPattern()
public void setPattern(java.lang.String pattern)
public void configure(WildcardPathMatch annotation)
ValidationConstraint
configure
in interface ValidationConstraint<WildcardPathMatch>
public boolean isValid(ValidationConstraintContext vcc, java.lang.Object value)
ValidationConstraint
isValid
in interface ValidationConstraint<WildcardPathMatch>
true
if validation passes, otherwise false
.public static boolean validate(java.lang.Object value, java.lang.String pattern)
Copyright © 2003-present Jodd Team