use of pcgen.cdom.reference.CDOMTransparentCategorizedSingleRef in project pcgen by PCGen.
the class LoadValidator method buildCategoryMap.
private void buildCategoryMap() {
categoryMap = new DoubleKeyMapToList<>();
for (Campaign c : campaignList) {
for (Qualifier q : c.getSafeListFor(ListKey.FORWARDREF)) {
Class<? extends Loadable> qcl = q.getQualifiedClass();
if (CATEGORIZED_CLASS.isAssignableFrom(qcl)) {
CDOMSingleRef<?> ref = q.getQualifiedReference();
String cat = ((CDOMTransparentCategorizedSingleRef<?>) ref).getLSTCategory();
categoryMap.addToListFor(qcl, cat, ref.getLSTformat(false));
}
}
}
}
Aggregations