Protege 2.1.1

edu.stanford.smi.protege.storage.jdbc
Class OldJdbcDefaultKnowledgeBase

java.lang.Object
  extended byedu.stanford.smi.protege.storage.jdbc.OldJdbcDefaultKnowledgeBase
All Implemented Interfaces:
Disposable, KnowledgeBase

public class OldJdbcDefaultKnowledgeBase
extends Object
implements KnowledgeBase

Default implementation of the KnowledgeBase interface. Handles event generation but delegates most frame operations to FrameHandler. Implements wrapper methods for some calls to make the interface easier to use.

Author:
Ray Fergerson

Field Summary
 
Fields inherited from interface edu.stanford.smi.protege.model.KnowledgeBase
MAXIMUM_CARDINALITY_UNBOUNDED, UNLIMITED_MATCHES
 
Constructor Summary
OldJdbcDefaultKnowledgeBase(KnowledgeBaseFactory factory)
           
 
Method Summary
 void addClsListener(Cls cls, ClsListener listener)
          Add a listener for class events for a particular class
 void addClsListener(ClsListener listener)
          Add a listener for class events for all classes
 void addDirectSuperclass(Cls child, Cls parent)
           
 void addDirectSuperslot(Slot slot, Slot superslot)
           
 void addDirectTemplateSlot(Cls cls, Slot slot)
           
 void addDirectType(Instance instance, Cls type)
           
 void addFacetListener(Facet facet, FacetListener listener)
          Add a listener for facet events for a particular facet
 void addFacetListener(FacetListener listener)
          Add a listener for facet events for all facets
 void addFrameListener(Frame frame, FrameListener listener)
          add a listener fro frame evnets for a particular frame
 void addFrameListener(FrameListener listener)
          add a listener for frame events for all frames
 void addInstance(Instance instance, String name, Cls type, boolean isNew)
           
 void addInstanceListener(Instance instance, InstanceListener listener)
           
 void addInstanceListener(InstanceListener listener)
           
 void addJavaLoadPackage(String packageName)
          This method requires some background information.
 void addKnowledgeBaseListener(KnowledgeBaseListener listener)
           
 void addOwnSlotValue(Frame frame, Slot slot, Object value)
           
 void addOwnSlotValue(Frame frame, Slot slot, Object value, int index)
           
 void addSlotListener(SlotListener listener)
           
 void addSlotListener(Slot slot, SlotListener listener)
           
 void addTemplateFacetValue(Cls cls, Slot slot, Facet facet, Object value)
           
 void addTemplateFacetValue(Cls cls, Slot slot, Facet facet, Object value, int index)
           
 void addTemplateSlotValue(Cls cls, Slot slot, Object value)
           
 boolean areValidOwnSlotValues(Frame frame, Slot slot, Collection values)
           
 boolean beginTransaction(String name)
           
 void changeFrameName(Frame frame, String newName)
          Deprecated. Use #setFrameName(Frame, String)
 void clearAllListeners()
           
 boolean containsFrame(String name)
           
 Cls createCls(FrameID id, String name, Collection parents, Collection metaClses, boolean isNew)
           
 Cls createCls(String name, Collection directSuperclasses)
           
 Cls createCls(String name, Collection parents, Cls metaCls)
           
 Cls createCls(String name, Collection parents, Cls metaCls, boolean isNew)
           
 Facet createFacet(FrameID id, String name, Collection metaClses, boolean isNew)
           
 Facet createFacet(String name)
           
 Facet createFacet(String name, Cls metaCls)
           
 Facet createFacet(String name, Cls metaCls, boolean isNew)
           
 Instance createInstance(FrameID id, String name, Cls directType, boolean initializeDefaults)
           
 Instance createInstance(String name, Cls cls)
           
 Instance createInstance(String name, Cls cls, boolean isNew)
           
 Instance createSimpleInstance(String name, Cls cls)
           
 Instance createSimpleInstance(String name, Cls cls, boolean isNew)
           
 Slot createSlot(FrameID id, String name, Collection metaClses, Collection superslots, boolean isNew)
           
 Slot createSlot(String name)
           
 Slot createSlot(String name, Cls metaCls)
           
 Slot createSlot(String name, Cls metaCls, boolean isNew)
           
 Slot createSlot(String name, Cls metaCls, Collection superslots, boolean isNew)
           
 String createUniqueFrameName(String name)
          Deprecated.  
 void deleteCls(Cls cls)
           
 void deleteFacet(Facet facet)
           
 void deleteFrame(Frame frame)
           
 void deleteInstance(Instance instance)
           
 void deleteSimpleInstance(SimpleInstance instance)
           
 void deleteSlot(Slot slot)
           
 void dispose()
           
 boolean endTransaction(boolean doCommit)
           
static boolean equals(Object o1, Object o2)
           
 Collection getAllowedClses(Slot slot)
           
 Collection getAllowedParents(Slot slot)
           
 Collection getAllowedValues(Slot slot)
           
 boolean getAllowsMultipleValues(Slot slot)
           
 Facet getAssociatedFacet(Slot slot)
           
 Slot getAssociatedSlot(Facet facet)
           
 String getBrowserText(Instance instance)
           
 String getBuildString()
          Returns a string that contains something like "build 840" that refers to the build of Protege in use when this kb was last saved.
 Object getClientInformation(Object key)
          Allows a programmer to hang arbitrary information on a kb and retrieve it later.
 Cls getCls(String name)
           
 int getClsCount()
           
 Collection getClses()
           
 Collection getClsNameMatches(String s, int maxMatches)
          Get classes whose name matches the give string.
 CommandManager getCommandManager()
           
 Collection getCurrentUsers()
           
 Cls getDefaultClsMetaCls()
          If no meta class is specified when a class is created the system uses the metaclass of the first specified parent.
 Cls getDefaultFacetMetaCls()
           
 Cls getDefaultSlotMetaCls()
           
 Collection getDefaultValues(Slot slot)
           
 Facet getDefaultValuesFacet()
           
 Slot getDefaultValuesSlot()
           
 BrowserSlotPattern getDirectBrowserSlotPattern(Cls cls)
           
 Collection getDirectDomain(Slot slot)
           
 int getDirectInstanceCount(Cls type)
           
 Collection getDirectInstances(Cls type)
           
 Slot getDirectInstancesSlot()
           
 Object getDirectOwnSlotValue(Frame frame, Slot slot)
           
 List getDirectOwnSlotValues(Frame frame, Slot slot)
           
 Set getDirectOwnSlotValuesClosure(Frame frame, Slot slot)
           
 int getDirectSubclassCount(Cls parent)
           
 Collection getDirectSubclasses(Cls parent)
           
 Slot getDirectSubclassesSlot()
           
 int getDirectSubslotCount(Slot slot)
           
 Collection getDirectSubslots(Slot slot)
           
 int getDirectSuperclassCount(Cls cls)
           
 Collection getDirectSuperclasses(Cls cls)
           
 Slot getDirectSuperclassesSlot()
           
 int getDirectSuperslotCount(Slot slot)
           
 Collection getDirectSuperslots(Slot slot)
           
 Slot getDirectSuperslotsSlot()
           
 List getDirectTemplateFacetValues(Cls cls, Slot slot, Facet facet)
           
 Collection getDirectTemplateSlots(Cls cls)
           
 Slot getDirectTemplateSlotsSlot()
           
 List getDirectTemplateSlotValues(Cls cls, Slot slot)
           
 Cls getDirectType(Instance instance)
           
 Collection getDirectTypes(Instance instance)
           
 Slot getDirectTypeSlot()
           
 boolean getDispatchEventsEnabled()
           
 Collection getDocumentation(Frame frame)
           
 Collection getDomain(Slot slot)
           
 boolean getEventsEnabled()
          Deprecated.  
 Facet getFacet(String name)
           
 int getFacetCount()
           
 Collection getFacets()
           
 Frame getFrame(FrameID id)
           
 Frame getFrame(String name)
           
 int getFrameCount()
           
 FrameCounts getFrameCounts()
           
 String getFrameCreationTimestamp(Frame frame)
           
 String getFrameCreator(Frame frame)
           
 FrameFactory getFrameFactory()
           
 String getFrameLastModificationTimestamp(Frame frame)
           
 String getFrameLastModifier(Frame frame)
           
protected  FrameManager getFrameManager()
           
 Collection getFrameNameMatches(String s, int maxMatches)
           
 String getFrameNamePrefix()
           
 Collection getFrames()
           
 FrameStore getFrameStore(Class c)
           
 List getFrameStores()
          Returns a list of FrameStores available to the system.
 Collection getFramesWithValue(Slot slot, Facet facet, boolean isTemplate, Object value)
          Gets frames with a particular own/template slot/facet value.
 boolean getGenerateEventsEnabled()
           
 FrameStore getHeadFrameStore()
           
 Instance getInstance(String name)
           
 int getInstanceCount(Cls type)
           
 Collection getInstances()
           
 Collection getInstances(Cls type)
          Deprecated.  
 String getInvalidFrameNameDescription(String s, Frame frame)
           
 String getInvalidOwnSlotValuesText(Frame frame, Slot slot, Collection values)
           
 String getInvalidOwnSlotValueText(Frame frame, Slot slot, Object value)
           
 Slot getInverseSlot(Slot slot)
           
 KnowledgeBaseFactory getKnowledgeBaseFactory()
           
 Collection getMatchingFrames(Slot slot, Facet facet, boolean isTemplate, String s, int nMatches)
          Finds all occurances of a string in the knowledge base.
 Collection getMatchingReferences(String s, int maxReferences)
           
 int getMaximumCardinality(Slot slot)
           
 Number getMaximumValue(Slot slot)
           
 int getMinimumCardinality(Slot slot)
           
 Number getMinimumValue(Slot slot)
           
 String getName()
           
 String getName(Frame frame)
           
 Slot getNameSlot()
           
 int getNextFrameNumber()
           
 boolean getOwnSlotAllowsMultipleValues(Frame frame, Slot slot)
           
 Collection getOwnSlotAndSubslotValues(Frame frame, Slot slot)
           
 Collection getOwnSlotDefaultValues(Frame frame, Slot slot)
           
 Collection getOwnSlotFacets(Frame frame, Slot slot)
           
 Collection getOwnSlotFacetValues(Frame frame, Slot slot, Facet facet)
           
 Collection getOwnSlots(Frame frame)
           
 Object getOwnSlotValue(Frame frame, Slot slot)
           
 int getOwnSlotValueCount(Frame frame, Slot slot)
           
 Collection getOwnSlotValues(Frame frame, Slot slot)
           
 ValueType getOwnSlotValueType(Frame frame, Slot slot)
           
 Project getProject()
           
 Collection getReachableSimpleInstances(Collection roots)
           
 Collection getReferences(Object o, int maxReferences)
           
 Cls getRootCls()
           
 Collection getRootClses()
           
 Cls getRootClsMetaCls()
           
 Cls getRootFacetMetaCls()
           
 Cls getRootSlotMetaCls()
           
 Collection getRootSlots()
           
 int getSimpleInstanceCount()
           
 Slot getSlot(String name)
           
 int getSlotCount()
           
 Collection getSlots()
           
 boolean getSlotValueFacetChecking()
           
 String getSlotValueLastModificationTimestamp(Frame frame, Slot slot, boolean isTemplate)
           
 String getSlotValueLastModifier(Frame frame, Slot slot, boolean isTemplate)
           
 Storage getStorage()
           
 int getSubclassCount(Cls parent)
           
 Collection getSubclasses(Cls parent)
          Deprecated.  
 Collection getSubslots(Slot slot)
           
 int getSuperclassCount(Cls child)
           
 Collection getSuperclasses(Cls child)
           
 Collection getSuperslots(Slot slot)
           
 SystemFrames getSystemFrames()
           
 Collection getTemplateFacets(Cls cls, Slot slot)
           
 Object getTemplateFacetValue(Cls cls, Slot slot, Facet facet)
           
 Collection getTemplateFacetValues(Cls cls, Slot slot, Facet facet)
           
 Collection getTemplateSlotAllowedClses(Cls cls, Slot slot)
           
 Collection getTemplateSlotAllowedParents(Cls cls, Slot slot)
           
 Collection getTemplateSlotAllowedValues(Cls cls, Slot slot)
           
 boolean getTemplateSlotAllowsMultipleValues(Cls cls, Slot slot)
           
 Collection getTemplateSlotDefaultValues(Cls cls, Slot slot)
           
 Collection getTemplateSlotDocumentation(Cls cls, Slot slot)
           
 int getTemplateSlotMaximumCardinality(Cls cls, Slot slot)
           
 Number getTemplateSlotMaximumValue(Cls cls, Slot slot)
           
 int getTemplateSlotMinimumCardinality(Cls cls, Slot slot)
           
 Number getTemplateSlotMinimumValue(Cls cls, Slot slot)
           
 Collection getTemplateSlots(Cls cls)
           
 Object getTemplateSlotValue(Cls cls, Slot slot)
           
 Collection getTemplateSlotValues(Cls cls, Slot slot)
           
 ValueType getTemplateSlotValueType(Cls cls, Slot slot)
           
 Collection getUnreachableSimpleInstances(Collection roots)
           
 String getUserName()
           
 boolean getValueChecking()
           
 Collection getValues(Slot slot)
           
 Facet getValuesFacet()
           
 Slot getValuesSlot()
           
 ValueType getValueType(Slot slot)
           
 String getVersionString()
           
 String getVersionString(String s)
           
 boolean hasChanged()
           
 boolean hasDirectlyOverriddenTemplateFacet(Cls cls, Slot slot, Facet facet)
           
 boolean hasDirectlyOverriddenTemplateSlot(Cls cls, Slot slot)
           
 boolean hasDirectSubclass(Cls parent, Cls child)
           
 boolean hasDirectSuperclass(Cls child, Cls parent)
           
 boolean hasDirectSuperslot(Slot slot, Slot superslot)
           
 boolean hasDirectTemplateSlot(Cls cls, Slot slot)
           
 boolean hasDirectType(Instance instance, Cls type)
           
 boolean hasInheritedTemplateSlot(Cls cls, Slot slot)
           
 boolean hasOverriddenTemplateFacet(Cls cls, Slot slot, Facet facet)
           
 boolean hasOverriddenTemplateSlot(Cls cls, Slot slot)
           
 boolean hasOwnSlot(Frame frame, Slot slot)
           
 boolean hasSlotValueAtSomeFrame(Slot slot)
           
 boolean hasSubclass(Cls parent, Cls child)
           
 boolean hasSuperclass(Cls child, Cls superclass)
           
 boolean hasSuperslot(Slot slot, Slot superslot)
           
 boolean hasTemplateFacet(Cls cls, Slot slot, Facet facet)
           
 boolean hasTemplateSlot(Cls cls, Slot slot)
           
 boolean hasType(Instance instance, Cls type)
           
 void insertFrameStore(FrameStore newFrameStoreClass)
          Inserts a new frame store into the front of the delegation chain.
 void insertFrameStore(FrameStore newFrameStoreClass, FrameStore afterFrameStoreClass)
           
 void insertFrameStore(FrameStore newFrameStore, int position)
          Inserts a new frame store into the delegation chain.
 boolean isAbstract(Cls cls)
           
 boolean isAutoUpdatingFacetValues()
           
 boolean isCallCachingEnabled()
           
 boolean isClsMetaCls(Cls cls)
           
 boolean isDefaultClsMetaCls(Cls cls)
           
 boolean isDefaultFacetMetaCls(Cls cls)
           
 boolean isDefaultSlotMetaCls(Cls cls)
           
 boolean isFacetMetaCls(Cls cls)
           
 boolean isJournalingEnabled()
           
 boolean isLoading()
           
 boolean isMetaCls(Cls cls)
           
 boolean isSlotMetaCls(Cls cls)
           
 boolean isValidFrameName(String s, Frame frame)
           
 boolean isValidOwnSlotValue(Frame frame, Slot slot, Object value)
           
protected  FrameManager makeFrameManager()
           
 Instance makeSimpleInstance(String clsName, FrameID id)
          create an instance of the correct java class but do not put it in the kb
 void moveDirectSubclass(Cls parent, Cls child, Cls afterCls)
           
 void moveDirectSubslot(Slot slot, Slot subslot, Slot afterSlot)
           
 void moveDirectSuperclass(Cls child, Cls parent, Cls afterCls)
           
 void moveDirectTemplateSlot(Cls cls, Slot slot, int toIndex)
           
 void moveOwnSlotValue(Frame frame, Slot slot, int fromIndex, int toIndex)
           
 void moveTemplateFacetValue(Cls cls, Slot slot, Facet facet, int fromIndex, int toIndex)
           
 Instance newInstance(String name, Cls cls, FrameID id, boolean isNew)
           
 void notifyVisibilityChanged(Frame frame)
           
protected  void postBrowserTextChanged(Frame frame)
           
protected  void postOwnSlotValueChanged(Frame frame, Slot slot)
           
 void removeClsListener(Cls cls, ClsListener listener)
           
 void removeClsListener(ClsListener listener)
           
 void removeDirectSuperclass(Cls child, Cls parent)
           
 void removeDirectSuperslot(Slot slot, Slot superSlot)
           
 void removeDirectTemplateSlot(Cls cls, Slot slot)
           
 void removeDirectType(Instance instance, Cls type)
           
 void removeFacetListener(Facet facet, FacetListener listener)
           
 void removeFacetListener(FacetListener listener)
           
 void removeFrameListener(Frame frame, FrameListener listener)
           
 void removeFrameListener(FrameListener listener)
           
 void removeFrameStore(FrameStore frameStore)
           
 void removeInstanceListener(Instance instance, InstanceListener listener)
           
 void removeInstanceListener(InstanceListener listener)
           
 void removeJavaLoadPackage(String packageName)
           
 void removeKnowledgeBaseListener(KnowledgeBaseListener listener)
           
 void removeOwnSlotValue(Frame frame, Slot slot, Object value)
          remove all occurances of value
 void removeSlotListener(SlotListener listener)
           
 void removeSlotListener(Slot slot, SlotListener listener)
           
 void removeTemplateFacetOverrides(Cls cls, Slot slot)
           
 void setAbstract(Cls cls, boolean isAbstract)
           
 void setAllowedClses(Slot slot, Collection clses)
           
 void setAllowedParents(Slot slot, Collection parents)
           
 void setAllowedValues(Slot slot, Collection values)
           
 void setAllowsMultipleValues(Slot slot, boolean b)
           
 boolean setArgumentCheckingEnabled(boolean enabled)
           
 void setAssociatedFacet(Slot slot, Facet facet)
           
 void setAssociatedSlot(Facet facet, Slot slot)
           
 void setAutoUpdateFacetValues(boolean b)
           
 void setBuildString(String s)
           
 boolean setCallCachingEnabled(boolean enabled)
           
 void setChanged(boolean b)
           
 boolean setChangeMonitorEnabled(boolean enabled)
           
 boolean setCleanDispatchEnabled(boolean enabled)
           
 Object setClientInformation(Object key, Object value)
           
 void setDefaultClsMetaCls(Cls cls)
           
 void setDefaultFacetMetaCls(Cls cls)
           
 void setDefaultSlotMetaCls(Cls cls)
           
 void setDefaultValues(Slot slot, Collection values)
           
 void setDirectBrowserSlot(Cls cls, Slot slot)
           
 void setDirectBrowserSlotPattern(Cls cls, BrowserSlotPattern p)
           
 void setDirectOwnSlotValues(Frame frame, Slot slot, Collection values)
           
 Instance setDirectType(Instance instance, Cls type)
           
 void setDirectTypeOfSubclasses(Cls cls, Cls metaCls)
           
 void setDirectTypeOfSubslots(Slot slot, Cls cls)
           
 boolean setDispatchEventsEnabled(boolean b)
           
 void setDocumentation(Frame frame, Collection docs)
           
 void setDocumentation(Frame frame, String doc)
           
 boolean setEventsEnabled(boolean enabled)
          Deprecated.  
 boolean setFacetCheckingEnabled(boolean enabled)
           
 void setFrameFactory(FrameFactory f)
           
 void setFrameName(Frame frame, String newName)
           
 void setFrameNamePrefix(String prefix)
           
 void setFrameNameValidator(FrameNameValidator validator)
           
 boolean setFrameStoreEnabled(Class frameStoreClass, boolean enable)
           
 boolean setGenerateEventsEnabled(boolean b)
           
 void setInverseSlot(Slot slot, Slot inverseSlot)
           
 boolean setJournalingEnabled(boolean enabled)
           
 void setLoading(boolean loading)
           
 void setMaximumCardinality(Slot slot, int max)
           
 void setMaximumValue(Slot slot, Number min)
           
 void setMinimumCardinality(Slot slot, int min)
           
 void setMinimumValue(Slot slot, Number min)
           
 void setName(String name)
           
 void setNextFrameNumber(int i)
           
 void setOwnSlotValue(Frame frame, Slot slot, Object value)
           
 void setOwnSlotValues(Frame frame, Slot slot, Collection values)
          same as #setDirectOwnSlotValues(Frame, Slot, Collection)
 void setPollForEvents(boolean b)
           
 void setProject(Project project)
           
 void setSlotValueFacetChecking(boolean b)
          Checks every call that changes an own slot value that the new value is consistent with all facets.
 void setStorage(Storage storage)
           
 void setTemplateFacetValue(Cls cls, Slot slot, Facet facet, Object value)
           
 void setTemplateFacetValues(Cls cls, Slot slot, Facet facet, Collection values)
           
 void setTemplateSlotAllowedClses(Cls cls, Slot slot, Collection clses)
           
 void setTemplateSlotAllowedParents(Cls cls, Slot slot, Collection clses)
           
 void setTemplateSlotAllowedValues(Cls cls, Slot slot, Collection values)
           
 void setTemplateSlotAllowsMultipleValues(Cls cls, Slot slot, boolean allowed)
           
 void setTemplateSlotDefaultValues(Cls cls, Slot slot, Collection values)
           
 void setTemplateSlotDocumentation(Cls cls, Slot slot, Collection doc)
           
 void setTemplateSlotDocumentation(Cls cls, Slot slot, String doc)
           
 void setTemplateSlotMaximumCardinality(Cls cls, Slot slot, int max)
           
 void setTemplateSlotMaximumValue(Cls cls, Slot slot, Number value)
           
 void setTemplateSlotMinimumCardinality(Cls cls, Slot slot, int min)
           
 void setTemplateSlotMinimumValue(Cls cls, Slot slot, Number value)
           
 void setTemplateSlotValue(Cls cls, Slot slot, Object value)
           
 void setTemplateSlotValues(Cls cls, Slot slot, Collection values)
           
 void setTemplateSlotValueType(Cls cls, Slot slot, ValueType type)
           
 boolean setUndoEnabled(boolean b)
           
 void setUserName(String name)
           
 void setValueChecking(boolean b)
          Checks every call that changes an own slot value that the new value is consistent with all facets.
 void setValues(Slot slot, Collection values)
           
 void setValueType(Slot slot, ValueType valueType)
           
 void setValueTypeFacetValues(Cls cls, Slot slot, Collection values)
           
 void setValueTypeOwnSlotValues(Slot slot, Collection values)
           
 void setVersionString(String s)
           
 void startJournaling(String userName, URI uri)
           
 void stopJournaling()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OldJdbcDefaultKnowledgeBase

public OldJdbcDefaultKnowledgeBase(KnowledgeBaseFactory factory)
Method Detail

addClsListener

public void addClsListener(Cls cls,
                           ClsListener listener)
Description copied from interface: KnowledgeBase
Add a listener for class events for a particular class

Specified by:
addClsListener in interface KnowledgeBase

addDirectSuperclass

public void addDirectSuperclass(Cls child,
                                Cls parent)
Specified by:
addDirectSuperclass in interface KnowledgeBase

addDirectSuperslot

public void addDirectSuperslot(Slot slot,
                               Slot superslot)
Specified by:
addDirectSuperslot in interface KnowledgeBase

addDirectTemplateSlot

public void addDirectTemplateSlot(Cls cls,
                                  Slot slot)
Specified by:
addDirectTemplateSlot in interface KnowledgeBase

addFacetListener

public void addFacetListener(Facet facet,
                             FacetListener listener)
Description copied from interface: KnowledgeBase
Add a listener for facet events for a particular facet

Specified by:
addFacetListener in interface KnowledgeBase

addFrameListener

public void addFrameListener(Frame frame,
                             FrameListener listener)
Description copied from interface: KnowledgeBase
add a listener fro frame evnets for a particular frame

Specified by:
addFrameListener in interface KnowledgeBase

addInstance

public void addInstance(Instance instance,
                        String name,
                        Cls type,
                        boolean isNew)
Specified by:
addInstance in interface KnowledgeBase

addInstanceListener

public void addInstanceListener(Instance instance,
                                InstanceListener listener)
Specified by:
addInstanceListener in interface KnowledgeBase

equals

public static boolean equals(Object o1,
                             Object o2)

addJavaLoadPackage

public void addJavaLoadPackage(String packageName)
Description copied from interface: KnowledgeBase
This method requires some background information. When Protege wants to create a simple instance in the kb it creates an instance of the java class "DefaultSimpleInstance". Programmers can subclass this class and give the subclass the name of a class in the kb. Then when protege wants to create an instance of the class in the kb it will instead make an instance of the programmers java class rather than DefaultSimpleInstance. In order for this to work the user must specify the package that their java class appears in. (The class file must also be in the plugins directory.) For example, consider a protege project with a class A. Now a programmer creates a subclass of model.DefaultSimpleInstance and calls it org.me.A. He puts this .class file in the plugins/org/me directory. (Presumably he creates the subclass this in order to add additional methods onto org.me.A to provide some sort of desired functionality. The desired behavior is that when the user creates an instance of the kb class A that the system will create an instance of org.me.A and put it in the kb. Then when the programmer queries the kb for "get me instances of A" he will get back instances which can be cast to org.me.A. So, what this method does is to tell the system what package to search to find the java class to create. When the system creates an instance of A it searches all the packages, in order, to find a java class with the name .A. If it finds one then it uses it to create an instance. If it doesn't find any matches then it creates an instance of DefaultSimpleInstance.

Specified by:
addJavaLoadPackage in interface KnowledgeBase

addKnowledgeBaseListener

public void addKnowledgeBaseListener(KnowledgeBaseListener listener)
Specified by:
addKnowledgeBaseListener in interface KnowledgeBase

addOwnSlotValue

public void addOwnSlotValue(Frame frame,
                            Slot slot,
                            Object value)
Specified by:
addOwnSlotValue in interface KnowledgeBase

addOwnSlotValue

public void addOwnSlotValue(Frame frame,
                            Slot slot,
                            Object value,
                            int index)

addSlotListener

public void addSlotListener(Slot slot,
                            SlotListener listener)
Specified by:
addSlotListener in interface KnowledgeBase

addTemplateFacetValue

public void addTemplateFacetValue(Cls cls,
                                  Slot slot,
                                  Facet facet,
                                  Object value)
Specified by:
addTemplateFacetValue in interface KnowledgeBase

addTemplateFacetValue

public void addTemplateFacetValue(Cls cls,
                                  Slot slot,
                                  Facet facet,
                                  Object value,
                                  int index)

addTemplateSlotValue

public void addTemplateSlotValue(Cls cls,
                                 Slot slot,
                                 Object value)
Specified by:
addTemplateSlotValue in interface KnowledgeBase

areValidOwnSlotValues

public boolean areValidOwnSlotValues(Frame frame,
                                     Slot slot,
                                     Collection values)
Specified by:
areValidOwnSlotValues in interface KnowledgeBase

beginTransaction

public boolean beginTransaction(String name)
Specified by:
beginTransaction in interface KnowledgeBase

changeFrameName

public void changeFrameName(Frame frame,
                            String newName)
Deprecated. Use #setFrameName(Frame, String)

Specified by:
changeFrameName in interface KnowledgeBase

setFrameName

public void setFrameName(Frame frame,
                         String newName)
Specified by:
setFrameName in interface KnowledgeBase

containsFrame

public boolean containsFrame(String name)
Specified by:
containsFrame in interface KnowledgeBase

createCls

public Cls createCls(String name,
                     Collection directSuperclasses)
Specified by:
createCls in interface KnowledgeBase

createCls

public Cls createCls(String name,
                     Collection parents,
                     Cls metaCls)
Specified by:
createCls in interface KnowledgeBase

createCls

public Cls createCls(String name,
                     Collection parents,
                     Cls metaCls,
                     boolean isNew)
Specified by:
createCls in interface KnowledgeBase

createFacet

public Facet createFacet(String name)
Specified by:
createFacet in interface KnowledgeBase

createFacet

public Facet createFacet(String name,
                         Cls metaCls)
Specified by:
createFacet in interface KnowledgeBase

createFacet

public Facet createFacet(String name,
                         Cls metaCls,
                         boolean isNew)
Specified by:
createFacet in interface KnowledgeBase

createInstance

public Instance createInstance(String name,
                               Cls cls)
Specified by:
createInstance in interface KnowledgeBase

createInstance

public Instance createInstance(String name,
                               Cls cls,
                               boolean isNew)
Specified by:
createInstance in interface KnowledgeBase

createSimpleInstance

public Instance createSimpleInstance(String name,
                                     Cls cls)

createSimpleInstance

public Instance createSimpleInstance(String name,
                                     Cls cls,
                                     boolean isNew)

createSlot

public Slot createSlot(String name)
Specified by:
createSlot in interface KnowledgeBase

createSlot

public Slot createSlot(String name,
                       Cls metaCls)
Specified by:
createSlot in interface KnowledgeBase

createSlot

public Slot createSlot(String name,
                       Cls metaCls,
                       Collection superslots,
                       boolean isNew)
Specified by:
createSlot in interface KnowledgeBase

createSlot

public Slot createSlot(String name,
                       Cls metaCls,
                       boolean isNew)
Specified by:
createSlot in interface KnowledgeBase

createUniqueFrameName

public String createUniqueFrameName(String name)
Deprecated.  

Specified by:
createUniqueFrameName in interface KnowledgeBase

deleteCls

public void deleteCls(Cls cls)
Specified by:
deleteCls in interface KnowledgeBase

deleteFacet

public void deleteFacet(Facet facet)
Specified by:
deleteFacet in interface KnowledgeBase

deleteFrame

public void deleteFrame(Frame frame)
Specified by:
deleteFrame in interface KnowledgeBase

deleteInstance

public void deleteInstance(Instance instance)
Specified by:
deleteInstance in interface KnowledgeBase

deleteSimpleInstance

public void deleteSimpleInstance(SimpleInstance instance)

deleteSlot

public void deleteSlot(Slot slot)
Specified by:
deleteSlot in interface KnowledgeBase

dispose

public void dispose()
Specified by:
dispose in interface Disposable

endTransaction

public boolean endTransaction(boolean doCommit)
Specified by:
endTransaction in interface KnowledgeBase

getAllowedClses

public Collection getAllowedClses(Slot slot)
Specified by:
getAllowedClses in interface KnowledgeBase

getAllowedParents

public Collection getAllowedParents(Slot slot)
Specified by:
getAllowedParents in interface KnowledgeBase

getAllowedValues

public Collection getAllowedValues(Slot slot)
Specified by:
getAllowedValues in interface KnowledgeBase

getAllowsMultipleValues

public boolean getAllowsMultipleValues(Slot slot)
Specified by:
getAllowsMultipleValues in interface KnowledgeBase

getAssociatedFacet

public Facet getAssociatedFacet(Slot slot)
Specified by:
getAssociatedFacet in interface KnowledgeBase

getAssociatedSlot

public Slot getAssociatedSlot(Facet facet)
Specified by:
getAssociatedSlot in interface KnowledgeBase

getBrowserText

public String getBrowserText(Instance instance)
Specified by:
getBrowserText in interface KnowledgeBase

getBuildString

public String getBuildString()
Description copied from interface: KnowledgeBase
Returns a string that contains something like "build 840" that refers to the build of Protege in use when this kb was last saved. This string format is not reliable and may change.

Specified by:
getBuildString in interface KnowledgeBase

getClientInformation

public Object getClientInformation(Object key)
Description copied from interface: KnowledgeBase
Allows a programmer to hang arbitrary information on a kb and retrieve it later. This information is not persistent. Since all programmers share the same "client information space" we recommend that your "key" be your java.lang.Class object. If you want to store more than one piece of information then you can make your value a set (or a map). Thus the common usage would be:
 
       Map myGoodStuff = new HashMap();
       myGoodStuff.put("foo", "bar");
       kb.setClientInformation(myClass.class, myGoodStuff);
       // ... later
       Map myGoodStuff = (Map) kb.getClientInformation(myClass.class);
  
Widget writers typically don't need this sort of thing but backend authors do because one instance of the backend may need to communicate information to another instance (the loader to the storer, for example). This is very similar to the "client property" feature on javax.swing.JComponent or the client information on MS Windows windows and it exists for the same reasons. It allows you to store anything you want.

Specified by:
getClientInformation in interface KnowledgeBase

getCls

public Cls getCls(String name)
Specified by:
getCls in interface KnowledgeBase

getClsCount

public int getClsCount()
Specified by:
getClsCount in interface KnowledgeBase

getClses

public Collection getClses()
Specified by:
getClses in interface KnowledgeBase

getClsNameMatches

public Collection getClsNameMatches(String s,
                                    int maxMatches)
Description copied from interface: KnowledgeBase
Get classes whose name matches the give string. This string allows "*" for "match any sequence" of characters. The string is not a regular expression. The matching is case-insensitive.

Specified by:
getClsNameMatches in interface KnowledgeBase

getDefaultClsMetaCls

public Cls getDefaultClsMetaCls()
Description copied from interface: KnowledgeBase
If no meta class is specified when a class is created the system uses the metaclass of the first specified parent. If no parent is specified, or if the parent is :THING then the system uses this metaclass.

Specified by:
getDefaultClsMetaCls in interface KnowledgeBase

getDefaultFacetMetaCls

public Cls getDefaultFacetMetaCls()
Specified by:
getDefaultFacetMetaCls in interface KnowledgeBase

getDefaultSlotMetaCls

public Cls getDefaultSlotMetaCls()
Specified by:
getDefaultSlotMetaCls in interface KnowledgeBase

getDefaultValues

public Collection getDefaultValues(Slot slot)
Specified by:
getDefaultValues in interface KnowledgeBase

getDefaultValuesFacet

public Facet getDefaultValuesFacet()

getDefaultValuesSlot

public Slot getDefaultValuesSlot()

getDirectInstanceCount

public int getDirectInstanceCount(Cls type)
Specified by:
getDirectInstanceCount in interface KnowledgeBase

getDirectInstances

public Collection getDirectInstances(Cls type)
Specified by:
getDirectInstances in interface KnowledgeBase

getDirectInstancesSlot

public Slot getDirectInstancesSlot()

getDirectSubclassCount

public int getDirectSubclassCount(Cls parent)
Specified by:
getDirectSubclassCount in interface KnowledgeBase

getDirectSubclasses

public Collection getDirectSubclasses(Cls parent)
Specified by:
getDirectSubclasses in interface KnowledgeBase

getDirectSubclassesSlot

public Slot getDirectSubclassesSlot()

getDirectSubslotCount

public int getDirectSubslotCount(Slot slot)
Specified by:
getDirectSubslotCount in interface KnowledgeBase

getDirectSubslots

public Collection getDirectSubslots(Slot slot)
Specified by:
getDirectSubslots in interface KnowledgeBase

getDirectSuperclassCount

public int getDirectSuperclassCount(Cls cls)
Specified by:
getDirectSuperclassCount in interface KnowledgeBase

getDirectSuperclasses

public Collection getDirectSuperclasses(Cls cls)
Specified by:
getDirectSuperclasses in interface KnowledgeBase

getDirectSuperclassesSlot

public Slot getDirectSuperclassesSlot()

getDirectSuperslotsSlot

public Slot getDirectSuperslotsSlot()

getDirectSuperslotCount

public int getDirectSuperslotCount(Slot slot)
Specified by:
getDirectSuperslotCount in interface KnowledgeBase

getDirectSuperslots

public Collection getDirectSuperslots(Slot slot)
Specified by:
getDirectSuperslots in interface KnowledgeBase

getDirectTemplateFacetValues

public List getDirectTemplateFacetValues(Cls cls,
                                         Slot slot,
                                         Facet facet)
Specified by:
getDirectTemplateFacetValues in interface KnowledgeBase

getDirectTemplateSlots

public Collection getDirectTemplateSlots(Cls cls)
Specified by:
getDirectTemplateSlots in interface KnowledgeBase

getDirectTemplateSlotsSlot

public Slot getDirectTemplateSlotsSlot()

getDirectTemplateSlotValues

public List getDirectTemplateSlotValues(Cls cls,
                                        Slot slot)
Specified by:
getDirectTemplateSlotValues in interface KnowledgeBase

getDirectType

public Cls getDirectType(Instance instance)
Specified by:
getDirectType in interface KnowledgeBase

getDirectTypes

public Collection getDirectTypes(Instance instance)
Specified by:
getDirectTypes in interface KnowledgeBase

getDirectTypeSlot

public Slot getDirectTypeSlot()

getDocumentation

public Collection getDocumentation(Frame frame)
Specified by:
getDocumentation in interface KnowledgeBase

getFacet

public Facet getFacet(String name)
Specified by:
getFacet in interface KnowledgeBase

getFacetCount

public int getFacetCount()
Specified by:
getFacetCount in interface KnowledgeBase

getFacets

public Collection getFacets()
Specified by:
getFacets in interface KnowledgeBase

getFrame

public Frame getFrame(FrameID id)
Specified by:
getFrame in interface KnowledgeBase

getFrame

public Frame getFrame(String name)
Specified by:
getFrame in interface KnowledgeBase

getFrameCount

public int getFrameCount()
Specified by:
getFrameCount in interface KnowledgeBase

getFrameCreationTimestamp

public String getFrameCreationTimestamp(Frame frame)
Specified by:
getFrameCreationTimestamp in interface KnowledgeBase

getFrameCreator

public String getFrameCreator(Frame frame)
Specified by:
getFrameCreator in interface KnowledgeBase

getFrameLastModificationTimestamp

public String getFrameLastModificationTimestamp(Frame frame)
Specified by:
getFrameLastModificationTimestamp in interface KnowledgeBase

getFrameLastModifier

public String getFrameLastModifier(Frame frame)
Specified by:
getFrameLastModifier in interface KnowledgeBase

getFrameNameMatches

public Collection getFrameNameMatches(String s,
                                      int maxMatches)
Specified by:
getFrameNameMatches in interface KnowledgeBase

getFrameNamePrefix

public String getFrameNamePrefix()
Specified by:
getFrameNamePrefix in interface KnowledgeBase

getFrames

public Collection getFrames()
Specified by:
getFrames in interface KnowledgeBase

getInstance

public Instance getInstance(String name)
Specified by:
getInstance in interface KnowledgeBase

getInstanceCount

public int getInstanceCount(Cls type)
Specified by:
getInstanceCount in interface KnowledgeBase

getInstances

public Collection getInstances()
Specified by:
getInstances in interface KnowledgeBase

getInstances

public Collection getInstances(Cls type)
Deprecated.  

Specified by:
getInstances in interface KnowledgeBase

getInvalidOwnSlotValuesText

public String getInvalidOwnSlotValuesText(Frame frame,
                                          Slot slot,
                                          Collection values)
Specified by:
getInvalidOwnSlotValuesText in interface KnowledgeBase

getInvalidOwnSlotValueText

public String getInvalidOwnSlotValueText(Frame frame,
                                         Slot slot,
                                         Object value)
Specified by:
getInvalidOwnSlotValueText in interface KnowledgeBase

getInverseSlot

public Slot getInverseSlot(Slot slot)
Specified by:
getInverseSlot in interface KnowledgeBase

getKnowledgeBaseFactory

public KnowledgeBaseFactory getKnowledgeBaseFactory()
Specified by:
getKnowledgeBaseFactory in interface KnowledgeBase

getMatchingFrames

public Collection getMatchingFrames(Slot slot,
                                    Facet facet,
                                    boolean isTemplate,
                                    String s,
                                    int nMatches)
Description copied from interface: KnowledgeBase
Finds all occurances of a string in the knowledge base.

Specified by:
getMatchingFrames in interface KnowledgeBase
Parameters:
slot - The slot to use. Must not be null.
facet - If null then the value parameter is a slot value. Otherwise it is a facet value.
isTemplate - If true then the return value is a template slot/facet value.
s - The string to match on. The string can include wild cards. The matching is case insensitive.
nMatches - maximum number of matches. Use -1 to get all matches. Be careful though. If the use searches on "e" do you really want to return 1M frames?
Returns:
Collection of frames.

getFramesWithValue

public Collection getFramesWithValue(Slot slot,
                                     Facet facet,
                                     boolean isTemplate,
                                     Object value)
Description copied from interface: KnowledgeBase
Gets frames with a particular own/template slot/facet value.

Specified by:
getFramesWithValue in interface KnowledgeBase
Parameters:
slot - The slot to use. Must not be null.
facet - If null then the value parameter is a slot value. Otherwise it is a facet value.
isTemplate - If true then the return value is a template slot/facet value.
value - A value to match exactly. The type of the object can be one of those listed in the documentation for Frame
Returns:
Collection of frames.

getMaximumCardinality

public int getMaximumCardinality(Slot slot)
Specified by:
getMaximumCardinality in interface KnowledgeBase

getMaximumValue

public Number getMaximumValue(Slot slot)
Specified by:
getMaximumValue in interface KnowledgeBase

getMinimumCardinality

public int getMinimumCardinality(Slot slot)
Specified by:
getMinimumCardinality in interface KnowledgeBase

getMinimumValue

public Number getMinimumValue(Slot slot)
Specified by:
getMinimumValue in interface KnowledgeBase

getName

public String getName()
Specified by:
getName in interface KnowledgeBase

getName

public String getName(Frame frame)
Specified by:
getName in interface KnowledgeBase

getNameSlot

public Slot getNameSlot()
Specified by:
getNameSlot in interface KnowledgeBase

getNextFrameNumber

public int getNextFrameNumber()
Specified by:
getNextFrameNumber in interface KnowledgeBase

getOwnSlotAllowsMultipleValues

public boolean getOwnSlotAllowsMultipleValues(Frame frame,
                                              Slot slot)
Specified by:
getOwnSlotAllowsMultipleValues in interface KnowledgeBase

getOwnSlotAndSubslotValues

public Collection getOwnSlotAndSubslotValues(Frame frame,
                                             Slot slot)
Specified by:
getOwnSlotAndSubslotValues in interface KnowledgeBase

getOwnSlotDefaultValues

public Collection getOwnSlotDefaultValues(Frame frame,
                                          Slot slot)
Specified by:
getOwnSlotDefaultValues in interface KnowledgeBase

getOwnSlotFacets

public Collection getOwnSlotFacets(Frame frame,
                                   Slot slot)
Specified by:
getOwnSlotFacets in interface KnowledgeBase

getOwnSlotFacetValues

public Collection getOwnSlotFacetValues(Frame frame,
                                        Slot slot,
                                        Facet facet)
Specified by:
getOwnSlotFacetValues in interface KnowledgeBase

getOwnSlots

public Collection getOwnSlots(Frame frame)
Specified by:
getOwnSlots in interface KnowledgeBase

getOwnSlotValue

public Object getOwnSlotValue(Frame frame,
                              Slot slot)
Specified by:
getOwnSlotValue in interface KnowledgeBase

getOwnSlotValueCount

public int getOwnSlotValueCount(Frame frame,
                                Slot slot)
Specified by:
getOwnSlotValueCount in interface KnowledgeBase

getDirectOwnSlotValues

public List getDirectOwnSlotValues(Frame frame,
                                   Slot slot)
Specified by:
getDirectOwnSlotValues in interface KnowledgeBase

getOwnSlotValues

public Collection getOwnSlotValues(Frame frame,
                                   Slot slot)
Specified by:
getOwnSlotValues in interface KnowledgeBase

getOwnSlotValueType

public ValueType getOwnSlotValueType(Frame frame,
                                     Slot slot)
Specified by:
getOwnSlotValueType in interface KnowledgeBase

getProject

public Project getProject()
Specified by:
getProject in interface KnowledgeBase

getReachableSimpleInstances

public Collection getReachableSimpleInstances(Collection roots)
Specified by:
getReachableSimpleInstances in interface KnowledgeBase

getReferences

public Collection getReferences(Object o,
                                int maxReferences)
Specified by:
getReferences in interface KnowledgeBase
Returns:
A collection of #Reference instances.

getMatchingReferences

public Collection getMatchingReferences(String s,
                                        int maxReferences)
Specified by:
getMatchingReferences in interface KnowledgeBase

getRootCls

public Cls getRootCls()
Specified by:
getRootCls in interface KnowledgeBase

getRootClses

public Collection getRootClses()
Specified by:
getRootClses in interface KnowledgeBase
Returns:
":THING" wrapped in a collection. A convenience method.

getRootClsMetaCls

public Cls getRootClsMetaCls()
Specified by:
getRootClsMetaCls in interface KnowledgeBase

getRootFacetMetaCls

public Cls getRootFacetMetaCls()
Specified by:
getRootFacetMetaCls in interface KnowledgeBase

getRootSlotMetaCls

public Cls getRootSlotMetaCls()
Specified by:
getRootSlotMetaCls in interface KnowledgeBase

getRootSlots

public Collection getRootSlots()
Specified by:
getRootSlots in interface KnowledgeBase

getSlot

public Slot getSlot(String name)
Specified by:
getSlot in interface KnowledgeBase

getSlotCount

public int getSlotCount()
Specified by:
getSlotCount in interface KnowledgeBase

getSlots

public Collection getSlots()
Specified by:
getSlots in interface KnowledgeBase

getSlotValueLastModificationTimestamp

public String getSlotValueLastModificationTimestamp(Frame frame,
                                                    Slot slot,
                                                    boolean isTemplate)
Specified by:
getSlotValueLastModificationTimestamp in interface KnowledgeBase

getSlotValueLastModifier

public String getSlotValueLastModifier(Frame frame,
                                       Slot slot,
                                       boolean isTemplate)
Specified by:
getSlotValueLastModifier in interface KnowledgeBase

getStorage

public Storage getStorage()

getSubclassCount

public int getSubclassCount(Cls parent)

getSubclasses

public Collection getSubclasses(Cls parent)
Deprecated.  

Specified by:
getSubclasses in interface KnowledgeBase

getSubslots

public Collection getSubslots(Slot slot)
Specified by:
getSubslots in interface KnowledgeBase

getSuperclassCount

public int getSuperclassCount(Cls child)

getSuperclasses

public Collection getSuperclasses(Cls child)
Specified by:
getSuperclasses in interface KnowledgeBase

getSuperslots

public Collection getSuperslots(Slot slot)
Specified by:
getSuperslots in interface KnowledgeBase

getTemplateFacets

public Collection getTemplateFacets(Cls cls,
                                    Slot slot)
Specified by:
getTemplateFacets in interface KnowledgeBase

getTemplateFacetValue

public Object getTemplateFacetValue(Cls cls,
                                    Slot slot,
                                    Facet facet)
Specified by:
getTemplateFacetValue in interface KnowledgeBase

getTemplateFacetValues

public Collection getTemplateFacetValues(Cls cls,
                                         Slot slot,
                                         Facet facet)
Specified by:
getTemplateFacetValues in interface KnowledgeBase

getTemplateSlotAllowedClses

public Collection getTemplateSlotAllowedClses(Cls cls,
                                              Slot slot)
Specified by:
getTemplateSlotAllowedClses in interface KnowledgeBase

getTemplateSlotAllowedParents

public Collection getTemplateSlotAllowedParents(Cls cls,
                                                Slot slot)
Specified by:
getTemplateSlotAllowedParents in interface KnowledgeBase

getTemplateSlotAllowedValues

public Collection getTemplateSlotAllowedValues(Cls cls,
                                               Slot slot)
Specified by:
getTemplateSlotAllowedValues in interface KnowledgeBase

getTemplateSlotAllowsMultipleValues

public boolean getTemplateSlotAllowsMultipleValues(Cls cls,
                                                   Slot slot)
Specified by:
getTemplateSlotAllowsMultipleValues in interface KnowledgeBase

getDirectDomain

public Collection getDirectDomain(Slot slot)
Specified by:
getDirectDomain in interface KnowledgeBase

getDomain

public Collection getDomain(Slot slot)
Specified by:
getDomain in interface KnowledgeBase

getTemplateSlotDefaultValues

public Collection getTemplateSlotDefaultValues(Cls cls,
                                               Slot slot)
Specified by:
getTemplateSlotDefaultValues in interface KnowledgeBase

getTemplateSlotDocumentation

public Collection getTemplateSlotDocumentation(Cls cls,
                                               Slot slot)
Specified by:
getTemplateSlotDocumentation in interface KnowledgeBase

getTemplateSlotMaximumCardinality

public int getTemplateSlotMaximumCardinality(Cls cls,
                                             Slot slot)
Specified by:
getTemplateSlotMaximumCardinality in interface KnowledgeBase

getTemplateSlotMaximumValue

public Number getTemplateSlotMaximumValue(Cls cls,
                                          Slot slot)
Specified by:
getTemplateSlotMaximumValue in interface KnowledgeBase

getTemplateSlotMinimumCardinality

public int getTemplateSlotMinimumCardinality(Cls cls,
                                             Slot slot)
Specified by:
getTemplateSlotMinimumCardinality in interface KnowledgeBase

getTemplateSlotMinimumValue

public Number getTemplateSlotMinimumValue(Cls cls,
                                          Slot slot)
Specified by:
getTemplateSlotMinimumValue in interface KnowledgeBase

getTemplateSlots

public Collection getTemplateSlots(Cls cls)
Specified by:
getTemplateSlots in interface KnowledgeBase

getTemplateSlotValue

public Object getTemplateSlotValue(Cls cls,
                                   Slot slot)
Specified by:
getTemplateSlotValue in interface KnowledgeBase

getTemplateSlotValues

public Collection getTemplateSlotValues(Cls cls,
                                        Slot slot)
Specified by:
getTemplateSlotValues in interface KnowledgeBase

getTemplateSlotValueType

public ValueType getTemplateSlotValueType(Cls cls,
                                          Slot slot)
Specified by:
getTemplateSlotValueType in interface KnowledgeBase

getUnreachableSimpleInstances

public Collection getUnreachableSimpleInstances(Collection roots)
Specified by:
getUnreachableSimpleInstances in interface KnowledgeBase

getUserName

public String getUserName()
Specified by:
getUserName in interface KnowledgeBase

getValues

public Collection getValues(Slot slot)
Specified by:
getValues in interface KnowledgeBase

getValuesFacet

public Facet getValuesFacet()

getValuesSlot

public Slot getValuesSlot()

getValueType

public ValueType getValueType(Slot slot)
Specified by:
getValueType in interface KnowledgeBase

getVersionString

public String getVersionString()
Specified by:
getVersionString in interface KnowledgeBase
Returns:
a string that contains something like "Version 1.6.2" that refers to the version of Protege in use when this kb was last saved. This string format is not reliable and may change.

getVersionString

public String getVersionString(String s)

hasChanged

public boolean hasChanged()
Specified by:
hasChanged in interface KnowledgeBase

hasDirectlyOverriddenTemplateFacet

public boolean hasDirectlyOverriddenTemplateFacet(Cls cls,
                                                  Slot slot,
                                                  Facet facet)
Specified by:
hasDirectlyOverriddenTemplateFacet in interface KnowledgeBase

hasDirectlyOverriddenTemplateSlot

public boolean hasDirectlyOverriddenTemplateSlot(Cls cls,
                                                 Slot slot)
Specified by:
hasDirectlyOverriddenTemplateSlot in interface KnowledgeBase

hasDirectSubclass

public boolean hasDirectSubclass(Cls parent,
                                 Cls child)

hasDirectSuperclass

public boolean hasDirectSuperclass(Cls child,
                                   Cls parent)
Specified by:
hasDirectSuperclass in interface KnowledgeBase

hasDirectSuperslot

public boolean hasDirectSuperslot(Slot slot,
                                  Slot superslot)
Specified by:
hasDirectSuperslot in interface KnowledgeBase

hasDirectTemplateSlot

public boolean hasDirectTemplateSlot(Cls cls,
                                     Slot slot)
Specified by:
hasDirectTemplateSlot in interface KnowledgeBase

hasDirectType

public boolean hasDirectType(Instance instance,
                             Cls type)
Specified by:
hasDirectType in interface KnowledgeBase

hasInheritedTemplateSlot

public boolean hasInheritedTemplateSlot(Cls cls,
                                        Slot slot)
Specified by:
hasInheritedTemplateSlot in interface KnowledgeBase

hasOverriddenTemplateFacet

public boolean hasOverriddenTemplateFacet(Cls cls,
                                          Slot slot,
                                          Facet facet)
Specified by:
hasOverriddenTemplateFacet in interface KnowledgeBase

hasOverriddenTemplateSlot

public boolean hasOverriddenTemplateSlot(Cls cls,
                                         Slot slot)
Specified by:
hasOverriddenTemplateSlot in interface KnowledgeBase

hasOwnSlot

public boolean hasOwnSlot(Frame frame,
                          Slot slot)
Specified by:
hasOwnSlot in interface KnowledgeBase

hasSlotValueAtSomeFrame

public boolean hasSlotValueAtSomeFrame(Slot slot)
Specified by:
hasSlotValueAtSomeFrame in interface KnowledgeBase

hasSubclass

public boolean hasSubclass(Cls parent,
                           Cls child)

hasSuperclass

public boolean hasSuperclass(Cls child,
                             Cls superclass)
Specified by:
hasSuperclass in interface KnowledgeBase

hasTemplateFacet

public boolean hasTemplateFacet(Cls cls,
                                Slot slot,
                                Facet facet)

hasTemplateSlot

public boolean hasTemplateSlot(Cls cls,
                               Slot slot)
Specified by:
hasTemplateSlot in interface KnowledgeBase

hasType

public boolean hasType(Instance instance,
                       Cls type)
Specified by:
hasType in interface KnowledgeBase

isAbstract

public boolean isAbstract(Cls cls)
Specified by:
isAbstract in interface KnowledgeBase

isAutoUpdatingFacetValues

public boolean isAutoUpdatingFacetValues()
Specified by:
isAutoUpdatingFacetValues in interface KnowledgeBase

isClsMetaCls

public boolean isClsMetaCls(Cls cls)
Specified by:
isClsMetaCls in interface KnowledgeBase

isDefaultClsMetaCls

public boolean isDefaultClsMetaCls(Cls cls)
Specified by:
isDefaultClsMetaCls in interface KnowledgeBase

isDefaultFacetMetaCls

public boolean isDefaultFacetMetaCls(Cls cls)
Specified by:
isDefaultFacetMetaCls in interface KnowledgeBase

isDefaultSlotMetaCls

public boolean isDefaultSlotMetaCls(Cls cls)
Specified by:
isDefaultSlotMetaCls in interface KnowledgeBase

isFacetMetaCls

public boolean isFacetMetaCls(Cls cls)
Specified by:
isFacetMetaCls in interface KnowledgeBase

isLoading

public boolean isLoading()
Specified by:
isLoading in interface KnowledgeBase

isMetaCls

public boolean isMetaCls(Cls cls)
Specified by:
isMetaCls in interface KnowledgeBase

isSlotMetaCls

public boolean isSlotMetaCls(Cls cls)
Specified by:
isSlotMetaCls in interface KnowledgeBase

isValidOwnSlotValue

public boolean isValidOwnSlotValue(Frame frame,
                                   Slot slot,
                                   Object value)
Specified by:
isValidOwnSlotValue in interface KnowledgeBase

makeFrameManager

protected FrameManager makeFrameManager()

makeSimpleInstance

public Instance makeSimpleInstance(String clsName,
                                   FrameID id)
create an instance of the correct java class but do not put it in the kb


moveDirectSubclass

public void moveDirectSubclass(Cls parent,
                               Cls child,
                               Cls afterCls)
Specified by:
moveDirectSubclass in interface KnowledgeBase

moveDirectSuperclass

public void moveDirectSuperclass(Cls child,
                                 Cls parent,
                                 Cls afterCls)

moveDirectTemplateSlot

public void moveDirectTemplateSlot(Cls cls,
                                   Slot slot,
                                   int toIndex)
Specified by:
moveDirectTemplateSlot in interface KnowledgeBase

moveOwnSlotValue

public void moveOwnSlotValue(Frame frame,
                             Slot slot,
                             int fromIndex,
                             int toIndex)
Specified by:
moveOwnSlotValue in interface KnowledgeBase

moveTemplateFacetValue

public void moveTemplateFacetValue(Cls cls,
                                   Slot slot,
                                   Facet facet,
                                   int fromIndex,
                                   int toIndex)

newInstance

public Instance newInstance(String name,
                            Cls cls,
                            FrameID id,
                            boolean isNew)

notifyVisibilityChanged

public void notifyVisibilityChanged(Frame frame)
Specified by:
notifyVisibilityChanged in interface KnowledgeBase

postBrowserTextChanged

protected void postBrowserTextChanged(Frame frame)

postOwnSlotValueChanged

protected void postOwnSlotValueChanged(Frame frame,
                                       Slot slot)

removeClsListener

public void removeClsListener(Cls cls,
                              ClsListener listener)
Specified by:
removeClsListener in interface KnowledgeBase

removeDirectSuperclass

public void removeDirectSuperclass(Cls child,
                                   Cls parent)
Specified by:
removeDirectSuperclass in interface KnowledgeBase

removeDirectSuperslot

public void removeDirectSuperslot(Slot slot,
                                  Slot superSlot)
Specified by:
removeDirectSuperslot in interface KnowledgeBase

removeDirectTemplateSlot

public void removeDirectTemplateSlot(Cls cls,
                                     Slot slot)
Specified by:
removeDirectTemplateSlot in interface KnowledgeBase

removeFacetListener

public void removeFacetListener(Facet facet,
                                FacetListener listener)
Specified by:
removeFacetListener in interface KnowledgeBase

removeFrameListener

public void removeFrameListener(Frame frame,
                                FrameListener listener)
Specified by:
removeFrameListener in interface KnowledgeBase

removeInstanceListener

public void removeInstanceListener(Instance instance,
                                   InstanceListener listener)
Specified by:
removeInstanceListener in interface KnowledgeBase

removeJavaLoadPackage

public void removeJavaLoadPackage(String packageName)
Specified by:
removeJavaLoadPackage in interface KnowledgeBase

removeKnowledgeBaseListener

public void removeKnowledgeBaseListener(KnowledgeBaseListener listener)
Specified by:
removeKnowledgeBaseListener in interface KnowledgeBase

removeOwnSlotValue

public void removeOwnSlotValue(Frame frame,
                               Slot slot,
                               Object value)
remove all occurances of value

Specified by:
removeOwnSlotValue in interface KnowledgeBase

removeSlotListener

public void removeSlotListener(Slot slot,
                               SlotListener listener)
Specified by:
removeSlotListener in interface KnowledgeBase

removeTemplateFacetOverrides

public void removeTemplateFacetOverrides(Cls cls,
                                         Slot slot)
Specified by:
removeTemplateFacetOverrides in interface KnowledgeBase

setAbstract

public void setAbstract(Cls cls,
                        boolean isAbstract)
Specified by:
setAbstract in interface KnowledgeBase

setAllowedClses

public void setAllowedClses(Slot slot,
                            Collection clses)
Specified by:
setAllowedClses in interface KnowledgeBase

setAllowedParents

public void setAllowedParents(Slot slot,
                              Collection parents)
Specified by:
setAllowedParents in interface KnowledgeBase

setAllowedValues

public void setAllowedValues(Slot slot,
                             Collection values)
Specified by:
setAllowedValues in interface KnowledgeBase

setAllowsMultipleValues

public void setAllowsMultipleValues(Slot slot,
                                    boolean b)
Specified by:
setAllowsMultipleValues in interface KnowledgeBase

setAssociatedFacet

public void setAssociatedFacet(Slot slot,
                               Facet facet)
Specified by:
setAssociatedFacet in interface KnowledgeBase

setAssociatedSlot

public void setAssociatedSlot(Facet facet,
                              Slot slot)
Specified by:
setAssociatedSlot in interface KnowledgeBase

setAutoUpdateFacetValues

public void setAutoUpdateFacetValues(boolean b)
Specified by:
setAutoUpdateFacetValues in interface KnowledgeBase

setBuildString

public void setBuildString(String s)
Specified by:
setBuildString in interface KnowledgeBase

setChanged

public void setChanged(boolean b)
Specified by:
setChanged in interface KnowledgeBase

setClientInformation

public Object setClientInformation(Object key,
                                   Object value)
Specified by:
setClientInformation in interface KnowledgeBase

setDefaultClsMetaCls

public void setDefaultClsMetaCls(Cls cls)
Specified by:
setDefaultClsMetaCls in interface KnowledgeBase

setDefaultFacetMetaCls

public void setDefaultFacetMetaCls(Cls cls)
Specified by:
setDefaultFacetMetaCls in interface KnowledgeBase

setDefaultSlotMetaCls

public void setDefaultSlotMetaCls(Cls cls)
Specified by:
setDefaultSlotMetaCls in interface KnowledgeBase

setDefaultValues

public void setDefaultValues(Slot slot,
                             Collection values)
Specified by:
setDefaultValues in interface KnowledgeBase

setDirectType

public Instance setDirectType(Instance instance,
                              Cls type)
Specified by:
setDirectType in interface KnowledgeBase

setDirectTypeOfSubclasses

public void setDirectTypeOfSubclasses(Cls cls,
                                      Cls metaCls)
Specified by:
setDirectTypeOfSubclasses in interface KnowledgeBase

setDirectTypeOfSubslots

public void setDirectTypeOfSubslots(Slot slot,
                                    Cls cls)
Specified by:
setDirectTypeOfSubslots in interface KnowledgeBase

setDocumentation

public void setDocumentation(Frame frame,
                             String doc)
Specified by:
setDocumentation in interface KnowledgeBase

setDocumentation

public void setDocumentation(Frame frame,
                             Collection docs)
Specified by:
setDocumentation in interface KnowledgeBase

setEventsEnabled

public boolean setEventsEnabled(boolean enabled)
Deprecated.  

Specified by:
setEventsEnabled in interface KnowledgeBase

setFrameNamePrefix

public void setFrameNamePrefix(String prefix)
Specified by:
setFrameNamePrefix in interface KnowledgeBase

setInverseSlot

public void setInverseSlot(Slot slot,
                           Slot inverseSlot)
Specified by:
setInverseSlot in interface KnowledgeBase

setLoading

public void setLoading(boolean loading)

setMaximumCardinality

public void setMaximumCardinality(Slot slot,
                                  int max)
Specified by:
setMaximumCardinality in interface KnowledgeBase

setMaximumValue

public void setMaximumValue(Slot slot,
                            Number min)
Specified by:
setMaximumValue in interface KnowledgeBase

setMinimumCardinality

public void setMinimumCardinality(Slot slot,
                                  int min)
Specified by:
setMinimumCardinality in interface KnowledgeBase

setMinimumValue

public void setMinimumValue(Slot slot,
                            Number min)
Specified by:
setMinimumValue in interface KnowledgeBase

setName

public void setName(String name)
Specified by:
setName in interface KnowledgeBase

setNextFrameNumber

public void setNextFrameNumber(int i)
Specified by:
setNextFrameNumber in interface KnowledgeBase

setOwnSlotValue

public void setOwnSlotValue(Frame frame,
                            Slot slot,
                            Object value)

setDirectOwnSlotValues

public void setDirectOwnSlotValues(Frame frame,
                                   Slot slot,
                                   Collection values)
Specified by:
setDirectOwnSlotValues in interface KnowledgeBase

setOwnSlotValues

public void setOwnSlotValues(Frame frame,
                             Slot slot,
                             Collection values)
Description copied from interface: KnowledgeBase
same as #setDirectOwnSlotValues(Frame, Slot, Collection)

Specified by:
setOwnSlotValues in interface KnowledgeBase

setProject

public void setProject(Project project)
Specified by:
setProject in interface KnowledgeBase

setSlotValueFacetChecking

public void setSlotValueFacetChecking(boolean b)
Checks every call that changes an own slot value that the new value is consistent with all facets. This checking is disabled by default. It can significately slow down the system but is useful for tracking down bugs in code that calls the api (both system and user code).


getSlotValueFacetChecking

public boolean getSlotValueFacetChecking()

setStorage

public void setStorage(Storage storage)

setTemplateFacetValue

public void setTemplateFacetValue(Cls cls,
                                  Slot slot,
                                  Facet facet,
                                  Object value)
Specified by:
setTemplateFacetValue in interface KnowledgeBase

setTemplateFacetValues

public void setTemplateFacetValues(Cls cls,
                                   Slot slot,
                                   Facet facet,
                                   Collection values)
Specified by:
setTemplateFacetValues in interface KnowledgeBase

setTemplateSlotAllowedClses

public void setTemplateSlotAllowedClses(Cls cls,
                                        Slot slot,
                                        Collection clses)
Specified by:
setTemplateSlotAllowedClses in interface KnowledgeBase

setTemplateSlotAllowedParents

public void setTemplateSlotAllowedParents(Cls cls,
                                          Slot slot,
                                          Collection clses)
Specified by:
setTemplateSlotAllowedParents in interface KnowledgeBase

setTemplateSlotAllowedValues

public void setTemplateSlotAllowedValues(Cls cls,
                                         Slot slot,
                                         Collection values)
Specified by:
setTemplateSlotAllowedValues in interface KnowledgeBase

setTemplateSlotAllowsMultipleValues

public void setTemplateSlotAllowsMultipleValues(Cls cls,
                                                Slot slot,
                                                boolean allowed)
Specified by:
setTemplateSlotAllowsMultipleValues in interface KnowledgeBase

setTemplateSlotDefaultValues

public void setTemplateSlotDefaultValues(Cls cls,
                                         Slot slot,
                                         Collection values)
Specified by:
setTemplateSlotDefaultValues in interface KnowledgeBase

setTemplateSlotDocumentation

public void setTemplateSlotDocumentation(Cls cls,
                                         Slot slot,
                                         String doc)
Specified by:
setTemplateSlotDocumentation in interface KnowledgeBase

setTemplateSlotDocumentation

public void setTemplateSlotDocumentation(Cls cls,
                                         Slot slot,
                                         Collection doc)
Specified by:
setTemplateSlotDocumentation in interface KnowledgeBase

setTemplateSlotMaximumCardinality

public void setTemplateSlotMaximumCardinality(Cls cls,
                                              Slot slot,
                                              int max)
Specified by:
setTemplateSlotMaximumCardinality in interface KnowledgeBase

setTemplateSlotMaximumValue

public void setTemplateSlotMaximumValue(Cls cls,
                                        Slot slot,
                                        Number value)
Specified by:
setTemplateSlotMaximumValue in interface KnowledgeBase

setTemplateSlotMinimumCardinality

public void setTemplateSlotMinimumCardinality(Cls cls,
                                              Slot slot,
                                              int min)
Specified by:
setTemplateSlotMinimumCardinality in interface KnowledgeBase

setTemplateSlotMinimumValue

public void setTemplateSlotMinimumValue(Cls cls,
                                        Slot slot,
                                        Number value)
Specified by:
setTemplateSlotMinimumValue in interface KnowledgeBase

setTemplateSlotValue

public void setTemplateSlotValue(Cls cls,
                                 Slot slot,
                                 Object value)
Specified by:
setTemplateSlotValue in interface KnowledgeBase

setTemplateSlotValues

public void setTemplateSlotValues(Cls cls,
                                  Slot slot,
                                  Collection values)
Specified by:
setTemplateSlotValues in interface KnowledgeBase

setTemplateSlotValueType

public void setTemplateSlotValueType(Cls cls,
                                     Slot slot,
                                     ValueType type)
Specified by:
setTemplateSlotValueType in interface KnowledgeBase

setUserName

public void setUserName(String name)
Specified by:
setUserName in interface KnowledgeBase

setValueChecking

public void setValueChecking(boolean b)
Deprecated. Instead use either #setSlotValueFacetChecking

Description copied from interface: KnowledgeBase
Checks every call that changes an own slot value that the new value is consistent with all facets. This checking is disabled by default. It can significately slow down the system but is useful for tracking down bugs in code that calls the api (both system and user code).

Specified by:
setValueChecking in interface KnowledgeBase

getValueChecking

public boolean getValueChecking()
Specified by:
getValueChecking in interface KnowledgeBase

setValues

public void setValues(Slot slot,
                      Collection values)
Specified by:
setValues in interface KnowledgeBase

setValueType

public void setValueType(Slot slot,
                         ValueType valueType)
Specified by:
setValueType in interface KnowledgeBase

setValueTypeFacetValues

public void setValueTypeFacetValues(Cls cls,
                                    Slot slot,
                                    Collection values)

setValueTypeOwnSlotValues

public void setValueTypeOwnSlotValues(Slot slot,
                                      Collection values)

setVersionString

public void setVersionString(String s)
Specified by:
setVersionString in interface KnowledgeBase

toString

public String toString()

getFrameManager

protected FrameManager getFrameManager()

getCurrentUsers

public Collection getCurrentUsers()
Specified by:
getCurrentUsers in interface KnowledgeBase

getEventsEnabled

public boolean getEventsEnabled()
Deprecated.  

Specified by:
getEventsEnabled in interface KnowledgeBase

addDirectType

public void addDirectType(Instance instance,
                          Cls type)
Specified by:
addDirectType in interface KnowledgeBase

removeDirectType

public void removeDirectType(Instance instance,
                             Cls type)
Specified by:
removeDirectType in interface KnowledgeBase

getCommandManager

public CommandManager getCommandManager()
Specified by:
getCommandManager in interface KnowledgeBase

setUndoEnabled

public boolean setUndoEnabled(boolean b)
Specified by:
setUndoEnabled in interface KnowledgeBase

addClsListener

public void addClsListener(ClsListener listener)
Description copied from interface: KnowledgeBase
Add a listener for class events for all classes

Specified by:
addClsListener in interface KnowledgeBase

removeClsListener

public void removeClsListener(ClsListener listener)
Specified by:
removeClsListener in interface KnowledgeBase

addFacetListener

public void addFacetListener(FacetListener listener)
Description copied from interface: KnowledgeBase
Add a listener for facet events for all facets

Specified by:
addFacetListener in interface KnowledgeBase

removeFacetListener

public void removeFacetListener(FacetListener listener)
Specified by:
removeFacetListener in interface KnowledgeBase

addFrameListener

public void addFrameListener(FrameListener listener)
Description copied from interface: KnowledgeBase
add a listener for frame events for all frames

Specified by:
addFrameListener in interface KnowledgeBase

removeFrameListener

public void removeFrameListener(FrameListener listener)
Specified by:
removeFrameListener in interface KnowledgeBase

addInstanceListener

public void addInstanceListener(InstanceListener listener)
Specified by:
addInstanceListener in interface KnowledgeBase

removeInstanceListener

public void removeInstanceListener(InstanceListener listener)
Specified by:
removeInstanceListener in interface KnowledgeBase

addSlotListener

public void addSlotListener(SlotListener listener)
Specified by:
addSlotListener in interface KnowledgeBase

removeSlotListener

public void removeSlotListener(SlotListener listener)
Specified by:
removeSlotListener in interface KnowledgeBase

isValidFrameName

public boolean isValidFrameName(String s,
                                Frame frame)
Specified by:
isValidFrameName in interface KnowledgeBase

getInvalidFrameNameDescription

public String getInvalidFrameNameDescription(String s,
                                             Frame frame)
Specified by:
getInvalidFrameNameDescription in interface KnowledgeBase

setFrameNameValidator

public void setFrameNameValidator(FrameNameValidator validator)
Specified by:
setFrameNameValidator in interface KnowledgeBase

getGenerateEventsEnabled

public boolean getGenerateEventsEnabled()
Specified by:
getGenerateEventsEnabled in interface KnowledgeBase

setGenerateEventsEnabled

public boolean setGenerateEventsEnabled(boolean b)
Specified by:
setGenerateEventsEnabled in interface KnowledgeBase

getDispatchEventsEnabled

public boolean getDispatchEventsEnabled()
Specified by:
getDispatchEventsEnabled in interface KnowledgeBase

setDispatchEventsEnabled

public boolean setDispatchEventsEnabled(boolean b)
Specified by:
setDispatchEventsEnabled in interface KnowledgeBase

setPollForEvents

public void setPollForEvents(boolean b)
Specified by:
setPollForEvents in interface KnowledgeBase

setFrameFactory

public void setFrameFactory(FrameFactory f)
Specified by:
setFrameFactory in interface KnowledgeBase

getFrameStore

public FrameStore getFrameStore(Class c)

setDirectBrowserSlot

public void setDirectBrowserSlot(Cls cls,
                                 Slot slot)
Specified by:
setDirectBrowserSlot in interface KnowledgeBase

insertFrameStore

public void insertFrameStore(FrameStore newFrameStoreClass,
                             FrameStore afterFrameStoreClass)

insertFrameStore

public void insertFrameStore(FrameStore newFrameStoreClass)
Description copied from interface: KnowledgeBase
Inserts a new frame store into the front of the delegation chain.

Specified by:
insertFrameStore in interface KnowledgeBase
Parameters:
newFrameStoreClass -

setFrameStoreEnabled

public boolean setFrameStoreEnabled(Class frameStoreClass,
                                    boolean enable)

insertFrameStore

public void insertFrameStore(FrameStore newFrameStore,
                             int position)
Description copied from interface: KnowledgeBase
Inserts a new frame store into the delegation chain.

Specified by:
insertFrameStore in interface KnowledgeBase
Parameters:
newFrameStore -
position - Position in the frame store list to insert this frame store.

getFrameStores

public List getFrameStores()
Description copied from interface: KnowledgeBase
Returns a list of FrameStores available to the system. This includes both enabled and disabled frame stores.

Specified by:
getFrameStores in interface KnowledgeBase
Returns:
List of #FrameStore

getFrameFactory

public FrameFactory getFrameFactory()
Specified by:
getFrameFactory in interface KnowledgeBase

getSystemFrames

public SystemFrames getSystemFrames()
Specified by:
getSystemFrames in interface KnowledgeBase

clearAllListeners

public void clearAllListeners()
Specified by:
clearAllListeners in interface KnowledgeBase

getHeadFrameStore

public FrameStore getHeadFrameStore()

getFrameCounts

public FrameCounts getFrameCounts()
Specified by:
getFrameCounts in interface KnowledgeBase

getSimpleInstanceCount

public int getSimpleInstanceCount()
Specified by:
getSimpleInstanceCount in interface KnowledgeBase

hasSuperslot

public boolean hasSuperslot(Slot slot,
                            Slot superslot)
Specified by:
hasSuperslot in interface KnowledgeBase

moveDirectSubslot

public void moveDirectSubslot(Slot slot,
                              Slot subslot,
                              Slot afterSlot)
Specified by:
moveDirectSubslot in interface KnowledgeBase

createCls

public Cls createCls(FrameID id,
                     String name,
                     Collection parents,
                     Collection metaClses,
                     boolean isNew)
Specified by:
createCls in interface KnowledgeBase

createFacet

public Facet createFacet(FrameID id,
                         String name,
                         Collection metaClses,
                         boolean isNew)

createSlot

public Slot createSlot(FrameID id,
                       String name,
                       Collection metaClses,
                       Collection superslots,
                       boolean isNew)

createInstance

public Instance createInstance(FrameID id,
                               String name,
                               Cls directType,
                               boolean initializeDefaults)
Specified by:
createInstance in interface KnowledgeBase

setJournalingEnabled

public boolean setJournalingEnabled(boolean enabled)
Specified by:
setJournalingEnabled in interface KnowledgeBase

isJournalingEnabled

public boolean isJournalingEnabled()
Specified by:
isJournalingEnabled in interface KnowledgeBase

setDirectBrowserSlotPattern

public void setDirectBrowserSlotPattern(Cls cls,
                                        BrowserSlotPattern p)
Specified by:
setDirectBrowserSlotPattern in interface KnowledgeBase

getDirectBrowserSlotPattern

public BrowserSlotPattern getDirectBrowserSlotPattern(Cls cls)
Specified by:
getDirectBrowserSlotPattern in interface KnowledgeBase

getDirectOwnSlotValuesClosure

public Set getDirectOwnSlotValuesClosure(Frame frame,
                                         Slot slot)
Specified by:
getDirectOwnSlotValuesClosure in interface KnowledgeBase

isCallCachingEnabled

public boolean isCallCachingEnabled()
Specified by:
isCallCachingEnabled in interface KnowledgeBase

setCallCachingEnabled

public boolean setCallCachingEnabled(boolean enabled)
Specified by:
setCallCachingEnabled in interface KnowledgeBase

setArgumentCheckingEnabled

public boolean setArgumentCheckingEnabled(boolean enabled)
Specified by:
setArgumentCheckingEnabled in interface KnowledgeBase

setChangeMonitorEnabled

public boolean setChangeMonitorEnabled(boolean enabled)
Specified by:
setChangeMonitorEnabled in interface KnowledgeBase

setCleanDispatchEnabled

public boolean setCleanDispatchEnabled(boolean enabled)
Specified by:
setCleanDispatchEnabled in interface KnowledgeBase

setFacetCheckingEnabled

public boolean setFacetCheckingEnabled(boolean enabled)
Specified by:
setFacetCheckingEnabled in interface KnowledgeBase

getDirectOwnSlotValue

public Object getDirectOwnSlotValue(Frame frame,
                                    Slot slot)
Specified by:
getDirectOwnSlotValue in interface KnowledgeBase

removeFrameStore

public void removeFrameStore(FrameStore frameStore)
Specified by:
removeFrameStore in interface KnowledgeBase

startJournaling

public void startJournaling(String userName,
                            URI uri)
Specified by:
startJournaling in interface KnowledgeBase

stopJournaling

public void stopJournaling()
Specified by:
stopJournaling in interface KnowledgeBase

Protege 2.1.1

Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2004 Stanford University.