(String key)
| 16 | } |
| 17 | |
| 18 | public static BaseObject getEntity(String key) throws SchemaException { |
| 19 | |
| 20 | if (entities.get(key) == null) { |
| 21 | throw new SchemaException("Object '" + key + "' not supported by ontology"); |
| 22 | } |
| 23 | |
| 24 | return entities.get(key); |
| 25 | } |
| 26 | |
| 27 | public static BaseObject getDefault() { |
| 28 | return entities.get("FREE"); |
no outgoing calls