org.geotools.jdbc
Class RegexpValidator

Object
  extended by RegexpValidator
All Implemented Interfaces:
Serializable, VirtualTableParameter.Validator

public class RegexpValidator
extends Object
implements VirtualTableParameter.Validator

A regular expression based validator

Author:
Andrea Aime - OpenGeo
See Also:
Serialized Form

Constructor Summary
RegexpValidator(Pattern pattern)
           
RegexpValidator(String pattern)
           
 
Method Summary
 boolean equals(Object obj)
           
 Pattern getPattern()
           
 int hashCode()
           
 void validate(String value)
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexpValidator

public RegexpValidator(Pattern pattern)

RegexpValidator

public RegexpValidator(String pattern)
Method Detail

validate

public void validate(String value)
              throws IllegalArgumentException
Specified by:
validate in interface VirtualTableParameter.Validator
Throws:
IllegalArgumentException

getPattern

public Pattern getPattern()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 1996-2014 Geotools. All Rights Reserved.