Returns the constant for the given String (the search for the constant is case insensitive). If the constant does not already exist, an IllegalArgumentException is thrown. @param name The name of the constant to be returned @return The Constant for the given name @throws IllegalArgumentE
(String name)
| 121 | * if the given String is not a previously defined VariableKey |
| 122 | */ |
| 123 | public static VariableKey valueOf(String name) |
| 124 | { |
| 125 | initializeTypeMap(); |
| 126 | VariableKey key = typeMap.get(name); |
| 127 | if (key == null) |
| 128 | { |
| 129 | throw new IllegalArgumentException(name + " is not a previously defined VariableKey"); |
| 130 | } |
| 131 | return key; |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * Clears all of the Constants in this Class (forgetting the mapping from |
no test coverage detected