MCPcopy Create free account
hub / github.com/PCGen/pcgen / getIterable

Method getIterable

code/src/java/pcgen/output/publish/OutputDB.java:238–248  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 2

passesMethod · 0.95
passesMethod · 0.95

Calls 2

generateMethod · 0.95
getMethod · 0.65

Tested by 2

passesMethod · 0.76
passesMethod · 0.76