com.avaje.ebean.validation.factory
Class PatternValidatorFactory

java.lang.Object
  extended by com.avaje.ebean.validation.factory.PatternValidatorFactory
All Implemented Interfaces:
ValidatorFactory

public final class PatternValidatorFactory
extends Object
implements ValidatorFactory

Creates a String length validator.


Constructor Summary
PatternValidatorFactory()
           
 
Method Summary
 Validator create(Annotation annotation, Class<?> type)
          Create the validator given the annotation.
static Validator create(String regex, int flags)
          Create or get a LengthValidator single threaded.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternValidatorFactory

public PatternValidatorFactory()
Method Detail

create

public Validator create(Annotation annotation,
                        Class<?> type)
Description copied from interface: ValidatorFactory
Create the validator given the annotation.

Specified by:
create in interface ValidatorFactory

create

public static Validator create(String regex,
                               int flags)
Create or get a LengthValidator single threaded.



Copyright © 2010. All Rights Reserved.