public static String getValueType(String key, String value) {
        Double f = OSMUtils.parseDoubleUnit(value);
        if (f != null) {
            if (Math.round(f) == f) {
                if (f.byteValue() == f) {
                    return "%b";
                } else if (f.shortValue() == f) {
                    return "%h";
                } else {
                    return "%i";
                }
            }
            return "%f";
        }
        if (key.contains("colour")) {
            Matcher matcher = COLOR_PATTERN.matcher(value); // Encode color as integer
            if (matcher.matches() || ColorsCSS.get(value) != null) {
                return "%i";
            }
        }
        return "%s";
    }
public static String getValueType ( String key , String value ) { Double f = OSMUtils . parseDoubleUnit ( value ) ; if ( f != null ) { if ( Math . round ( f ) == f ) { if ( f . byteValue ( ) == f ) { return "%b" ; } else if ( f . shortValue ( ) == f ) { return "%h" ; } else { return "%i" ; } } return "%f" ; } if ( key . contains ( "colour" ) ) { Matcher matcher = COLOR_PATTERN . matcher ( value ) ; if ( matcher . matches ( ) || ColorsCSS . get ( value ) != null ) { return "%i" ; } } return "%s" ; }
@param value string represented value
@return a string represented primitive type