コード例 #1
0
 public static Set<DeletionHook> getHooks(KnowledgeBase kb) {
   DeletionHookFrameStore frameStore = getFrameStore(kb, false);
   if (frameStore == null) {
     return null;
   } else {
     return frameStore.getHooks();
   }
 }
コード例 #2
0
 public static void addDeletionHook(KnowledgeBase kb, DeletionHook hook) {
   DeletionHookFrameStore frameStore = getFrameStore(kb, true);
   frameStore.addHook(hook);
 }
コード例 #3
0
 public static void removeDeletionHook(KnowledgeBase kb, DeletionHook hook) {
   DeletionHookFrameStore frameStore = getFrameStore(kb, false);
   if (frameStore != null) {
     frameStore.removeHook(hook);
   }
 }