private static Converter getConverterForType(final Class<?> typeOfProperty) {
		Converter converter;
		
		if (Date.class.equals(typeOfProperty)) {
			converter = new StringToDateConverter();
		} else if (Integer.class.equals(typeOfProperty) || "int".equalsIgnoreCase(typeOfProperty.getName())) {
			converter = new StringToIntegerConverter("Input value should be an integer");
		} else if (Long.class.equals(typeOfProperty) || "long".equalsIgnoreCase(typeOfProperty.getName())) {
			converter = new StringToLongConverter("Input value should be an long");
		} else if (BigInteger.class.equals(typeOfProperty)) {
			converter = new StringToBigIntegerConverter("Input value should be an biginteger");
		} else if (BigDecimal.class.equals(typeOfProperty)) {
			converter = new StringToBigDecimalConverter("Input value should be an bigdecimal");
		} else if (Boolean.class.equals(typeOfProperty) || "boolean".equalsIgnoreCase(typeOfProperty.getName())) {
			converter = new StringToBooleanConverter("Input value should be an boolean");
		} else if (typeOfProperty.isEnum()) {
			converter = new StringToEnumConverter();
		} else {
			converter = null;
		}
		
		return converter;
	}
private static Converter getConverterForType(final Class<?> typeOfProperty) {
		Converter converter;
		
		if (Date.class.equals(typeOfProperty)) {
			converter = new StringToDateConverter();
		} else if (Integer.class.equals(typeOfProperty) || "int".equalsIgnoreCase(typeOfProperty.getName())) {
			converter = new StringToIntegerConverter("Input value should be an integer");
		} else if (Long.class.equals(typeOfProperty) || "long".equalsIgnoreCase(typeOfProperty.getName())) {
			converter = new StringToLongConverter("Input value should be an long");
		} else if (BigInteger.class.equals(typeOfProperty)) {
			converter = new StringToBigIntegerConverter("Input value should be an biginteger");
		} else if (BigDecimal.class.equals(typeOfProperty)) {
			converter = new StringToBigDecimalConverter("Input value should be an bigdecimal");
		} else if (Boolean.class.equals(typeOfProperty) || "boolean".equalsIgnoreCase(typeOfProperty.getName())) {
			converter = new StringToBooleanConverter("Input value should be an boolean");
		} else if (typeOfProperty.isEnum()) {
			converter = new StringToEnumConverter();
		} else {
			converter = null;
		}
		
		return converter;
	}
private static Converter getConverterForType ( final Class < ? > typeOfProperty ) { Converter converter ; if ( Date . class . equals ( typeOfProperty ) ) { converter = new StringToDateConverter ( ) ; } else if ( Integer . class . equals ( typeOfProperty ) || "int" . equalsIgnoreCase ( typeOfProperty . getName ( ) ) ) { converter = new StringToIntegerConverter ( "Input value should be an integer" ) ; } else if ( Long . class . equals ( typeOfProperty ) || "long" . equalsIgnoreCase ( typeOfProperty . getName ( ) ) ) { converter = new StringToLongConverter ( "Input value should be an long" ) ; } else if ( BigInteger . class . equals ( typeOfProperty ) ) { converter = new StringToBigIntegerConverter ( "Input value should be an biginteger" ) ; } else if ( BigDecimal . class . equals ( typeOfProperty ) ) { converter = new StringToBigDecimalConverter ( "Input value should be an bigdecimal" ) ; } else if ( Boolean . class . equals ( typeOfProperty ) || "boolean" . equalsIgnoreCase ( typeOfProperty . getName ( ) ) ) { converter = new StringToBooleanConverter ( "Input value should be an boolean" ) ; } else if ( typeOfProperty . isEnum ( ) ) { converter = new StringToEnumConverter ( ) ; } else { converter = null ; } return converter ; }
Gets the converter for type.

@param typeOfProperty
the type of property
@return the converter for type
Gets the converter for type .