edu.stanford.smi.protege.model.framestore
Class ModificationRecordFrameStore
java.lang.Object
edu.stanford.smi.protege.model.framestore.AbstractFrameStore
edu.stanford.smi.protege.model.framestore.ModificationFrameStore
edu.stanford.smi.protege.model.framestore.ModificationRecordFrameStore
- All Implemented Interfaces:
- FrameStore
public class ModificationRecordFrameStore
- extends ModificationFrameStore
- Author:
- Ray Fergerson
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)
|
void |
close()
|
boolean |
commitTransaction()
|
Cls |
createCls(FrameID id,
Collection types,
Collection superclasses,
boolean loadDefaults)
|
Facet |
createFacet(FrameID id,
Collection directTypes,
boolean loadDefaultValues)
|
SimpleInstance |
createSimpleInstance(FrameID id,
Collection types,
boolean loadDefaultValues)
|
Slot |
createSlot(FrameID id,
Collection types,
Collection superslots,
boolean loadDefaults)
|
void |
deleteCls(Cls cls)
Delete a single leaf class. |
void |
deleteFacet(Facet facet)
|
void |
deleteSimpleInstance(SimpleInstance simpleInstance)
|
void |
deleteSlot(Slot slot)
|
void |
moveDirectOwnSlotValue(Frame frame,
Slot slot,
int from,
int to)
|
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 |
onSetDelegate()
|
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)
|
void |
replaceFrame(Frame original,
Frame replacement)
|
boolean |
rollbackTransaction()
|
void |
setAuthor(String name)
|
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)
|
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 |
ModificationRecordFrameStore
public ModificationRecordFrameStore()
setAuthor
public void setAuthor(String name)
reinitialize
public void reinitialize()
close
public void close()
- Specified by:
close
in interface FrameStore
- Overrides:
close
in class AbstractFrameStore
onSetDelegate
public void onSetDelegate()
- Overrides:
onSetDelegate
in class AbstractFrameStore
createCls
public Cls createCls(FrameID id,
Collection types,
Collection superclasses,
boolean loadDefaults)
createSlot
public Slot createSlot(FrameID id,
Collection types,
Collection superslots,
boolean loadDefaults)
createFacet
public Facet createFacet(FrameID id,
Collection directTypes,
boolean loadDefaultValues)
createSimpleInstance
public SimpleInstance createSimpleInstance(FrameID id,
Collection types,
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 from,
int to)
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)
moveDirectSubslot
public void moveDirectSubslot(Slot slot,
Slot subslot,
int index)
addDirectSuperslot
public void addDirectSuperslot(Slot slot,
Slot superslot)
removeDirectSuperslot
public void removeDirectSuperslot(Slot slot,
Slot superslot)
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()
replaceFrame
public void replaceFrame(Frame original,
Frame replacement)
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2010 Stanford University.