org.jboss.seam.remoting.validation
Class RegexpConsideration
java.lang.Object
org.jboss.seam.remoting.validation.RegexpConsideration
- All Implemented Interfaces:
- SpecialConsideration
public class RegexpConsideration
- extends Object
- implements SpecialConsideration
some basic incompatibility between Java and JavaScript Regular Expression syntax is handled here
however since Java regular expression is relatively more powerful than JavaScript counterpart
it is developer's responsibility to make sure the provided Regular Expression is a valid
JS expression as well.
the main features that are not supported by JavaScript regular expression engines are:
- No Unicode categories or blocks [just unicode characters]
- No Character class Union, Intersection or substraction [simply no nesting and no &&]
- No Possessive Quantifiers
- Author:
- Amir Sadri
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegexpConsideration
public RegexpConsideration()
reassessParameters
public HashMap<String,Object> reassessParameters(Map<String,Object> constraintParams)
- Specified by:
reassessParameters
in interface SpecialConsideration
reassessConstraintName
public String reassessConstraintName(String constraintName)
- Specified by:
reassessConstraintName
in interface SpecialConsideration
convertRegex
public static final String convertRegex(String regex)
convertRegexFlags
public static final ArrayList<String> convertRegexFlags(int[] flags)
Copyright © 2011 Seam Framework. All Rights Reserved.