| | 151 | * Searches the resource with the given class name and package. |
| | 152 | * |
| | 153 | * @param packageName resource package name. |
| | 154 | * @param className resource class name. |
| | 155 | * @return the resource for the given name or <tt>null</tt> if not found. |
| | 156 | */ |
| | 157 | public static ResourceInfo lookup (String packageName, String className) |
| | 158 | { |
| | 159 | ResourceInfo result = null; |
| | 160 | for (ResourceInfo resource: RESOURCES.values()) |
| | 161 | { |
| | 162 | if (resource.getClassname().equals(className) |
| | 163 | && resource.getPackage().equals(packageName)) |
| | 164 | { |
| | 165 | result = resource; |
| | 166 | break; |
| | 167 | } |
| | 168 | } |
| | 169 | return result; |
| | 170 | } |
| | 171 | |
| | 172 | static String dump () |
| | 173 | { |
| | 174 | return RESOURCES.toString(); |
| | 175 | } |
| | 176 | /** |