|
Protege 3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protege.storage.jdbc.OldJdbcDefaultKnowledgeBase
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.
Field Summary |
Fields inherited from interface edu.stanford.smi.protege.model.KnowledgeBase |
MAXIMUM_CARDINALITY_UNBOUNDED, UNLIMITED_MATCHES |
Constructor Summary | |
OldJdbcDefaultKnowledgeBase(KnowledgeBaseFactory factory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OldJdbcDefaultKnowledgeBase(KnowledgeBaseFactory factory)
Method Detail |
public void addClsListener(Cls cls, ClsListener listener)
KnowledgeBase
addClsListener
in interface KnowledgeBase
public void addDirectSuperclass(Cls child, Cls parent)
addDirectSuperclass
in interface KnowledgeBase
public void addDirectSuperslot(Slot slot, Slot superslot)
addDirectSuperslot
in interface KnowledgeBase
public void addDirectTemplateSlot(Cls cls, Slot slot)
addDirectTemplateSlot
in interface KnowledgeBase
public void addFacetListener(Facet facet, FacetListener listener)
KnowledgeBase
addFacetListener
in interface KnowledgeBase
public void addFrameListener(Frame frame, FrameListener listener)
KnowledgeBase
addFrameListener
in interface KnowledgeBase
public void addInstance(Instance instance, String name, Cls type, boolean isNew)
addInstance
in interface KnowledgeBase
public void addInstanceListener(Instance instance, InstanceListener listener)
addInstanceListener
in interface KnowledgeBase
public static boolean equals(Object o1, Object o2)
public void addJavaLoadPackage(String packageName)
KnowledgeBase
addJavaLoadPackage
in interface KnowledgeBase
public void addKnowledgeBaseListener(KnowledgeBaseListener listener)
addKnowledgeBaseListener
in interface KnowledgeBase
public void addOwnSlotValue(Frame frame, Slot slot, Object value)
addOwnSlotValue
in interface KnowledgeBase
public void addOwnSlotValue(Frame frame, Slot slot, Object value, int index)
public void addSlotListener(Slot slot, SlotListener listener)
addSlotListener
in interface KnowledgeBase
public void addTemplateFacetValue(Cls cls, Slot slot, Facet facet, Object value)
addTemplateFacetValue
in interface KnowledgeBase
public void addTemplateFacetValue(Cls cls, Slot slot, Facet facet, Object value, int index)
public void addTemplateSlotValue(Cls cls, Slot slot, Object value)
addTemplateSlotValue
in interface KnowledgeBase
public boolean areValidOwnSlotValues(Frame frame, Slot slot, Collection values)
areValidOwnSlotValues
in interface KnowledgeBase
public boolean beginTransaction(String name)
beginTransaction
in interface KnowledgeBase
public void changeFrameName(Frame frame, String newName)
changeFrameName
in interface KnowledgeBase
public void setFrameName(Frame frame, String newName)
setFrameName
in interface KnowledgeBase
public boolean containsFrame(String name)
containsFrame
in interface KnowledgeBase
public Cls createCls(String name, Collection directSuperclasses)
createCls
in interface KnowledgeBase
name
- Pass null to cause the system to generate a namepublic Cls createCls(String name, Collection parents, Cls metaCls)
createCls
in interface KnowledgeBase
name
- Pass null to cause the system to generate a namepublic Cls createCls(String name, Collection parents, Cls metaCls, boolean isNew)
createCls
in interface KnowledgeBase
name
- Pass null to cause the system to generate a namepublic Facet createFacet(String name)
createFacet
in interface KnowledgeBase
name
- Pass null to cause the system to generate a namepublic Facet createFacet(String name, Cls metaCls)
createFacet
in interface KnowledgeBase
name
- Pass null to cause the system to generate a namepublic Facet createFacet(String name, Cls metaCls, boolean isNew)
createFacet
in interface KnowledgeBase
name
- Pass null to cause the system to generate a namepublic Instance createInstance(String name, Cls cls)
createInstance
in interface KnowledgeBase
name
- Pass null to cause the system to generate a namepublic Instance createInstance(String name, Cls cls, boolean isNew)
createInstance
in interface KnowledgeBase
name
- Pass null to cause the system to generate a namepublic Instance createSimpleInstance(String name, Cls cls)
public Instance createSimpleInstance(String name, Cls cls, boolean isNew)
public Slot createSlot(String name)
createSlot
in interface KnowledgeBase
name
- Pass null to cause the system to generate a namepublic Slot createSlot(String name, Cls metaCls)
createSlot
in interface KnowledgeBase
name
- Pass null to cause the system to generate a namepublic Slot createSlot(String name, Cls metaCls, Collection superslots, boolean isNew)
createSlot
in interface KnowledgeBase
name
- Pass null to cause the system to generate a namepublic Slot createSlot(String name, Cls metaCls, boolean isNew)
createSlot
in interface KnowledgeBase
name
- Pass null to cause the system to generate a namepublic String createUniqueFrameName(String name)
createUniqueFrameName
in interface KnowledgeBase
public void deleteCls(Cls cls)
deleteCls
in interface KnowledgeBase
public void deleteFacet(Facet facet)
deleteFacet
in interface KnowledgeBase
public void deleteFrame(Frame frame)
deleteFrame
in interface KnowledgeBase
public void deleteInstance(Instance instance)
deleteInstance
in interface KnowledgeBase
public void deleteSimpleInstance(SimpleInstance instance)
public void deleteSlot(Slot slot)
deleteSlot
in interface KnowledgeBase
public void dispose()
dispose
in interface Disposable
public boolean endTransaction(boolean doCommit)
endTransaction
in interface KnowledgeBase
public Collection getAllowedClses(Slot slot)
getAllowedClses
in interface KnowledgeBase
public Collection getAllowedParents(Slot slot)
getAllowedParents
in interface KnowledgeBase
public Collection getAllowedValues(Slot slot)
getAllowedValues
in interface KnowledgeBase
public boolean getAllowsMultipleValues(Slot slot)
getAllowsMultipleValues
in interface KnowledgeBase
public Facet getAssociatedFacet(Slot slot)
getAssociatedFacet
in interface KnowledgeBase
public Slot getAssociatedSlot(Facet facet)
getAssociatedSlot
in interface KnowledgeBase
public String getBrowserText(Instance instance)
getBrowserText
in interface KnowledgeBase
public String getBuildString()
KnowledgeBase
getBuildString
in interface KnowledgeBase
public Object getClientInformation(Object key)
KnowledgeBase
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.
getClientInformation
in interface KnowledgeBase
public Cls getCls(String name)
getCls
in interface KnowledgeBase
public int getClsCount()
getClsCount
in interface KnowledgeBase
public Collection getClses()
getClses
in interface KnowledgeBase
public Collection getClsNameMatches(String s, int maxMatches)
KnowledgeBase
getClsNameMatches
in interface KnowledgeBase
public Cls getDefaultClsMetaCls()
KnowledgeBase
getDefaultClsMetaCls
in interface KnowledgeBase
public Cls getDefaultFacetMetaCls()
getDefaultFacetMetaCls
in interface KnowledgeBase
public Cls getDefaultSlotMetaCls()
getDefaultSlotMetaCls
in interface KnowledgeBase
public Collection getDefaultValues(Slot slot)
getDefaultValues
in interface KnowledgeBase
public Facet getDefaultValuesFacet()
public Slot getDefaultValuesSlot()
public int getDirectInstanceCount(Cls type)
getDirectInstanceCount
in interface KnowledgeBase
public Collection getDirectInstances(Cls type)
getDirectInstances
in interface KnowledgeBase
public Slot getDirectInstancesSlot()
public int getDirectSubclassCount(Cls parent)
getDirectSubclassCount
in interface KnowledgeBase
public Collection getDirectSubclasses(Cls parent)
getDirectSubclasses
in interface KnowledgeBase
public Slot getDirectSubclassesSlot()
public int getDirectSubslotCount(Slot slot)
getDirectSubslotCount
in interface KnowledgeBase
public Collection getDirectSubslots(Slot slot)
getDirectSubslots
in interface KnowledgeBase
public int getDirectSuperclassCount(Cls cls)
getDirectSuperclassCount
in interface KnowledgeBase
public Collection getDirectSuperclasses(Cls cls)
getDirectSuperclasses
in interface KnowledgeBase
public Slot getDirectSuperclassesSlot()
public Slot getDirectSuperslotsSlot()
public int getDirectSuperslotCount(Slot slot)
getDirectSuperslotCount
in interface KnowledgeBase
public Collection getDirectSuperslots(Slot slot)
getDirectSuperslots
in interface KnowledgeBase
public List getDirectTemplateFacetValues(Cls cls, Slot slot, Facet facet)
getDirectTemplateFacetValues
in interface KnowledgeBase
public Collection getDirectTemplateSlots(Cls cls)
getDirectTemplateSlots
in interface KnowledgeBase
public Slot getDirectTemplateSlotsSlot()
public List getDirectTemplateSlotValues(Cls cls, Slot slot)
getDirectTemplateSlotValues
in interface KnowledgeBase
public Cls getDirectType(Instance instance)
getDirectType
in interface KnowledgeBase
public Collection getDirectTypes(Instance instance)
getDirectTypes
in interface KnowledgeBase
public Slot getDirectTypeSlot()
public Collection getDocumentation(Frame frame)
getDocumentation
in interface KnowledgeBase
public Facet getFacet(String name)
getFacet
in interface KnowledgeBase
public int getFacetCount()
getFacetCount
in interface KnowledgeBase
public Collection getFacets()
getFacets
in interface KnowledgeBase
public Frame getFrame(FrameID id)
getFrame
in interface KnowledgeBase
public Frame getFrame(String name)
getFrame
in interface KnowledgeBase
public int getFrameCount()
getFrameCount
in interface KnowledgeBase
public String getFrameCreationTimestamp(Frame frame)
getFrameCreationTimestamp
in interface KnowledgeBase
public String getFrameCreator(Frame frame)
getFrameCreator
in interface KnowledgeBase
public String getFrameLastModificationTimestamp(Frame frame)
getFrameLastModificationTimestamp
in interface KnowledgeBase
public String getFrameLastModifier(Frame frame)
getFrameLastModifier
in interface KnowledgeBase
public Collection getFrameNameMatches(String s, int maxMatches)
getFrameNameMatches
in interface KnowledgeBase
public String getFrameNamePrefix()
getFrameNamePrefix
in interface KnowledgeBase
public Collection getFrames()
getFrames
in interface KnowledgeBase
public Instance getInstance(String name)
getInstance
in interface KnowledgeBase
public int getInstanceCount(Cls type)
getInstanceCount
in interface KnowledgeBase
public Collection getInstances()
getInstances
in interface KnowledgeBase
public Collection getInstances(Cls type)
getInstances
in interface KnowledgeBase
public String getInvalidOwnSlotValuesText(Frame frame, Slot slot, Collection values)
getInvalidOwnSlotValuesText
in interface KnowledgeBase
public String getInvalidOwnSlotValueText(Frame frame, Slot slot, Object value)
getInvalidOwnSlotValueText
in interface KnowledgeBase
public Slot getInverseSlot(Slot slot)
getInverseSlot
in interface KnowledgeBase
public KnowledgeBaseFactory getKnowledgeBaseFactory()
getKnowledgeBaseFactory
in interface KnowledgeBase
public Collection getMatchingFrames(Slot slot, Facet facet, boolean isTemplate, String s, int nMatches)
KnowledgeBase
getMatchingFrames
in interface KnowledgeBase
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?
public Collection getFramesWithValue(Slot slot, Facet facet, boolean isTemplate, Object value)
KnowledgeBase
getFramesWithValue
in interface KnowledgeBase
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
public int getMaximumCardinality(Slot slot)
getMaximumCardinality
in interface KnowledgeBase
public Number getMaximumValue(Slot slot)
getMaximumValue
in interface KnowledgeBase
public int getMinimumCardinality(Slot slot)
getMinimumCardinality
in interface KnowledgeBase
public Number getMinimumValue(Slot slot)
getMinimumValue
in interface KnowledgeBase
public String getName()
getName
in interface KnowledgeBase
public String getName(Frame frame)
getName
in interface KnowledgeBase
public Slot getNameSlot()
getNameSlot
in interface KnowledgeBase
public int getNextFrameNumber()
getNextFrameNumber
in interface KnowledgeBase
public boolean getOwnSlotAllowsMultipleValues(Frame frame, Slot slot)
getOwnSlotAllowsMultipleValues
in interface KnowledgeBase
public Collection getOwnSlotAndSubslotValues(Frame frame, Slot slot)
getOwnSlotAndSubslotValues
in interface KnowledgeBase
public Collection getOwnSlotDefaultValues(Frame frame, Slot slot)
getOwnSlotDefaultValues
in interface KnowledgeBase
public Collection getOwnSlotFacets(Frame frame, Slot slot)
getOwnSlotFacets
in interface KnowledgeBase
public Collection getOwnSlotFacetValues(Frame frame, Slot slot, Facet facet)
getOwnSlotFacetValues
in interface KnowledgeBase
public Collection getOwnSlots(Frame frame)
getOwnSlots
in interface KnowledgeBase
public Object getOwnSlotValue(Frame frame, Slot slot)
getOwnSlotValue
in interface KnowledgeBase
public int getOwnSlotValueCount(Frame frame, Slot slot)
getOwnSlotValueCount
in interface KnowledgeBase
public List getDirectOwnSlotValues(Frame frame, Slot slot)
getDirectOwnSlotValues
in interface KnowledgeBase
public Collection getOwnSlotValues(Frame frame, Slot slot)
getOwnSlotValues
in interface KnowledgeBase
public ValueType getOwnSlotValueType(Frame frame, Slot slot)
getOwnSlotValueType
in interface KnowledgeBase
public Project getProject()
getProject
in interface KnowledgeBase
public Collection getReachableSimpleInstances(Collection roots)
getReachableSimpleInstances
in interface KnowledgeBase
public Collection getReferences(Object o, int maxReferences)
getReferences
in interface KnowledgeBase
public Collection getMatchingReferences(String s, int maxReferences)
getMatchingReferences
in interface KnowledgeBase
public Cls getRootCls()
getRootCls
in interface KnowledgeBase
public Collection getRootClses()
getRootClses
in interface KnowledgeBase
public Cls getRootClsMetaCls()
getRootClsMetaCls
in interface KnowledgeBase
public Cls getRootFacetMetaCls()
getRootFacetMetaCls
in interface KnowledgeBase
public Cls getRootSlotMetaCls()
getRootSlotMetaCls
in interface KnowledgeBase
public Collection getRootSlots()
getRootSlots
in interface KnowledgeBase
public Slot getSlot(String name)
getSlot
in interface KnowledgeBase
public int getSlotCount()
getSlotCount
in interface KnowledgeBase
public Collection getSlots()
getSlots
in interface KnowledgeBase
public String getSlotValueLastModificationTimestamp(Frame frame, Slot slot, boolean isTemplate)
getSlotValueLastModificationTimestamp
in interface KnowledgeBase
public String getSlotValueLastModifier(Frame frame, Slot slot, boolean isTemplate)
getSlotValueLastModifier
in interface KnowledgeBase
public Storage getStorage()
public int getSubclassCount(Cls parent)
public Collection getSubclasses(Cls parent)
getSubclasses
in interface KnowledgeBase
public Collection getSubslots(Slot slot)
getSubslots
in interface KnowledgeBase
public int getSuperclassCount(Cls child)
public Collection getSuperclasses(Cls child)
getSuperclasses
in interface KnowledgeBase
public Collection getSuperslots(Slot slot)
getSuperslots
in interface KnowledgeBase
public Collection getTemplateFacets(Cls cls, Slot slot)
getTemplateFacets
in interface KnowledgeBase
public Object getTemplateFacetValue(Cls cls, Slot slot, Facet facet)
getTemplateFacetValue
in interface KnowledgeBase
public Collection getTemplateFacetValues(Cls cls, Slot slot, Facet facet)
getTemplateFacetValues
in interface KnowledgeBase
public Collection getTemplateSlotAllowedClses(Cls cls, Slot slot)
getTemplateSlotAllowedClses
in interface KnowledgeBase
public Collection getTemplateSlotAllowedParents(Cls cls, Slot slot)
getTemplateSlotAllowedParents
in interface KnowledgeBase
public Collection getTemplateSlotAllowedValues(Cls cls, Slot slot)
getTemplateSlotAllowedValues
in interface KnowledgeBase
public boolean getTemplateSlotAllowsMultipleValues(Cls cls, Slot slot)
getTemplateSlotAllowsMultipleValues
in interface KnowledgeBase
public Collection getDirectDomain(Slot slot)
getDirectDomain
in interface KnowledgeBase
public Collection getDomain(Slot slot)
getDomain
in interface KnowledgeBase
public Collection getTemplateSlotDefaultValues(Cls cls, Slot slot)
getTemplateSlotDefaultValues
in interface KnowledgeBase
public Collection getTemplateSlotDocumentation(Cls cls, Slot slot)
getTemplateSlotDocumentation
in interface KnowledgeBase
public int getTemplateSlotMaximumCardinality(Cls cls, Slot slot)
getTemplateSlotMaximumCardinality
in interface KnowledgeBase
public Number getTemplateSlotMaximumValue(Cls cls, Slot slot)
getTemplateSlotMaximumValue
in interface KnowledgeBase
public int getTemplateSlotMinimumCardinality(Cls cls, Slot slot)
getTemplateSlotMinimumCardinality
in interface KnowledgeBase
public Number getTemplateSlotMinimumValue(Cls cls, Slot slot)
getTemplateSlotMinimumValue
in interface KnowledgeBase
public Collection getTemplateSlots(Cls cls)
getTemplateSlots
in interface KnowledgeBase
public Object getTemplateSlotValue(Cls cls, Slot slot)
getTemplateSlotValue
in interface KnowledgeBase
public Collection getTemplateSlotValues(Cls cls, Slot slot)
getTemplateSlotValues
in interface KnowledgeBase
public ValueType getTemplateSlotValueType(Cls cls, Slot slot)
getTemplateSlotValueType
in interface KnowledgeBase
public Collection getUnreachableSimpleInstances(Collection roots)
getUnreachableSimpleInstances
in interface KnowledgeBase
public String getUserName()
getUserName
in interface KnowledgeBase
public Collection getValues(Slot slot)
getValues
in interface KnowledgeBase
public Facet getValuesFacet()
public Slot getValuesSlot()
public ValueType getValueType(Slot slot)
getValueType
in interface KnowledgeBase
public String getVersionString()
getVersionString
in interface KnowledgeBase
public String getVersionString(String s)
public boolean hasChanged()
hasChanged
in interface KnowledgeBase
public boolean hasDirectlyOverriddenTemplateFacet(Cls cls, Slot slot, Facet facet)
hasDirectlyOverriddenTemplateFacet
in interface KnowledgeBase
public boolean hasDirectlyOverriddenTemplateSlot(Cls cls, Slot slot)
hasDirectlyOverriddenTemplateSlot
in interface KnowledgeBase
public boolean hasDirectSubclass(Cls parent, Cls child)
public boolean hasDirectSuperclass(Cls child, Cls parent)
hasDirectSuperclass
in interface KnowledgeBase
public boolean hasDirectSuperslot(Slot slot, Slot superslot)
hasDirectSuperslot
in interface KnowledgeBase
public boolean hasDirectTemplateSlot(Cls cls, Slot slot)
hasDirectTemplateSlot
in interface KnowledgeBase
public boolean hasDirectType(Instance instance, Cls type)
hasDirectType
in interface KnowledgeBase
public boolean hasInheritedTemplateSlot(Cls cls, Slot slot)
hasInheritedTemplateSlot
in interface KnowledgeBase
public boolean hasOverriddenTemplateFacet(Cls cls, Slot slot, Facet facet)
hasOverriddenTemplateFacet
in interface KnowledgeBase
public boolean hasOverriddenTemplateSlot(Cls cls, Slot slot)
hasOverriddenTemplateSlot
in interface KnowledgeBase
public boolean hasOwnSlot(Frame frame, Slot slot)
hasOwnSlot
in interface KnowledgeBase
public boolean hasSlotValueAtSomeFrame(Slot slot)
hasSlotValueAtSomeFrame
in interface KnowledgeBase
public boolean hasSubclass(Cls parent, Cls child)
public boolean hasSuperclass(Cls child, Cls superclass)
hasSuperclass
in interface KnowledgeBase
public boolean hasTemplateFacet(Cls cls, Slot slot, Facet facet)
public boolean hasTemplateSlot(Cls cls, Slot slot)
hasTemplateSlot
in interface KnowledgeBase
public boolean hasType(Instance instance, Cls type)
hasType
in interface KnowledgeBase
public boolean isAbstract(Cls cls)
isAbstract
in interface KnowledgeBase
public boolean isAutoUpdatingFacetValues()
isAutoUpdatingFacetValues
in interface KnowledgeBase
public boolean isClsMetaCls(Cls cls)
isClsMetaCls
in interface KnowledgeBase
public boolean isDefaultClsMetaCls(Cls cls)
isDefaultClsMetaCls
in interface KnowledgeBase
public boolean isDefaultFacetMetaCls(Cls cls)
isDefaultFacetMetaCls
in interface KnowledgeBase
public boolean isDefaultSlotMetaCls(Cls cls)
isDefaultSlotMetaCls
in interface KnowledgeBase
public boolean isFacetMetaCls(Cls cls)
isFacetMetaCls
in interface KnowledgeBase
public boolean isLoading()
isLoading
in interface KnowledgeBase
public boolean isMetaCls(Cls cls)
isMetaCls
in interface KnowledgeBase
public boolean isSlotMetaCls(Cls cls)
isSlotMetaCls
in interface KnowledgeBase
public boolean isValidOwnSlotValue(Frame frame, Slot slot, Object value)
isValidOwnSlotValue
in interface KnowledgeBase
protected FrameManager makeFrameManager()
public Instance makeSimpleInstance(String clsName, FrameID id)
public void moveDirectSubclass(Cls parent, Cls child, Cls afterCls)
moveDirectSubclass
in interface KnowledgeBase
public void moveDirectSuperclass(Cls child, Cls parent, Cls afterCls)
public void moveDirectTemplateSlot(Cls cls, Slot slot, int toIndex)
moveDirectTemplateSlot
in interface KnowledgeBase
public void moveOwnSlotValue(Frame frame, Slot slot, int fromIndex, int toIndex)
moveOwnSlotValue
in interface KnowledgeBase
public void moveTemplateFacetValue(Cls cls, Slot slot, Facet facet, int fromIndex, int toIndex)
public Instance newInstance(String name, Cls cls, FrameID id, boolean isNew)
public void notifyVisibilityChanged(Frame frame)
notifyVisibilityChanged
in interface KnowledgeBase
protected void postBrowserTextChanged(Frame frame)
protected void postOwnSlotValueChanged(Frame frame, Slot slot)
public void removeClsListener(Cls cls, ClsListener listener)
removeClsListener
in interface KnowledgeBase
public void removeDirectSuperclass(Cls child, Cls parent)
removeDirectSuperclass
in interface KnowledgeBase
public void removeDirectSuperslot(Slot slot, Slot superSlot)
removeDirectSuperslot
in interface KnowledgeBase
public void removeDirectTemplateSlot(Cls cls, Slot slot)
removeDirectTemplateSlot
in interface KnowledgeBase
public void removeFacetListener(Facet facet, FacetListener listener)
removeFacetListener
in interface KnowledgeBase
public void removeFrameListener(Frame frame, FrameListener listener)
removeFrameListener
in interface KnowledgeBase
public void removeInstanceListener(Instance instance, InstanceListener listener)
removeInstanceListener
in interface KnowledgeBase
public void removeJavaLoadPackage(String packageName)
removeJavaLoadPackage
in interface KnowledgeBase
public void removeKnowledgeBaseListener(KnowledgeBaseListener listener)
removeKnowledgeBaseListener
in interface KnowledgeBase
public void removeOwnSlotValue(Frame frame, Slot slot, Object value)
removeOwnSlotValue
in interface KnowledgeBase
public void removeSlotListener(Slot slot, SlotListener listener)
removeSlotListener
in interface KnowledgeBase
public void removeTemplateFacetOverrides(Cls cls, Slot slot)
removeTemplateFacetOverrides
in interface KnowledgeBase
public void setAbstract(Cls cls, boolean isAbstract)
setAbstract
in interface KnowledgeBase
public void setAllowedClses(Slot slot, Collection clses)
setAllowedClses
in interface KnowledgeBase
public void setAllowedParents(Slot slot, Collection parents)
setAllowedParents
in interface KnowledgeBase
public void setAllowedValues(Slot slot, Collection values)
setAllowedValues
in interface KnowledgeBase
public void setAllowsMultipleValues(Slot slot, boolean b)
setAllowsMultipleValues
in interface KnowledgeBase
public void setAssociatedFacet(Slot slot, Facet facet)
setAssociatedFacet
in interface KnowledgeBase
public void setAssociatedSlot(Facet facet, Slot slot)
setAssociatedSlot
in interface KnowledgeBase
public void setAutoUpdateFacetValues(boolean b)
setAutoUpdateFacetValues
in interface KnowledgeBase
public void setBuildString(String s)
setBuildString
in interface KnowledgeBase
public void setChanged(boolean b)
setChanged
in interface KnowledgeBase
public Object setClientInformation(Object key, Object value)
setClientInformation
in interface KnowledgeBase
public void setDefaultClsMetaCls(Cls cls)
setDefaultClsMetaCls
in interface KnowledgeBase
public void setDefaultFacetMetaCls(Cls cls)
setDefaultFacetMetaCls
in interface KnowledgeBase
public void setDefaultSlotMetaCls(Cls cls)
setDefaultSlotMetaCls
in interface KnowledgeBase
public void setDefaultValues(Slot slot, Collection values)
setDefaultValues
in interface KnowledgeBase
public Instance setDirectType(Instance instance, Cls type)
setDirectType
in interface KnowledgeBase
public void setDirectTypeOfSubclasses(Cls cls, Cls metaCls)
setDirectTypeOfSubclasses
in interface KnowledgeBase
public void setDirectTypeOfSubslots(Slot slot, Cls cls)
setDirectTypeOfSubslots
in interface KnowledgeBase
public void setDocumentation(Frame frame, String doc)
setDocumentation
in interface KnowledgeBase
public void setDocumentation(Frame frame, Collection docs)
setDocumentation
in interface KnowledgeBase
public boolean setEventsEnabled(boolean enabled)
setEventsEnabled
in interface KnowledgeBase
public void setFrameNamePrefix(String prefix)
setFrameNamePrefix
in interface KnowledgeBase
public void setInverseSlot(Slot slot, Slot inverseSlot)
setInverseSlot
in interface KnowledgeBase
public void setLoading(boolean loading)
public void setMaximumCardinality(Slot slot, int max)
setMaximumCardinality
in interface KnowledgeBase
public void setMaximumValue(Slot slot, Number min)
setMaximumValue
in interface KnowledgeBase
public void setMinimumCardinality(Slot slot, int min)
setMinimumCardinality
in interface KnowledgeBase
public void setMinimumValue(Slot slot, Number min)
setMinimumValue
in interface KnowledgeBase
public void setName(String name)
setName
in interface KnowledgeBase
public void setNextFrameNumber(int i)
setNextFrameNumber
in interface KnowledgeBase
public void setOwnSlotValue(Frame frame, Slot slot, Object value)
public void setDirectOwnSlotValues(Frame frame, Slot slot, Collection values)
setDirectOwnSlotValues
in interface KnowledgeBase
public void setOwnSlotValues(Frame frame, Slot slot, Collection values)
KnowledgeBase
setOwnSlotValues
in interface KnowledgeBase
public void setProject(Project project)
setProject
in interface KnowledgeBase
public void setSlotValueFacetChecking(boolean b)
public boolean getSlotValueFacetChecking()
public void setStorage(Storage storage)
public void setTemplateFacetValue(Cls cls, Slot slot, Facet facet, Object value)
setTemplateFacetValue
in interface KnowledgeBase
public void setTemplateFacetValues(Cls cls, Slot slot, Facet facet, Collection values)
setTemplateFacetValues
in interface KnowledgeBase
public void setTemplateSlotAllowedClses(Cls cls, Slot slot, Collection clses)
setTemplateSlotAllowedClses
in interface KnowledgeBase
public void setTemplateSlotAllowedParents(Cls cls, Slot slot, Collection clses)
setTemplateSlotAllowedParents
in interface KnowledgeBase
public void setTemplateSlotAllowedValues(Cls cls, Slot slot, Collection values)
setTemplateSlotAllowedValues
in interface KnowledgeBase
public void setTemplateSlotAllowsMultipleValues(Cls cls, Slot slot, boolean allowed)
setTemplateSlotAllowsMultipleValues
in interface KnowledgeBase
public void setTemplateSlotDefaultValues(Cls cls, Slot slot, Collection values)
setTemplateSlotDefaultValues
in interface KnowledgeBase
public void setTemplateSlotDocumentation(Cls cls, Slot slot, String doc)
setTemplateSlotDocumentation
in interface KnowledgeBase
public void setTemplateSlotDocumentation(Cls cls, Slot slot, Collection doc)
setTemplateSlotDocumentation
in interface KnowledgeBase
public void setTemplateSlotMaximumCardinality(Cls cls, Slot slot, int max)
setTemplateSlotMaximumCardinality
in interface KnowledgeBase
public void setTemplateSlotMaximumValue(Cls cls, Slot slot, Number value)
setTemplateSlotMaximumValue
in interface KnowledgeBase
public void setTemplateSlotMinimumCardinality(Cls cls, Slot slot, int min)
setTemplateSlotMinimumCardinality
in interface KnowledgeBase
public void setTemplateSlotMinimumValue(Cls cls, Slot slot, Number value)
setTemplateSlotMinimumValue
in interface KnowledgeBase
public void setTemplateSlotValue(Cls cls, Slot slot, Object value)
setTemplateSlotValue
in interface KnowledgeBase
public void setTemplateSlotValues(Cls cls, Slot slot, Collection values)
setTemplateSlotValues
in interface KnowledgeBase
public void setTemplateSlotValueType(Cls cls, Slot slot, ValueType type)
setTemplateSlotValueType
in interface KnowledgeBase
public void setUserName(String name)
setUserName
in interface KnowledgeBase
public void setValueChecking(boolean b)
KnowledgeBase
setValueChecking
in interface KnowledgeBase
public boolean getValueChecking()
getValueChecking
in interface KnowledgeBase
public void setValues(Slot slot, Collection values)
setValues
in interface KnowledgeBase
public void setValueType(Slot slot, ValueType valueType)
setValueType
in interface KnowledgeBase
public void setValueTypeFacetValues(Cls cls, Slot slot, Collection values)
public void setValueTypeOwnSlotValues(Slot slot, Collection values)
public void setVersionString(String s)
setVersionString
in interface KnowledgeBase
public String toString()
protected FrameManager getFrameManager()
public Collection getCurrentUsers()
getCurrentUsers
in interface KnowledgeBase
public boolean getEventsEnabled()
getEventsEnabled
in interface KnowledgeBase
public void addDirectType(Instance instance, Cls type)
addDirectType
in interface KnowledgeBase
public void removeDirectType(Instance instance, Cls type)
removeDirectType
in interface KnowledgeBase
public CommandManager getCommandManager()
getCommandManager
in interface KnowledgeBase
public boolean setUndoEnabled(boolean b)
setUndoEnabled
in interface KnowledgeBase
public void addClsListener(ClsListener listener)
KnowledgeBase
addClsListener
in interface KnowledgeBase
public void removeClsListener(ClsListener listener)
removeClsListener
in interface KnowledgeBase
public void addFacetListener(FacetListener listener)
KnowledgeBase
addFacetListener
in interface KnowledgeBase
public void removeFacetListener(FacetListener listener)
removeFacetListener
in interface KnowledgeBase
public void addFrameListener(FrameListener listener)
KnowledgeBase
addFrameListener
in interface KnowledgeBase
public void removeFrameListener(FrameListener listener)
removeFrameListener
in interface KnowledgeBase
public void addInstanceListener(InstanceListener listener)
addInstanceListener
in interface KnowledgeBase
public void removeInstanceListener(InstanceListener listener)
removeInstanceListener
in interface KnowledgeBase
public void addSlotListener(SlotListener listener)
addSlotListener
in interface KnowledgeBase
public void removeSlotListener(SlotListener listener)
removeSlotListener
in interface KnowledgeBase
public boolean isValidFrameName(String s, Frame frame)
isValidFrameName
in interface KnowledgeBase
public String getInvalidFrameNameDescription(String s, Frame frame)
getInvalidFrameNameDescription
in interface KnowledgeBase
public void setFrameNameValidator(FrameNameValidator validator)
setFrameNameValidator
in interface KnowledgeBase
public boolean getGenerateEventsEnabled()
getGenerateEventsEnabled
in interface KnowledgeBase
public boolean setGenerateEventsEnabled(boolean b)
setGenerateEventsEnabled
in interface KnowledgeBase
public boolean getDispatchEventsEnabled()
getDispatchEventsEnabled
in interface KnowledgeBase
public boolean setDispatchEventsEnabled(boolean b)
setDispatchEventsEnabled
in interface KnowledgeBase
public void setPollForEvents(boolean b)
setPollForEvents
in interface KnowledgeBase
public void setFrameFactory(FrameFactory f)
setFrameFactory
in interface KnowledgeBase
public FrameStore getFrameStore(Class c)
public void setDirectBrowserSlot(Cls cls, Slot slot)
setDirectBrowserSlot
in interface KnowledgeBase
public void insertFrameStore(FrameStore newFrameStoreClass, FrameStore afterFrameStoreClass)
public void insertFrameStore(FrameStore newFrameStoreClass)
KnowledgeBase
insertFrameStore
in interface KnowledgeBase
newFrameStoreClass
- public boolean setFrameStoreEnabled(Class frameStoreClass, boolean enable)
public void insertFrameStore(FrameStore newFrameStore, int position)
KnowledgeBase
insertFrameStore
in interface KnowledgeBase
newFrameStore
- position
- Position in the frame store list to insert this frame store.public List getFrameStores()
KnowledgeBase
getFrameStores
in interface KnowledgeBase
public FrameFactory getFrameFactory()
getFrameFactory
in interface KnowledgeBase
public SystemFrames getSystemFrames()
getSystemFrames
in interface KnowledgeBase
public void clearAllListeners()
clearAllListeners
in interface KnowledgeBase
public FrameStore getHeadFrameStore()
public FrameCounts getFrameCounts()
getFrameCounts
in interface KnowledgeBase
public int getSimpleInstanceCount()
getSimpleInstanceCount
in interface KnowledgeBase
public boolean hasSuperslot(Slot slot, Slot superslot)
hasSuperslot
in interface KnowledgeBase
public void moveDirectSubslot(Slot slot, Slot subslot, Slot afterSlot)
moveDirectSubslot
in interface KnowledgeBase
public Cls createCls(FrameID id, String name, Collection parents, Collection metaClses, boolean isNew)
createCls
in interface KnowledgeBase
id
- Pass null to cause the system to generate an idname
- Pass null to cause the system to generate a namepublic Facet createFacet(FrameID id, String name, Collection metaClses, boolean isNew)
public Slot createSlot(FrameID id, String name, Collection metaClses, Collection superslots, boolean isNew)
public Instance createInstance(FrameID id, String name, Cls directType, boolean initializeDefaults)
createInstance
in interface KnowledgeBase
id
- Pass null to cause the system to generate an idname
- Pass null to cause the system to generate a namepublic boolean setJournalingEnabled(boolean enabled)
setJournalingEnabled
in interface KnowledgeBase
public boolean isJournalingEnabled()
isJournalingEnabled
in interface KnowledgeBase
public void setDirectBrowserSlotPattern(Cls cls, BrowserSlotPattern p)
setDirectBrowserSlotPattern
in interface KnowledgeBase
public BrowserSlotPattern getDirectBrowserSlotPattern(Cls cls)
getDirectBrowserSlotPattern
in interface KnowledgeBase
public Set getDirectOwnSlotValuesClosure(Frame frame, Slot slot)
getDirectOwnSlotValuesClosure
in interface KnowledgeBase
public boolean isCallCachingEnabled()
isCallCachingEnabled
in interface KnowledgeBase
public boolean setCallCachingEnabled(boolean enabled)
setCallCachingEnabled
in interface KnowledgeBase
public boolean setArgumentCheckingEnabled(boolean enabled)
setArgumentCheckingEnabled
in interface KnowledgeBase
public boolean setChangeMonitorEnabled(boolean enabled)
setChangeMonitorEnabled
in interface KnowledgeBase
public boolean setCleanDispatchEnabled(boolean enabled)
setCleanDispatchEnabled
in interface KnowledgeBase
public boolean setFacetCheckingEnabled(boolean enabled)
setFacetCheckingEnabled
in interface KnowledgeBase
public Object getDirectOwnSlotValue(Frame frame, Slot slot)
getDirectOwnSlotValue
in interface KnowledgeBase
public void removeFrameStore(FrameStore frameStore)
removeFrameStore
in interface KnowledgeBase
public void startJournaling(URI uri)
startJournaling
in interface KnowledgeBase
public void stopJournaling()
stopJournaling
in interface KnowledgeBase
public Collection getDirectlyOverriddenTemplateSlots(Cls cls)
getDirectlyOverriddenTemplateSlots
in interface KnowledgeBase
public Collection getDirectlyOverriddenTemplateFacets(Cls cls, Slot slot)
getDirectlyOverriddenTemplateFacets
in interface KnowledgeBase
public boolean setGenerateDeletingFrameEventsEnabled(boolean enabled)
setGenerateDeletingFrameEventsEnabled
in interface KnowledgeBase
public Collection getOverriddenTemplateFacets(Cls cls, Slot slot)
getOverriddenTemplateFacets
in interface KnowledgeBase
public SimpleInstance createSimpleInstance(FrameID id, String name, Collection directTypes, boolean initializeDefaults)
createSimpleInstance
in interface KnowledgeBase
id
- Pass null to cause the system to generate an idname
- Pass null to cause the system to generate a namepublic Instance setDirectTypes(Instance instance, Collection types)
setDirectTypes
in interface KnowledgeBase
public Instance createInstance(FrameID id, String name, Collection directTypes, boolean initializeDefaults)
createInstance
in interface KnowledgeBase
id
- Pass null to cause the system to generate an idname
- Pass null to cause the system to generate a name
|
Protege 3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |