edu.stanford.smi.protege.model
Interface KnowledgeBase
- All Superinterfaces:
- Disposable
- All Known Implementing Classes:
- DefaultKnowledgeBase, OldJdbcDefaultKnowledgeBase
- public interface KnowledgeBase
- extends Disposable
A container for frames. Frame creation is funneled through here.
- Author:
- Ray Fergerson
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 cls,
Cls superclass)
|
void |
addDirectSuperslot(Slot slot,
Slot superslot)
|
void |
addDirectTemplateSlot(Cls cls,
Slot slot)
|
void |
addDirectType(Instance instance,
Cls directType)
|
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 path)
This method requires some background information. |
void |
addKnowledgeBaseListener(KnowledgeBaseListener listener)
|
void |
addOwnSlotValue(Frame frame,
Slot slot,
Object value)
|
void |
addSlotListener(SlotListener listener)
|
void |
addSlotListener(Slot slot,
SlotListener listener)
|
void |
addTemplateFacetValue(Cls cls,
Slot slot,
Facet facet,
Object value)
|
void |
addTemplateSlotValue(Cls cls,
Slot slot,
Object value)
|
boolean |
areValidOwnSlotValues(Frame frame,
Slot slot,
Collection values)
|
boolean |
beginTransaction(String name)
|
void |
changeFrameName(Frame oldFrame,
String newFrameName)
Deprecated. Renamed to #setFrameName(Frame, String) |
void |
clearAllListeners()
|
boolean |
containsFrame(String name)
|
Cls |
createCls(FrameID id,
String name,
Collection parents,
Collection metaClses,
boolean initializeDefaults)
|
Cls |
createCls(String name,
Collection parents)
|
Cls |
createCls(String name,
Collection parents,
Cls metaCls)
|
Cls |
createCls(String name,
Collection parents,
Cls metaCls,
boolean initializeDefaults)
|
Facet |
createFacet(String name)
|
Facet |
createFacet(String name,
Cls metaCls)
|
Facet |
createFacet(String name,
Cls metaCls,
boolean initializeDefaults)
|
Instance |
createInstance(FrameID id,
String name,
Cls directType,
boolean initializeDefaults)
|
Instance |
createInstance(String name,
Cls directType)
|
Instance |
createInstance(String name,
Cls directType,
boolean initializeDefaults)
|
Slot |
createSlot(String name)
|
Slot |
createSlot(String name,
Cls metaCls)
|
Slot |
createSlot(String name,
Cls metaCls,
boolean initializeDefaults)
|
Slot |
createSlot(String name,
Cls metaCls,
Collection superslots,
boolean initializeDefaults)
|
String |
createUniqueFrameName(String name)
Deprecated. pass "null" in as a frame name to a create method to get a
gensym name |
void |
deleteCls(Cls cls)
|
void |
deleteFacet(Facet facet)
|
void |
deleteFrame(Frame frame)
|
void |
deleteInstance(Instance instance)
|
void |
deleteSlot(Slot slot)
|
boolean |
endTransaction(boolean doCommit)
|
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)
|
BrowserSlotPattern |
getDirectBrowserSlotPattern(Cls cls)
|
Collection |
getDirectDomain(Slot slot)
|
int |
getDirectInstanceCount(Cls cls)
|
Collection |
getDirectInstances(Cls cls)
|
Object |
getDirectOwnSlotValue(Frame frame,
Slot slot)
|
List |
getDirectOwnSlotValues(Frame frame,
Slot slot)
|
Set |
getDirectOwnSlotValuesClosure(Frame frame,
Slot slot)
|
int |
getDirectSubclassCount(Cls cls)
|
Collection |
getDirectSubclasses(Cls cls)
|
int |
getDirectSubslotCount(Slot slot)
|
Collection |
getDirectSubslots(Slot slot)
|
int |
getDirectSuperclassCount(Cls cls)
|
Collection |
getDirectSuperclasses(Cls cls)
|
int |
getDirectSuperslotCount(Slot slot)
|
Collection |
getDirectSuperslots(Slot slot)
|
List |
getDirectTemplateFacetValues(Cls cls,
Slot slot,
Facet facet)
|
Collection |
getDirectTemplateSlots(Cls cls)
|
List |
getDirectTemplateSlotValues(Cls cls,
Slot slot)
|
Cls |
getDirectType(Instance instance)
|
Collection |
getDirectTypes(Instance instance)
|
boolean |
getDispatchEventsEnabled()
|
Collection |
getDocumentation(Frame frame)
|
Collection |
getDomain(Slot slot)
|
boolean |
getEventsEnabled()
Deprecated. Use #getGenerateEventsEnabled(boolean) |
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)
|
Collection |
getFrameNameMatches(String s,
int maxMatches)
|
String |
getFrameNamePrefix()
|
Collection |
getFrames()
|
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()
|
Instance |
getInstance(String fullname)
|
int |
getInstanceCount(Cls cls)
|
Collection |
getInstances()
|
Collection |
getInstances(Cls cls)
|
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 matchString,
int maxMatches)
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()
|
String |
getSlotValueLastModificationTimestamp(Frame frame,
Slot slot,
boolean isTemplate)
|
String |
getSlotValueLastModifier(Frame frame,
Slot slot,
boolean isTemplate)
|
Collection |
getSubclasses(Cls cls)
|
Collection |
getSubslots(Slot slot)
|
Collection |
getSuperclasses(Cls cls)
|
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)
|
ValueType |
getValueType(Slot slot)
|
String |
getVersionString()
|
boolean |
hasChanged()
|
boolean |
hasDirectlyOverriddenTemplateFacet(Cls cls,
Slot slot,
Facet facet)
|
boolean |
hasDirectlyOverriddenTemplateSlot(Cls cls,
Slot slot)
|
boolean |
hasDirectSuperclass(Cls cls,
Cls superclass)
|
boolean |
hasDirectSuperslot(Slot slot,
Slot superslot)
|
boolean |
hasDirectTemplateSlot(Cls cls,
Slot slot)
|
boolean |
hasDirectType(Instance instance,
Cls cls)
|
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 |
hasSuperclass(Cls cls,
Cls superclass)
|
boolean |
hasSuperslot(Slot slot,
Slot superslot)
|
boolean |
hasTemplateSlot(Cls cls,
Slot slot)
|
boolean |
hasType(Instance instance,
Cls cls)
|
void |
insertFrameStore(FrameStore newFrameStore)
Inserts a new frame store into the front of the delegation chain. |
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)
|
void |
moveDirectSubclass(Cls cls,
Cls subclass,
Cls afterclass)
|
void |
moveDirectSubslot(Slot slot,
Slot subslot,
Slot afterSlot)
|
void |
moveDirectTemplateSlot(Cls cls,
Slot slot,
int toIndex)
|
void |
moveOwnSlotValue(Frame frame,
Slot slot,
int from,
int to)
|
void |
notifyVisibilityChanged(Frame frame)
|
void |
removeClsListener(Cls cls,
ClsListener listener)
|
void |
removeClsListener(ClsListener listener)
|
void |
removeDirectSuperclass(Cls cls,
Cls superclass)
|
void |
removeDirectSuperslot(Slot slot,
Slot superslot)
|
void |
removeDirectTemplateSlot(Cls cls,
Slot slot)
|
void |
removeDirectType(Instance instance,
Cls directType)
|
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 path)
|
void |
removeKnowledgeBaseListener(KnowledgeBaseListener listener)
|
void |
removeOwnSlotValue(Frame frame,
Slot slot,
Object 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 allowsMultiple)
|
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 pattern)
|
void |
setDirectOwnSlotValues(Frame frame,
Slot slot,
Collection values)
|
Instance |
setDirectType(Instance instance,
Cls cls)
|
void |
setDirectTypeOfSubclasses(Cls cls,
Cls type)
|
void |
setDirectTypeOfSubslots(Slot slot,
Cls type)
|
boolean |
setDispatchEventsEnabled(boolean enabled)
|
void |
setDocumentation(Frame frame,
Collection text)
|
void |
setDocumentation(Frame frame,
String text)
|
boolean |
setEventsEnabled(boolean enabled)
Deprecated. Use #setGenerateEventsEnabled(boolean) |
boolean |
setFacetCheckingEnabled(boolean enabled)
|
void |
setFrameFactory(FrameFactory factory)
|
void |
setFrameName(Frame oldFrame,
String newFrameName)
|
void |
setFrameNamePrefix(String name)
|
void |
setFrameNameValidator(FrameNameValidator validator)
|
boolean |
setGenerateEventsEnabled(boolean enabled)
|
void |
setInverseSlot(Slot slot,
Slot inverseSlot)
|
boolean |
setJournalingEnabled(boolean enabled)
|
void |
setMaximumCardinality(Slot slot,
int max)
|
void |
setMaximumValue(Slot slot,
Number max)
|
void |
setMinimumCardinality(Slot slot,
int max)
|
void |
setMinimumValue(Slot slot,
Number min)
|
void |
setName(String name)
|
void |
setNextFrameNumber(int i)
|
void |
setOwnSlotValues(Frame frame,
Slot slot,
Collection values)
same as #setDirectOwnSlotValues(Frame, Slot, Collection) |
void |
setPollForEvents(boolean enabled)
|
void |
setProject(Project project)
|
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 values)
|
void |
setTemplateSlotAllowedParents(Cls cls,
Slot slot,
Collection values)
|
void |
setTemplateSlotAllowedValues(Cls cls,
Slot slot,
Collection values)
|
void |
setTemplateSlotAllowsMultipleValues(Cls cls,
Slot slot,
boolean allowsMultiple)
|
void |
setTemplateSlotDefaultValues(Cls cls,
Slot slot,
Collection values)
|
void |
setTemplateSlotDocumentation(Cls cls,
Slot slot,
Collection docs)
|
void |
setTemplateSlotDocumentation(Cls cls,
Slot slot,
String doc)
|
void |
setTemplateSlotMaximumCardinality(Cls cls,
Slot slot,
int value)
|
void |
setTemplateSlotMaximumValue(Cls cls,
Slot slot,
Number value)
|
void |
setTemplateSlotMinimumCardinality(Cls cls,
Slot slot,
int value)
|
void |
setTemplateSlotMinimumValue(Cls cls,
Slot slot,
Number value)
|
void |
setTemplateSlotValue(Cls cls,
Slot slot,
Object value)
|
void |
setTemplateSlotValues(Cls cls,
Slot slot,
Collection value)
|
void |
setTemplateSlotValueType(Cls cls,
Slot slot,
ValueType type)
|
boolean |
setUndoEnabled(boolean enabled)
|
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 type)
|
void |
setVersionString(String s)
|
void |
startJournaling(String userName,
URI uri)
|
void |
stopJournaling()
|
MAXIMUM_CARDINALITY_UNBOUNDED
public static final int MAXIMUM_CARDINALITY_UNBOUNDED
- See Also:
- Constant Field Values
UNLIMITED_MATCHES
public static final int UNLIMITED_MATCHES
- See Also:
- Constant Field Values
addJavaLoadPackage
public void addJavaLoadPackage(String path)
- 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.
addKnowledgeBaseListener
public void addKnowledgeBaseListener(KnowledgeBaseListener listener)
areValidOwnSlotValues
public boolean areValidOwnSlotValues(Frame frame,
Slot slot,
Collection values)
changeFrameName
public void changeFrameName(Frame oldFrame,
String newFrameName)
- Deprecated. Renamed to #setFrameName(Frame, String)
setFrameName
public void setFrameName(Frame oldFrame,
String newFrameName)
containsFrame
public boolean containsFrame(String name)
createCls
public Cls createCls(String name,
Collection parents)
createCls
public Cls createCls(String name,
Collection parents,
Cls metaCls)
createCls
public Cls createCls(String name,
Collection parents,
Cls metaCls,
boolean initializeDefaults)
createCls
public Cls createCls(FrameID id,
String name,
Collection parents,
Collection metaClses,
boolean initializeDefaults)
createFacet
public Facet createFacet(String name)
createFacet
public Facet createFacet(String name,
Cls metaCls)
createFacet
public Facet createFacet(String name,
Cls metaCls,
boolean initializeDefaults)
createInstance
public Instance createInstance(String name,
Cls directType)
createInstance
public Instance createInstance(String name,
Cls directType,
boolean initializeDefaults)
createInstance
public Instance createInstance(FrameID id,
String name,
Cls directType,
boolean initializeDefaults)
createSlot
public Slot createSlot(String name)
createSlot
public Slot createSlot(String name,
Cls metaCls)
createSlot
public Slot createSlot(String name,
Cls metaCls,
boolean initializeDefaults)
createSlot
public Slot createSlot(String name,
Cls metaCls,
Collection superslots,
boolean initializeDefaults)
createUniqueFrameName
public String createUniqueFrameName(String name)
- Deprecated. pass "null" in as a frame name to a create method to get a
gensym name
deleteCls
public void deleteCls(Cls cls)
deleteFacet
public void deleteFacet(Facet facet)
deleteFrame
public void deleteFrame(Frame frame)
deleteInstance
public void deleteInstance(Instance instance)
deleteSlot
public void deleteSlot(Slot slot)
getBuildString
public 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.
This string format is not reliable and may change.
getClientInformation
public Object getClientInformation(Object key)
- 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.
getCls
public Cls getCls(String name)
getClsCount
public int getClsCount()
getClses
public Collection getClses()
getClsNameMatches
public Collection getClsNameMatches(String s,
int maxMatches)
- 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.
getDefaultClsMetaCls
public Cls getDefaultClsMetaCls()
- 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.
getDefaultFacetMetaCls
public Cls getDefaultFacetMetaCls()
getDefaultSlotMetaCls
public Cls getDefaultSlotMetaCls()
getFacet
public Facet getFacet(String name)
getFacetCount
public int getFacetCount()
getFacets
public Collection getFacets()
getFrame
public Frame getFrame(String name)
getFrame
public Frame getFrame(FrameID id)
getFrameCount
public int getFrameCount()
getFrameCreationTimestamp
public String getFrameCreationTimestamp(Frame frame)
getFrameCreator
public String getFrameCreator(Frame frame)
getFrameLastModificationTimestamp
public String getFrameLastModificationTimestamp(Frame frame)
getFrameLastModifier
public String getFrameLastModifier(Frame frame)
getFrameNameMatches
public Collection getFrameNameMatches(String s,
int maxMatches)
getFrameNamePrefix
public String getFrameNamePrefix()
getFrames
public Collection getFrames()
getFramesWithValue
public Collection getFramesWithValue(Slot slot,
Facet facet,
boolean isTemplate,
Object value)
- Gets frames with a particular own/template slot/facet value.
- 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.
getInstance
public Instance getInstance(String fullname)
getInstances
public Collection getInstances()
getInstances
public Collection getInstances(Cls cls)
getInvalidOwnSlotValuesText
public String getInvalidOwnSlotValuesText(Frame frame,
Slot slot,
Collection values)
getInvalidOwnSlotValueText
public String getInvalidOwnSlotValueText(Frame frame,
Slot slot,
Object value)
getKnowledgeBaseFactory
public KnowledgeBaseFactory getKnowledgeBaseFactory()
getMatchingFrames
public Collection getMatchingFrames(Slot slot,
Facet facet,
boolean isTemplate,
String matchString,
int maxMatches)
- Finds all occurances of a string in the knowledge base.
- 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.matchString
- The string to match on. The string can include wild cards. The matching is case insensitive.maxMatches
- 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.
getName
public String getName()
getNextFrameNumber
public int getNextFrameNumber()
getProject
public Project getProject()
getReachableSimpleInstances
public Collection getReachableSimpleInstances(Collection roots)
getReferences
public Collection getReferences(Object o,
int maxReferences)
- Returns:
- A collection of #Reference instances.
getMatchingReferences
public Collection getMatchingReferences(String s,
int maxReferences)
getRootCls
public Cls getRootCls()
getRootClses
public Collection getRootClses()
- Returns:
- ":THING" wrapped in a collection. A convenience method.
getRootClsMetaCls
public Cls getRootClsMetaCls()
getRootFacetMetaCls
public Cls getRootFacetMetaCls()
getRootSlotMetaCls
public Cls getRootSlotMetaCls()
getRootSlots
public Collection getRootSlots()
getSlot
public Slot getSlot(String name)
getSlotCount
public int getSlotCount()
getSlots
public Collection getSlots()
getSlotValueLastModificationTimestamp
public String getSlotValueLastModificationTimestamp(Frame frame,
Slot slot,
boolean isTemplate)
getSlotValueLastModifier
public String getSlotValueLastModifier(Frame frame,
Slot slot,
boolean isTemplate)
getSubclasses
public Collection getSubclasses(Cls cls)
getUnreachableSimpleInstances
public Collection getUnreachableSimpleInstances(Collection roots)
getUserName
public String getUserName()
getVersionString
public String getVersionString()
- 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.
hasChanged
public boolean hasChanged()
isAutoUpdatingFacetValues
public boolean isAutoUpdatingFacetValues()
isClsMetaCls
public boolean isClsMetaCls(Cls cls)
isDefaultClsMetaCls
public boolean isDefaultClsMetaCls(Cls cls)
isDefaultFacetMetaCls
public boolean isDefaultFacetMetaCls(Cls cls)
isDefaultSlotMetaCls
public boolean isDefaultSlotMetaCls(Cls cls)
isFacetMetaCls
public boolean isFacetMetaCls(Cls cls)
isLoading
public boolean isLoading()
isSlotMetaCls
public boolean isSlotMetaCls(Cls cls)
isValidOwnSlotValue
public boolean isValidOwnSlotValue(Frame frame,
Slot slot,
Object value)
removeJavaLoadPackage
public void removeJavaLoadPackage(String path)
removeKnowledgeBaseListener
public void removeKnowledgeBaseListener(KnowledgeBaseListener listener)
setAutoUpdateFacetValues
public void setAutoUpdateFacetValues(boolean b)
setBuildString
public void setBuildString(String s)
setChanged
public void setChanged(boolean b)
setClientInformation
public Object setClientInformation(Object key,
Object value)
setDefaultClsMetaCls
public void setDefaultClsMetaCls(Cls cls)
setDefaultFacetMetaCls
public void setDefaultFacetMetaCls(Cls cls)
setDefaultSlotMetaCls
public void setDefaultSlotMetaCls(Cls cls)
getEventsEnabled
public boolean getEventsEnabled()
- Deprecated. Use #getGenerateEventsEnabled(boolean)
setEventsEnabled
public boolean setEventsEnabled(boolean enabled)
- Deprecated. Use #setGenerateEventsEnabled(boolean)
setUndoEnabled
public boolean setUndoEnabled(boolean enabled)
getDispatchEventsEnabled
public boolean getDispatchEventsEnabled()
setDispatchEventsEnabled
public boolean setDispatchEventsEnabled(boolean enabled)
getGenerateEventsEnabled
public boolean getGenerateEventsEnabled()
setGenerateEventsEnabled
public boolean setGenerateEventsEnabled(boolean enabled)
setPollForEvents
public void setPollForEvents(boolean enabled)
setJournalingEnabled
public boolean setJournalingEnabled(boolean enabled)
isJournalingEnabled
public boolean isJournalingEnabled()
setArgumentCheckingEnabled
public boolean setArgumentCheckingEnabled(boolean enabled)
setChangeMonitorEnabled
public boolean setChangeMonitorEnabled(boolean enabled)
setCleanDispatchEnabled
public boolean setCleanDispatchEnabled(boolean enabled)
setFacetCheckingEnabled
public boolean setFacetCheckingEnabled(boolean enabled)
setFrameNamePrefix
public void setFrameNamePrefix(String name)
setName
public void setName(String name)
setNextFrameNumber
public void setNextFrameNumber(int i)
setProject
public void setProject(Project project)
setUserName
public void setUserName(String name)
setValueChecking
public void setValueChecking(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).
setVersionString
public void setVersionString(String s)
setFrameFactory
public void setFrameFactory(FrameFactory factory)
addFrameListener
public void addFrameListener(Frame frame,
FrameListener listener)
- add a listener fro frame evnets for a particular frame
addFrameListener
public void addFrameListener(FrameListener listener)
- add a listener for frame events for all frames
removeFrameListener
public void removeFrameListener(Frame frame,
FrameListener listener)
removeFrameListener
public void removeFrameListener(FrameListener listener)
addOwnSlotValue
public void addOwnSlotValue(Frame frame,
Slot slot,
Object value)
getDocumentation
public Collection getDocumentation(Frame frame)
getName
public String getName(Frame frame)
getOwnSlotAllowsMultipleValues
public boolean getOwnSlotAllowsMultipleValues(Frame frame,
Slot slot)
getOwnSlotAndSubslotValues
public Collection getOwnSlotAndSubslotValues(Frame frame,
Slot slot)
getOwnSlotDefaultValues
public Collection getOwnSlotDefaultValues(Frame frame,
Slot slot)
getOwnSlotFacets
public Collection getOwnSlotFacets(Frame frame,
Slot slot)
getOwnSlotFacetValues
public Collection getOwnSlotFacetValues(Frame frame,
Slot slot,
Facet facet)
getOwnSlots
public Collection getOwnSlots(Frame frame)
getOwnSlotValues
public Collection getOwnSlotValues(Frame frame,
Slot slot)
getDirectOwnSlotValue
public Object getDirectOwnSlotValue(Frame frame,
Slot slot)
getDirectOwnSlotValues
public List getDirectOwnSlotValues(Frame frame,
Slot slot)
getOwnSlotValue
public Object getOwnSlotValue(Frame frame,
Slot slot)
getOwnSlotValueCount
public int getOwnSlotValueCount(Frame frame,
Slot slot)
getOwnSlotValueType
public ValueType getOwnSlotValueType(Frame frame,
Slot slot)
hasOwnSlot
public boolean hasOwnSlot(Frame frame,
Slot slot)
moveOwnSlotValue
public void moveOwnSlotValue(Frame frame,
Slot slot,
int from,
int to)
removeOwnSlotValue
public void removeOwnSlotValue(Frame frame,
Slot slot,
Object value)
setDocumentation
public void setDocumentation(Frame frame,
String text)
setDocumentation
public void setDocumentation(Frame frame,
Collection text)
setDirectOwnSlotValues
public void setDirectOwnSlotValues(Frame frame,
Slot slot,
Collection values)
setOwnSlotValues
public void setOwnSlotValues(Frame frame,
Slot slot,
Collection values)
- same as #setDirectOwnSlotValues(Frame, Slot, Collection)
notifyVisibilityChanged
public void notifyVisibilityChanged(Frame frame)
addFacetListener
public void addFacetListener(FacetListener listener)
- Add a listener for facet events for all facets
removeFacetListener
public void removeFacetListener(FacetListener listener)
addFacetListener
public void addFacetListener(Facet facet,
FacetListener listener)
- Add a listener for facet events for a particular facet
removeFacetListener
public void removeFacetListener(Facet facet,
FacetListener listener)
getAssociatedSlot
public Slot getAssociatedSlot(Facet facet)
setAssociatedSlot
public void setAssociatedSlot(Facet facet,
Slot slot)
addClsListener
public void addClsListener(ClsListener listener)
- Add a listener for class events for all classes
addClsListener
public void addClsListener(Cls cls,
ClsListener listener)
- Add a listener for class events for a particular class
removeClsListener
public void removeClsListener(Cls cls,
ClsListener listener)
removeClsListener
public void removeClsListener(ClsListener listener)
addDirectSuperclass
public void addDirectSuperclass(Cls cls,
Cls superclass)
removeDirectSuperclass
public void removeDirectSuperclass(Cls cls,
Cls superclass)
addDirectTemplateSlot
public void addDirectTemplateSlot(Cls cls,
Slot slot)
removeDirectTemplateSlot
public void removeDirectTemplateSlot(Cls cls,
Slot slot)
addTemplateFacetValue
public void addTemplateFacetValue(Cls cls,
Slot slot,
Facet facet,
Object value)
addTemplateSlotValue
public void addTemplateSlotValue(Cls cls,
Slot slot,
Object value)
getNameSlot
public Slot getNameSlot()
getDirectInstanceCount
public int getDirectInstanceCount(Cls cls)
getDirectInstances
public Collection getDirectInstances(Cls cls)
getDirectSubclassCount
public int getDirectSubclassCount(Cls cls)
getDirectSubclasses
public Collection getDirectSubclasses(Cls cls)
getDirectSuperclassCount
public int getDirectSuperclassCount(Cls cls)
getDirectSuperclasses
public Collection getDirectSuperclasses(Cls cls)
getDirectTemplateFacetValues
public List getDirectTemplateFacetValues(Cls cls,
Slot slot,
Facet facet)
getDirectTemplateSlots
public Collection getDirectTemplateSlots(Cls cls)
getDirectTemplateSlotValues
public List getDirectTemplateSlotValues(Cls cls,
Slot slot)
getInstanceCount
public int getInstanceCount(Cls cls)
getSimpleInstanceCount
public int getSimpleInstanceCount()
getSuperclasses
public Collection getSuperclasses(Cls cls)
getTemplateFacets
public Collection getTemplateFacets(Cls cls,
Slot slot)
getTemplateFacetValue
public Object getTemplateFacetValue(Cls cls,
Slot slot,
Facet facet)
getTemplateFacetValues
public Collection getTemplateFacetValues(Cls cls,
Slot slot,
Facet facet)
getTemplateSlotAllowedClses
public Collection getTemplateSlotAllowedClses(Cls cls,
Slot slot)
getTemplateSlotAllowedParents
public Collection getTemplateSlotAllowedParents(Cls cls,
Slot slot)
getTemplateSlotAllowedValues
public Collection getTemplateSlotAllowedValues(Cls cls,
Slot slot)
getTemplateSlotAllowsMultipleValues
public boolean getTemplateSlotAllowsMultipleValues(Cls cls,
Slot slot)
getTemplateSlotDefaultValues
public Collection getTemplateSlotDefaultValues(Cls cls,
Slot slot)
getTemplateSlotDocumentation
public Collection getTemplateSlotDocumentation(Cls cls,
Slot slot)
getTemplateSlotMaximumCardinality
public int getTemplateSlotMaximumCardinality(Cls cls,
Slot slot)
getTemplateSlotMaximumValue
public Number getTemplateSlotMaximumValue(Cls cls,
Slot slot)
getTemplateSlotMinimumCardinality
public int getTemplateSlotMinimumCardinality(Cls cls,
Slot slot)
getTemplateSlotMinimumValue
public Number getTemplateSlotMinimumValue(Cls cls,
Slot slot)
getTemplateSlots
public Collection getTemplateSlots(Cls cls)
getTemplateSlotValue
public Object getTemplateSlotValue(Cls cls,
Slot slot)
getTemplateSlotValues
public Collection getTemplateSlotValues(Cls cls,
Slot slot)
getTemplateSlotValueType
public ValueType getTemplateSlotValueType(Cls cls,
Slot slot)
hasDirectlyOverriddenTemplateFacet
public boolean hasDirectlyOverriddenTemplateFacet(Cls cls,
Slot slot,
Facet facet)
hasDirectlyOverriddenTemplateSlot
public boolean hasDirectlyOverriddenTemplateSlot(Cls cls,
Slot slot)
hasDirectSuperclass
public boolean hasDirectSuperclass(Cls cls,
Cls superclass)
hasDirectSuperslot
public boolean hasDirectSuperslot(Slot slot,
Slot superslot)
hasSuperslot
public boolean hasSuperslot(Slot slot,
Slot superslot)
moveDirectSubslot
public void moveDirectSubslot(Slot slot,
Slot subslot,
Slot afterSlot)
moveDirectTemplateSlot
public void moveDirectTemplateSlot(Cls cls,
Slot slot,
int toIndex)
hasDirectTemplateSlot
public boolean hasDirectTemplateSlot(Cls cls,
Slot slot)
hasInheritedTemplateSlot
public boolean hasInheritedTemplateSlot(Cls cls,
Slot slot)
hasOverriddenTemplateSlot
public boolean hasOverriddenTemplateSlot(Cls cls,
Slot slot)
hasOverriddenTemplateFacet
public boolean hasOverriddenTemplateFacet(Cls cls,
Slot slot,
Facet facet)
hasSuperclass
public boolean hasSuperclass(Cls cls,
Cls superclass)
hasTemplateSlot
public boolean hasTemplateSlot(Cls cls,
Slot slot)
isAbstract
public boolean isAbstract(Cls cls)
isMetaCls
public boolean isMetaCls(Cls cls)
moveDirectSubclass
public void moveDirectSubclass(Cls cls,
Cls subclass,
Cls afterclass)
removeTemplateFacetOverrides
public void removeTemplateFacetOverrides(Cls cls,
Slot slot)
setAbstract
public void setAbstract(Cls cls,
boolean isAbstract)
setDirectTypeOfSubclasses
public void setDirectTypeOfSubclasses(Cls cls,
Cls type)
setTemplateFacetValue
public void setTemplateFacetValue(Cls cls,
Slot slot,
Facet facet,
Object value)
setTemplateFacetValues
public void setTemplateFacetValues(Cls cls,
Slot slot,
Facet facet,
Collection values)
setTemplateSlotAllowedClses
public void setTemplateSlotAllowedClses(Cls cls,
Slot slot,
Collection values)
setTemplateSlotAllowedParents
public void setTemplateSlotAllowedParents(Cls cls,
Slot slot,
Collection values)
setTemplateSlotAllowedValues
public void setTemplateSlotAllowedValues(Cls cls,
Slot slot,
Collection values)
setTemplateSlotAllowsMultipleValues
public void setTemplateSlotAllowsMultipleValues(Cls cls,
Slot slot,
boolean allowsMultiple)
setTemplateSlotDefaultValues
public void setTemplateSlotDefaultValues(Cls cls,
Slot slot,
Collection values)
setTemplateSlotDocumentation
public void setTemplateSlotDocumentation(Cls cls,
Slot slot,
String doc)
setTemplateSlotDocumentation
public void setTemplateSlotDocumentation(Cls cls,
Slot slot,
Collection docs)
setTemplateSlotMaximumCardinality
public void setTemplateSlotMaximumCardinality(Cls cls,
Slot slot,
int value)
setTemplateSlotMaximumValue
public void setTemplateSlotMaximumValue(Cls cls,
Slot slot,
Number value)
setTemplateSlotMinimumCardinality
public void setTemplateSlotMinimumCardinality(Cls cls,
Slot slot,
int value)
setTemplateSlotMinimumValue
public void setTemplateSlotMinimumValue(Cls cls,
Slot slot,
Number value)
setTemplateSlotValue
public void setTemplateSlotValue(Cls cls,
Slot slot,
Object value)
setTemplateSlotValues
public void setTemplateSlotValues(Cls cls,
Slot slot,
Collection value)
setTemplateSlotValueType
public void setTemplateSlotValueType(Cls cls,
Slot slot,
ValueType type)
addInstance
public void addInstance(Instance instance,
String name,
Cls type,
boolean isNew)
addInstanceListener
public void addInstanceListener(Instance instance,
InstanceListener listener)
addInstanceListener
public void addInstanceListener(InstanceListener listener)
removeInstanceListener
public void removeInstanceListener(Instance instance,
InstanceListener listener)
removeInstanceListener
public void removeInstanceListener(InstanceListener listener)
getBrowserText
public String getBrowserText(Instance instance)
getDirectType
public Cls getDirectType(Instance instance)
getDirectTypes
public Collection getDirectTypes(Instance instance)
hasDirectType
public boolean hasDirectType(Instance instance,
Cls cls)
hasType
public boolean hasType(Instance instance,
Cls cls)
setDirectType
public Instance setDirectType(Instance instance,
Cls cls)
addDirectSuperslot
public void addDirectSuperslot(Slot slot,
Slot superslot)
addSlotListener
public void addSlotListener(Slot slot,
SlotListener listener)
addSlotListener
public void addSlotListener(SlotListener listener)
removeSlotListener
public void removeSlotListener(Slot slot,
SlotListener listener)
removeSlotListener
public void removeSlotListener(SlotListener listener)
getAllowedClses
public Collection getAllowedClses(Slot slot)
getAllowedParents
public Collection getAllowedParents(Slot slot)
getAllowedValues
public Collection getAllowedValues(Slot slot)
getAllowsMultipleValues
public boolean getAllowsMultipleValues(Slot slot)
getAssociatedFacet
public Facet getAssociatedFacet(Slot slot)
getDefaultValues
public Collection getDefaultValues(Slot slot)
getDirectSubslotCount
public int getDirectSubslotCount(Slot slot)
getDirectSubslots
public Collection getDirectSubslots(Slot slot)
getDirectSuperslots
public Collection getDirectSuperslots(Slot slot)
getDirectSuperslotCount
public int getDirectSuperslotCount(Slot slot)
getInverseSlot
public Slot getInverseSlot(Slot slot)
getMaximumCardinality
public int getMaximumCardinality(Slot slot)
getMaximumValue
public Number getMaximumValue(Slot slot)
getMinimumCardinality
public int getMinimumCardinality(Slot slot)
getMinimumValue
public Number getMinimumValue(Slot slot)
getSubslots
public Collection getSubslots(Slot slot)
getSuperslots
public Collection getSuperslots(Slot slot)
getDirectDomain
public Collection getDirectDomain(Slot slot)
getDomain
public Collection getDomain(Slot slot)
getValues
public Collection getValues(Slot slot)
getValueType
public ValueType getValueType(Slot slot)
hasSlotValueAtSomeFrame
public boolean hasSlotValueAtSomeFrame(Slot slot)
removeDirectSuperslot
public void removeDirectSuperslot(Slot slot,
Slot superslot)
setAllowedClses
public void setAllowedClses(Slot slot,
Collection clses)
setAllowedParents
public void setAllowedParents(Slot slot,
Collection parents)
setAllowedValues
public void setAllowedValues(Slot slot,
Collection values)
setAllowsMultipleValues
public void setAllowsMultipleValues(Slot slot,
boolean allowsMultiple)
setAssociatedFacet
public void setAssociatedFacet(Slot slot,
Facet facet)
setDefaultValues
public void setDefaultValues(Slot slot,
Collection values)
setDirectTypeOfSubslots
public void setDirectTypeOfSubslots(Slot slot,
Cls type)
setInverseSlot
public void setInverseSlot(Slot slot,
Slot inverseSlot)
setMaximumCardinality
public void setMaximumCardinality(Slot slot,
int max)
setMaximumValue
public void setMaximumValue(Slot slot,
Number max)
setMinimumCardinality
public void setMinimumCardinality(Slot slot,
int max)
setMinimumValue
public void setMinimumValue(Slot slot,
Number min)
setValues
public void setValues(Slot slot,
Collection values)
setValueType
public void setValueType(Slot slot,
ValueType type)
getCurrentUsers
public Collection getCurrentUsers()
beginTransaction
public boolean beginTransaction(String name)
endTransaction
public boolean endTransaction(boolean doCommit)
addDirectType
public void addDirectType(Instance instance,
Cls directType)
removeDirectType
public void removeDirectType(Instance instance,
Cls directType)
getCommandManager
public CommandManager getCommandManager()
setFrameNameValidator
public void setFrameNameValidator(FrameNameValidator validator)
isValidFrameName
public boolean isValidFrameName(String s,
Frame frame)
getInvalidFrameNameDescription
public String getInvalidFrameNameDescription(String s,
Frame frame)
setDirectBrowserSlot
public void setDirectBrowserSlot(Cls cls,
Slot slot)
insertFrameStore
public void insertFrameStore(FrameStore newFrameStore,
int position)
- Inserts a new frame store into the delegation chain.
- Parameters:
newFrameStore
- position
- Position in the frame store list to insert this frame store.
insertFrameStore
public void insertFrameStore(FrameStore newFrameStore)
- Inserts a new frame store into the front of the delegation chain.
- Parameters:
newFrameStore
-
removeFrameStore
public void removeFrameStore(FrameStore frameStore)
getFrameStores
public List getFrameStores()
- Returns a list of FrameStores available to the system. This includes both enabled and disabled frame stores.
- Returns:
- List of #FrameStore
getFrameFactory
public FrameFactory getFrameFactory()
getSystemFrames
public SystemFrames getSystemFrames()
clearAllListeners
public void clearAllListeners()
getFrameCounts
public FrameCounts getFrameCounts()
setDirectBrowserSlotPattern
public void setDirectBrowserSlotPattern(Cls cls,
BrowserSlotPattern pattern)
getDirectBrowserSlotPattern
public BrowserSlotPattern getDirectBrowserSlotPattern(Cls cls)
getDirectOwnSlotValuesClosure
public Set getDirectOwnSlotValuesClosure(Frame frame,
Slot slot)
setCallCachingEnabled
public boolean setCallCachingEnabled(boolean enabled)
isCallCachingEnabled
public boolean isCallCachingEnabled()
getValueChecking
public boolean getValueChecking()
startJournaling
public void startJournaling(String userName,
URI uri)
stopJournaling
public void stopJournaling()
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2004 Stanford University.