jodd.vtor.constraint
Class WildcardMatchConstraint
java.lang.Object
jodd.vtor.constraint.WildcardMatchConstraint
- All Implemented Interfaces:
- ValidationConstraint<WildcardMatch>
public class WildcardMatchConstraint
- extends Object
- implements ValidationConstraint<WildcardMatch>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pattern
protected String pattern
WildcardMatchConstraint
public WildcardMatchConstraint()
WildcardMatchConstraint
public WildcardMatchConstraint(String pattern)
getPattern
public String getPattern()
setPattern
public void setPattern(String pattern)
configure
public void configure(WildcardMatch annotation)
- Description copied from interface:
ValidationConstraint
- Configures constraint from associated annotation.
- Specified by:
configure in interface ValidationConstraint<WildcardMatch>
isValid
public boolean isValid(ValidationConstraintContext vcc,
Object value)
- Description copied from interface:
ValidationConstraint
- Performs validation in context of target object on provided value.
- Specified by:
isValid in interface ValidationConstraint<WildcardMatch>
- Returns:
true if validation passes, otherwise false.
validate
public static boolean validate(Object value,
String pattern)