Search in sources :

Example 1 with KitTable

use of pcgen.core.kit.KitTable in project pcgen by PCGen.

the class TableToken method process.

@Override
public boolean process(LoadContext context, Kit obj) {
    for (BaseKit bk : obj.getSafeListFor(ListKey.KIT_TASKS)) {
        if (bk instanceof KitTable) {
            obj.removeFromListFor(ListKey.KIT_TASKS, bk);
            KitTable kt = obj.addTable((KitTable) bk);
            if (kt != null) {
                Logging.errorPrint("Kit Table: " + kt.getTableName() + " in Kit " + obj.getKeyName() + " was a duplicate, " + "Kit had more than one table with that name.");
                return false;
            }
        }
    }
    return true;
}
Also used : BaseKit(pcgen.core.kit.BaseKit) KitTable(pcgen.core.kit.KitTable)

Aggregations

BaseKit (pcgen.core.kit.BaseKit)1 KitTable (pcgen.core.kit.KitTable)1