/** * Checks that the name is not a reserved word in java. * @param name the value to check. * @throws IllegalNameException when name is a reserved keyword in java. */ public static void assertLegalName(String name) throws IllegalNameException { if (reservedKeywords.contains(name)) { throw new IllegalNameException("Illegal attribute- or class-name. The name [" + name + "] is a reserved keyword in java."); } }
/** * Checks that the name is not a reserved word in java. * @param name the value to check. * @throws IllegalNameException when name is a reserved keyword in java. */ public static void assertLegalName(String name) throws IllegalNameException { if (reservedKeywords.contains(name)) { throw new IllegalNameException("Illegal attribute- or class-name. The name [" + name + "] is a reserved keyword in java."); } }
/** * Checks that the name is not a reserved word in java. * @param name the value to check. * @throws IllegalNameException when name is a reserved keyword in java. */ public static void assertLegalName(String name) throws IllegalNameException { if (reservedKeywords.contains(name)) { throw new IllegalNameException("Illegal attribute- or class-name. The name [" + name + "] is a reserved keyword in java."); } }
/** * Checks that the name is not a reserved word in java. * @param name the value to check. * @throws IllegalNameException when name is a reserved keyword in java. */ public static void assertLegalName(String name) throws IllegalNameException { if (reservedKeywords.contains(name)) { throw new IllegalNameException("Illegal attribute- or class-name. The name [" + name + "] is a reserved keyword in java."); } }