public static Set<DeletionHook> getHooks(KnowledgeBase kb) { DeletionHookFrameStore frameStore = getFrameStore(kb, false); if (frameStore == null) { return null; } else { return frameStore.getHooks(); } }
public static void addDeletionHook(KnowledgeBase kb, DeletionHook hook) { DeletionHookFrameStore frameStore = getFrameStore(kb, true); frameStore.addHook(hook); }
public static void removeDeletionHook(KnowledgeBase kb, DeletionHook hook) { DeletionHookFrameStore frameStore = getFrameStore(kb, false); if (frameStore != null) { frameStore.removeHook(hook); } }