src/utils/configurable/DynamicParam.java
private void parseNameTypes(String nameTypes) throws DynamicParamException {
        if (nameTypes == null) throw new DynamicParamException("No name types defined.");
        String[] nameTypesList = nameTypes.split(",");
        if (nameTypesList.length == 0) throw new DynamicParamException("No name types found.");
        for (String nameTypeString : nameTypesList) {
            String nameTypeStringEntry = nameTypeString.trim();
            if (nameTypeStringEntry.isEmpty()) continue;
            if (!nameTypeStringEntry.startsWith("(")) throw new DynamicParamException("Invalid entry for type pair: " + nameTypeStringEntry);
            if (!nameTypeStringEntry.endsWith(")")) throw new DynamicParamException("Invalid entry for type pair: " + nameTypeStringEntry);
            if (!nameTypeStringEntry.contains(":")) throw new DynamicParamException("Invalid entry for type pair: " + nameTypeStringEntry);
            nameTypeStringEntry = nameTypeStringEntry.replace("(","");
            nameTypeStringEntry = nameTypeStringEntry.replace(")","");
            String[] nameTypePair = nameTypeStringEntry.split(":");
            ParamType paramType = switch (nameTypePair[1].trim().toUpperCase()) {
                case "INT" -> ParamType.INT;
                case "LONG" -> ParamType.LONG;
                case "FLOAT" -> ParamType.FLOAT;
                case "DOUBLE" -> ParamType.DOUBLE;
                case "CHAR" -> ParamType.CHAR;
                case "STRING" -> ParamType.STRING;
                case "BOOLEAN" -> ParamType.BOOLEAN;
                default -> throw new DynamicParamException("Illegal type for name type pair: " + nameTypeString);
            };
            this.nameTypes.put(nameTypePair[0].trim(), paramType);
        }
    }
/**
     * Parses name types from string representation.
     * Name type value pairs are described in format (name:type), (name:type)...
     *
     * @param nameTypes name type string representation.
     * @throws DynamicParamException throws exception if parsing fails.
     */
Parses name types from string representation.
Name type value pairs are described in format (name:type), (name:type)

@param nameTypes name type string representation.
@throws DynamicParamException throws exception if parsing fails.
Parses name types from string representation . Name type value pairs are described in format ( name : type ) ( name : type ) @param nameTypes name type string representation . @throws DynamicParamException throws exception if parsing fails .
private void parseNameTypes(String nameTypes) throws DynamicParamException {
        if (nameTypes == null) throw new DynamicParamException("No name types defined.");
        String[] nameTypesList = nameTypes.split(",");
        if (nameTypesList.length == 0) throw new DynamicParamException("No name types found.");
        for (String nameTypeString : nameTypesList) {
            String nameTypeStringEntry = nameTypeString.trim();
            if (nameTypeStringEntry.isEmpty()) continue;
            if (!nameTypeStringEntry.startsWith("(")) throw new DynamicParamException("Invalid entry for type pair: " + nameTypeStringEntry);
            if (!nameTypeStringEntry.endsWith(")")) throw new DynamicParamException("Invalid entry for type pair: " + nameTypeStringEntry);
            if (!nameTypeStringEntry.contains(":")) throw new DynamicParamException("Invalid entry for type pair: " + nameTypeStringEntry);
            nameTypeStringEntry = nameTypeStringEntry.replace("(","");
            nameTypeStringEntry = nameTypeStringEntry.replace(")","");
            String[] nameTypePair = nameTypeStringEntry.split(":");
            ParamType paramType = switch (nameTypePair[1].trim().toUpperCase()) {
                case "INT" -> ParamType.INT;
                case "LONG" -> ParamType.LONG;
                case "FLOAT" -> ParamType.FLOAT;
                case "DOUBLE" -> ParamType.DOUBLE;
                case "CHAR" -> ParamType.CHAR;
                case "STRING" -> ParamType.STRING;
                case "BOOLEAN" -> ParamType.BOOLEAN;
                default -> throw new DynamicParamException("Illegal type for name type pair: " + nameTypeString);
            };
            this.nameTypes.put(nameTypePair[0].trim(), paramType);
        }
    }
private void parseNameTypes ( String nameTypes ) throws DynamicParamException { if ( nameTypes == null ) throw new DynamicParamException ( "No name types defined." ) ; String [ ] nameTypesList = nameTypes . split ( "," ) ; if ( nameTypesList . length == 0 ) throw new DynamicParamException ( "No name types found." ) ; for ( String nameTypeString : nameTypesList ) { String nameTypeStringEntry = nameTypeString . trim ( ) ; if ( nameTypeStringEntry . isEmpty ( ) ) continue ; if ( ! nameTypeStringEntry . startsWith ( "(" ) ) throw new DynamicParamException ( "Invalid entry for type pair: " + nameTypeStringEntry ) ; if ( ! nameTypeStringEntry . endsWith ( ")" ) ) throw new DynamicParamException ( "Invalid entry for type pair: " + nameTypeStringEntry ) ; if ( ! nameTypeStringEntry . contains ( ":" ) ) throw new DynamicParamException ( "Invalid entry for type pair: " + nameTypeStringEntry ) ; nameTypeStringEntry = nameTypeStringEntry . replace ( "(" , "" ) ; nameTypeStringEntry = nameTypeStringEntry . replace ( ")" , "" ) ; String [ ] nameTypePair = nameTypeStringEntry . split ( ":" ) ; ParamType paramType = switch ( nameTypePair [ 1 ] . trim ( ) . toUpperCase ( ) ) { case "INT" -> ParamType . INT ; case "LONG" -> ParamType . LONG ; case "FLOAT" -> ParamType . FLOAT ; case "DOUBLE" -> ParamType . DOUBLE ; case "CHAR" -> ParamType . CHAR ; case "STRING" -> ParamType . STRING ; case "BOOLEAN" -> ParamType . BOOLEAN ; default -> throw new DynamicParamException ( "Illegal type for name type pair: " + nameTypeString ) ; } ; this . nameTypes . put ( nameTypePair [ 0 ] . trim ( ) , paramType ) ; } }
Parses name types from string representation.
Parses name types from string representation .