Class RegexpValidator
- java.lang.Object
-
- org.swisspush.gateleen.validation.RegexpValidator
-
public class RegexpValidator extends Object
-
-
Constructor Summary
Constructors Constructor Description RegexpValidator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PatternthrowIfPatternInvalid(String pattern)Tries to compile the passed regular expression pattern.
-
-
-
Method Detail
-
throwIfPatternInvalid
public static Pattern throwIfPatternInvalid(String pattern) throws ValidationException
Tries to compile the passed regular expression pattern.
This method will throw specified exception if passed pattern fails to compile.
- Parameters:
pattern- The pattern to validate.- Throws:
ValidationException- Thrown in case there was a problem compiling passed pattern.
-
-