/** * @see pcgen.rules.persistence.token.DeferredToken#process(pcgen.rules.context.LoadContext, * pcgen.cdom.base.Loadable) */ @Override public boolean process(LoadContext context, T obj) { FactKey<F> fk = def.getFactKey(); if (context.getObjectContext().getFact(obj, fk) != null) { return true; } Logging.errorPrint( "FACT " + def.getFactName() + " was required but not set in " + obj.getClass().getSimpleName() + " " + obj.getKeyName()); return false; }
/** @see pcgen.rules.persistence.token.DeferredToken#getDeferredTokenClass() */ @Override public Class<T> getDeferredTokenClass() { return def.getUsableLocation(); }