Returns a specific portion of the PlayerCharacter data model for the given CharID and selection string. @param id The CharID for which the data model should be built @param keys A String (or array) of keys identifying the portion of the data model to be built @retur
(CharID id, String... keys)
| 236 | * CharID |
| 237 | */ |
| 238 | public static Iterable<?> getIterable(CharID id, String... keys) |
| 239 | { |
| 240 | String k1 = keys[0]; |
| 241 | String k2 = (keys.length > 1) ? keys[1] : ""; |
| 242 | ModelFactory modelFactory = outModels.get(k1, k2); |
| 243 | if (modelFactory == null) |
| 244 | { |
| 245 | return null; |
| 246 | } |
| 247 | return modelFactory.generate(id); |
| 248 | } |
| 249 | |
| 250 | /** |
| 251 | * Returns true if the given interpolation is legal based on the items |