/** * Parsed the {@link #defaultParameters} and also checks that not multiple * (non empty) of such configurations are present * @param line the current line * @param sepIndex the index of first ';' in the configuration line * @throws ConfigurationException if multiple default configurations are present or * if the parameters are illegal formatted. */ private void parsedDefaultParameters(String line, int sepIndex) throws ConfigurationException { if(!defaultParameters.isEmpty()){ throw new ConfigurationException(property, "Language Configuration MUST NOT " + "contain multiple default property configurations. This are configurations " + "of properties for the wildcard '*;{properties}' or the empty language " + "';{properties}'."); } defaultParameters = sepIndex >= 0 && sepIndex < line.length()-2 ? parseParameters(line.substring(sepIndex, line.length()).trim()) : EMPTY_PARAMS; } /**
/** * Parsed the {@link #defaultParameters} and also checks that not multiple * (non empty) of such configurations are present * @param line the current line * @param sepIndex the index of first ';' in the configuration line * @throws ConfigurationException if multiple default configurations are present or * if the parameters are illegal formatted. */ private void parsedDefaultParameters(String line, int sepIndex) throws ConfigurationException { if(!defaultParameters.isEmpty()){ throw new ConfigurationException(property, "Language Configuration MUST NOT " + "contain multiple default property configurations. This are configurations " + "of properties for the wildcard '*;{properties}' or the empty language " + "';{properties}'."); } defaultParameters = sepIndex >= 0 && sepIndex < line.length()-2 ? parseParameters(line.substring(sepIndex, line.length()).trim()) : EMPTY_PARAMS; } /**
parseParameters(line.substring(sepIndex+1, line.length()).trim()) : EMPTY_PARAMS); } else { //language tag is empty (line starts with an ';'
parseParameters(line.substring(sepIndex+1, line.length()).trim()) : EMPTY_PARAMS); } else { //language tag is empty (line starts with an ';'