edu.stanford.smi.protege.model.framestore
Class ChangeMonitorFrameStore
java.lang.Object
edu.stanford.smi.protege.model.framestore.AbstractFrameStore
edu.stanford.smi.protege.model.framestore.ModificationFrameStore
edu.stanford.smi.protege.model.framestore.ChangeMonitorFrameStore
- All Implemented Interfaces:
- FrameStore
public class ChangeMonitorFrameStore
- extends ModificationFrameStore
Method Summary |
void |
addDirectSuperclass(Cls cls,
Cls superclass)
|
void |
addDirectSuperslot(Slot slot,
Slot superslot)
|
void |
addDirectTemplateSlot(Cls cls,
Slot slot)
|
void |
addDirectType(Instance instance,
Cls type)
|
boolean |
beginTransaction(String name)
|
boolean |
commitTransaction()
|
Cls |
createCls(FrameID id,
String name,
Collection directTypes,
Collection directSuperclasses,
boolean loadDefaultValues)
|
Facet |
createFacet(FrameID id,
String name,
Collection directTypes,
boolean loadDefaultValues)
|
SimpleInstance |
createSimpleInstance(FrameID id,
String name,
Collection directTypes,
boolean loadDefaultValues)
|
Slot |
createSlot(FrameID id,
String name,
Collection directTypes,
Collection directSuperslots,
boolean loadDefaultValues)
|
void |
deleteCls(Cls cls)
Delete a single leaf class. |
void |
deleteFacet(Facet facet)
|
void |
deleteSimpleInstance(SimpleInstance simpleInstance)
|
void |
deleteSlot(Slot slot)
|
boolean |
isChanged()
|
void |
moveDirectOwnSlotValue(Frame frame,
Slot slot,
int indexFrom,
int indexTo)
|
void |
moveDirectSubclass(Cls cls,
Cls subclass,
int index)
|
void |
moveDirectSubslot(Slot slot,
Slot subslot,
int index)
|
void |
moveDirectTemplateSlot(Cls cls,
Slot slot,
int index)
|
void |
moveDirectType(Instance instance,
Cls type,
int index)
|
void |
reinitialize()
|
void |
removeDirectSuperclass(Cls cls,
Cls superclass)
|
void |
removeDirectSuperslot(Slot slot,
Slot superslot)
|
void |
removeDirectTemplateFacetOverrides(Cls cls,
Slot slot)
|
void |
removeDirectTemplateSlot(Cls cls,
Slot slot)
|
void |
removeDirectType(Instance instance,
Cls type)
|
boolean |
rollbackTransaction()
|
void |
setChanged(boolean b)
|
void |
setDirectOwnSlotValues(Frame frame,
Slot slot,
Collection values)
|
void |
setDirectTemplateFacetValues(Cls cls,
Slot slot,
Facet facet,
Collection values)
|
void |
setDirectTemplateSlotValues(Cls cls,
Slot slot,
Collection values)
|
void |
setFrameName(Frame frame,
String name)
|
Methods inherited from class edu.stanford.smi.protege.model.framestore.ModificationFrameStore |
executeQuery, getClsCount, getClses, getClsesWithAnyDirectTemplateSlotValue, getClsesWithDirectTemplateFacetValue, getClsesWithDirectTemplateSlotValue, getClsesWithMatchingBrowserText, getClsesWithMatchingDirectTemplateFacetValue, getClsesWithMatchingDirectTemplateSlotValue, getDirectDomain, getDirectInstances, getDirectlyOverriddenTemplateFacets, getDirectlyOverriddenTemplateSlots, getDirectOwnSlotValues, getDirectOwnSlotValuesClosure, getDirectOwnSlotValuesCount, getDirectSubclasses, getDirectSubslots, getDirectSuperclasses, getDirectSuperslots, getDirectTemplateFacetValues, getDirectTemplateSlots, getDirectTemplateSlotValues, getDirectTypes, getDomain, getEvents, getFacetCount, getFacets, getFrame, getFrame, getFrameCount, getFrameName, getFrames, getFramesWithAnyDirectOwnSlotValue, getFramesWithDirectOwnSlotValue, getFramesWithMatchingDirectOwnSlotValue, getInstances, getMatchingReferences, getOverriddenTemplateFacets, getOverriddenTemplateSlots, getOwnFacets, getOwnFacetValues, getOwnSlots, getOwnSlotValues, getReferences, getSimpleInstanceCount, getSlotCount, getSlots, getSubclasses, getSubslots, getSuperclasses, getSuperslots, getTemplateFacets, getTemplateFacetValues, getTemplateSlots, getTemplateSlotValues, getTransactionStatusMonitor, getTypes |
ChangeMonitorFrameStore
public ChangeMonitorFrameStore()
isChanged
public boolean isChanged()
setChanged
public void setChanged(boolean b)
reinitialize
public void reinitialize()
setFrameName
public void setFrameName(Frame frame,
String name)
createCls
public Cls createCls(FrameID id,
String name,
Collection directTypes,
Collection directSuperclasses,
boolean loadDefaultValues)
createSlot
public Slot createSlot(FrameID id,
String name,
Collection directTypes,
Collection directSuperslots,
boolean loadDefaultValues)
createFacet
public Facet createFacet(FrameID id,
String name,
Collection directTypes,
boolean loadDefaultValues)
createSimpleInstance
public SimpleInstance createSimpleInstance(FrameID id,
String name,
Collection directTypes,
boolean loadDefaultValues)
deleteCls
public void deleteCls(Cls cls)
- Description copied from interface:
FrameStore
- Delete a single leaf class. The operation fails if the class has subclasses or instances.
- Parameters:
cls
- Class to be deleted
deleteSlot
public void deleteSlot(Slot slot)
deleteFacet
public void deleteFacet(Facet facet)
deleteSimpleInstance
public void deleteSimpleInstance(SimpleInstance simpleInstance)
moveDirectOwnSlotValue
public void moveDirectOwnSlotValue(Frame frame,
Slot slot,
int indexFrom,
int indexTo)
setDirectOwnSlotValues
public void setDirectOwnSlotValues(Frame frame,
Slot slot,
Collection values)
addDirectTemplateSlot
public void addDirectTemplateSlot(Cls cls,
Slot slot)
removeDirectTemplateSlot
public void removeDirectTemplateSlot(Cls cls,
Slot slot)
moveDirectTemplateSlot
public void moveDirectTemplateSlot(Cls cls,
Slot slot,
int index)
setDirectTemplateSlotValues
public void setDirectTemplateSlotValues(Cls cls,
Slot slot,
Collection values)
removeDirectTemplateFacetOverrides
public void removeDirectTemplateFacetOverrides(Cls cls,
Slot slot)
setDirectTemplateFacetValues
public void setDirectTemplateFacetValues(Cls cls,
Slot slot,
Facet facet,
Collection values)
addDirectSuperclass
public void addDirectSuperclass(Cls cls,
Cls superclass)
removeDirectSuperclass
public void removeDirectSuperclass(Cls cls,
Cls superclass)
moveDirectSubclass
public void moveDirectSubclass(Cls cls,
Cls subclass,
int index)
addDirectSuperslot
public void addDirectSuperslot(Slot slot,
Slot superslot)
removeDirectSuperslot
public void removeDirectSuperslot(Slot slot,
Slot superslot)
moveDirectSubslot
public void moveDirectSubslot(Slot slot,
Slot subslot,
int index)
addDirectType
public void addDirectType(Instance instance,
Cls type)
removeDirectType
public void removeDirectType(Instance instance,
Cls type)
moveDirectType
public void moveDirectType(Instance instance,
Cls type,
int index)
beginTransaction
public boolean beginTransaction(String name)
commitTransaction
public boolean commitTransaction()
rollbackTransaction
public boolean rollbackTransaction()
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2007 Stanford University.