private void initValidationData(HashMap<String,Object> parameterDefinition){
        this.type = "string";
        this.required = false;
        this.regexp = null;
        this.minLength = null;
        this.maxLength = null;
        
        if ( parameterDefinition.containsKey("type") ){
            this.type = parameterDefinition.get("type").toString();
        }
        
        if ( parameterDefinition.containsKey("required") ){
            this.required = (Boolean) parameterDefinition.get("required");
        } 
        
        if ( parameterDefinition.containsKey("regexp") ){
            Object o = parameterDefinition.get("regexp");            
            if (o instanceof List){
                this.regexp = new java.util.ArrayList<String>();
                for (Object oRegexp : (List ) o){
                    this.regexp.add(phpRegexpToJavaRegexp(oRegexp.toString()));
                }                
            }
            else {
                this.regexp = new java.util.ArrayList();
                this.regexp.add(phpRegexpToJavaRegexp(o.toString()));
            }                          
        }
        
        if ( parameterDefinition.containsKey("minlen") ){
            this.minLength = (Integer) parameterDefinition.get("minlen");
        }
        
        if ( parameterDefinition.containsKey("maxlen") ){
            this.maxLength = (Integer) parameterDefinition.get("maxlen");
        }                        
    }