org.jboss.seam.remoting.validation
Class RegexpConsideration

java.lang.Object
  extended by 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:

Author:
Amir Sadri

Constructor Summary
RegexpConsideration()
           
 
Method Summary
static String convertRegex(String regex)
           
static ArrayList<String> convertRegexFlags(int[] flags)
           
 String reassessConstraintName(String constraintName)
           
 HashMap<String,Object> reassessParameters(Map<String,Object> constraintParams)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegexpConsideration

public RegexpConsideration()
Method Detail

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.