jodd.vtor.constraint
Class WildcardPathMatchConstraint

java.lang.Object
  extended by jodd.vtor.constraint.WildcardPathMatchConstraint
All Implemented Interfaces:
ValidationConstraint<WildcardPathMatch>

public class WildcardPathMatchConstraint
extends java.lang.Object
implements ValidationConstraint<WildcardPathMatch>


Field Summary
protected  java.lang.String pattern
           
 
Constructor Summary
WildcardPathMatchConstraint()
           
WildcardPathMatchConstraint(java.lang.String pattern)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pattern

protected java.lang.String pattern
Constructor Detail

WildcardPathMatchConstraint

public WildcardPathMatchConstraint()

WildcardPathMatchConstraint

public WildcardPathMatchConstraint(java.lang.String pattern)
Method Detail

getPattern

public java.lang.String getPattern()

setPattern

public void setPattern(java.lang.String pattern)

configure

public void configure(WildcardPathMatch annotation)
Description copied from interface: ValidationConstraint
Configures constraint from associated annotation.

Specified by:
configure in interface ValidationConstraint<WildcardPathMatch>

isValid

public boolean isValid(ValidationConstraintContext vcc,
                       java.lang.Object value)
Description copied from interface: ValidationConstraint
Performs validation in context of target object on provided value.

Specified by:
isValid in interface ValidationConstraint<WildcardPathMatch>
Returns:
true if validation passes, otherwise false.

validate

public static boolean validate(java.lang.Object value,
                               java.lang.String pattern)


Copyright © 2003-2013 Jodd Team