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