Returns the FactKey for the given String (the search for the constant is case insensitive). If the FactKey does not already exist, an IllegalArgumentException is thrown. Does not check the type of the FactKey @param name The name of the FactKey to be returned @return The FactKey for the
(String name)
| 104 | * if the given String is not a previously defined FactKey |
| 105 | */ |
| 106 | public static <T> FactKey<T> valueOf(String name) |
| 107 | { |
| 108 | FactKey<T> key = (FactKey<T>) typeMap.get(name); |
| 109 | if (key == null) |
| 110 | { |
| 111 | throw new IllegalArgumentException(name + " is not a previously defined FactKey"); |
| 112 | } |
| 113 | return key; |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * Returns a Collection of all of the FactKeys in this Class. |