- Matcher mtch = Pattern.compile("^([^=]+)=?'?([^']*)?'?").matcher(tok);
- if (mtch.find()) {
- try {
- if (mtch.group(1).equals("min"))
- {
- min = Integer.parseInt(mtch.group(2));
- continue;
-
- } else
- if (mtch.group(1).equals("max"))
- {
- max = Integer.parseInt(mtch.group(2));
- continue;
- }
- }
- catch (NumberFormatException x)
- {
- valid=false;
- warnings.append("Invalid value for parameter "+mtch.group(1).toLowerCase()+" '"+mtch.group(2)+"' (expected an integer)\n");
- }
-
- if (!configureProperty(mtch.group(1), mtch.group(2), warnings)) {
- if (warnings.length()==0)
- {
- warnings.append("Failed to configure InputType :"+getURLtokenPrefix()+" with property string: '"+mtch.group(0)+"'\n (token is '"+mtch.group(1)+"' and value is '"+mtch.group(2)+"')\n");
- }
- valid=false;
+ try
+ {
+ if (mtch.group(1).equals("min"))
+ {
+ min = Integer.parseInt(mtch.group(2));
+ continue;
+
+ }
+ else if (mtch.group(1).equals("max"))
+ {
+ max = Integer.parseInt(mtch.group(2));
+ continue;