code: public static ConstraintType getInstance(Locale locale, String type)
     {
        int index = 0;
  
        String[] constraintTypes = LocaleData.getStringArray(locale, LocaleData.CONSTRAINT_TYPES);
        for (int loop = 0; loop < constraintTypes.length; loop++)
        {
           if (constraintTypes[loop].equalsIgnoreCase(type) == true)
           {
              index = loop;
              break;
           }
        }
  
        return (ConstraintType.getInstance(index));
     }
docs: This method takes the textual version of a constraint name
  and returns an appropriate class instance. Note that unrecognised
  values are treated as "As Soon As Possible" constraints.
  
  @param locale target locale
  @param type text version of the constraint type
  @return ConstraintType instance