Overview | Package | Class | Tree | Deprecated | Index | Help
| Protege 3.4 rc2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## edu.stanford.smi.protege.model.framestore
Class FrameStoreAdapter

    java.lang.Object
      edu.stanford.smi.protege.model.framestore.AbstractFrameStore
          edu.stanford.smi.protege.model.framestore.FrameStoreAdapter

All Implemented Interfaces:
  FrameStore

Direct Known Subclasses:
  CleanDispatchFrameStore, DeleteSimplificationFrameStore, DeletionHookFrameStore, EventSinkFrameStore, FacetCheckingFrameStore, FrameCalculatorFrameStore, ImmutableNamesFrameStore

    public class FrameStoreAdapter

extends AbstractFrameStore

Field Summary

Fields inherited from interface edu.stanford.smi.protege.model.framestore.FrameStore
`UNLIMITED_MATCHES`

Constructor Summary
`FrameStoreAdapter()`

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` | `beginTransaction(String name, String appliedToFrameName)`
`boolean` | `commitTransaction()`
`Cls` | `createCls(FrameID id, Collection directTypes, Collection directSuperclasses, boolean loadDefaults)`
`Facet` | `createFacet(FrameID id, Collection directTypes, boolean loadDefaults)`
`SimpleInstance` | `createSimpleInstance(FrameID id, Collection directTypes, boolean loadDefaults)`
`Slot` | `createSlot(FrameID id, Collection directTypes, Collection directSuperslots, boolean loadDefaults)`
`void` | `deleteCls(Cls cls)` Delete a single leaf class.
`void` | `deleteFacet(Facet facet)`
`void` | `deleteSimpleInstance(SimpleInstance simpleInstance)`
`void` | `deleteSlot(Slot slot)`
`void` | `executeQuery(Query query, QueryCallback callback)` The executeQuery method allows for complex queries.
`int` | `getClsCount()`
`Set<Cls>` | `getClses()`
`Set<Cls>` | `getClsesWithAnyDirectTemplateSlotValue(Slot slot)`
`Set` | `getClsesWithDirectTemplateFacetValue(Slot slot, Facet facet, Object value)`
`Set` | `getClsesWithDirectTemplateSlotValue(Slot slot, Object value)`
`Set<Cls>` | `getClsesWithMatchingBrowserText(String value, Collection superclasses, int maxMatches)`
`Set` | `getClsesWithMatchingDirectTemplateFacetValue(Slot slot, Facet facet, String value, int maxMatches)`
`Set` | `getClsesWithMatchingDirectTemplateSlotValue(Slot slot, String value, int maxMatches)`
`List` | `getDirectDomain(Slot slot)`
`List<Instance>` | `getDirectInstances(Cls cls)`
`Set` | `getDirectlyOverriddenTemplateFacets(Cls cls, Slot slot)`
`Set` | `getDirectlyOverriddenTemplateSlots(Cls cls)`
`List` | `getDirectOwnSlotValues(Frame frame, Slot slot)`
`Set` | `getDirectOwnSlotValuesClosure(Frame frame, Slot slot)`
`int` | `getDirectOwnSlotValuesCount(Frame frame, Slot slot)`
`List<Cls>` | `getDirectSubclasses(Cls cls)`
`List` | `getDirectSubslots(Slot slot)`
`List<Cls>` | `getDirectSuperclasses(Cls cls)`
`List` | `getDirectSuperslots(Slot slot)`
`List` | `getDirectTemplateFacetValues(Cls cls, Slot slot, Facet facet)`
`List` | `getDirectTemplateSlots(Cls cls)`
`List` | `getDirectTemplateSlotValues(Cls cls, Slot slot)`
`List` | `getDirectTypes(Instance instance)`
`Set` | `getDomain(Slot slot)`
`List<AbstractEvent>` | `getEvents()`
`int` | `getFacetCount()`
`Set<Facet>` | `getFacets()`
`Frame` | `getFrame(FrameID id)`
`Frame` | `getFrame(String name)`
`int` | `getFrameCount()`
`String` | `getFrameName(Frame frame)`
`Set<Frame>` | `getFrames()`
`Set<Frame>` | `getFramesWithAnyDirectOwnSlotValue(Slot slot)`
`Set<Frame>` | `getFramesWithDirectOwnSlotValue(Slot slot, Object value)`
`Set<Frame>` | `getFramesWithMatchingDirectOwnSlotValue(Slot slot, String value, int maxMatches)`
`Set<Instance>` | `getInstances(Cls cls)`
`Set<Reference>` | `getMatchingReferences(String value, int maxMatches)`
`Set` | `getOverriddenTemplateFacets(Cls cls, Slot slot)`
`Set` | `getOverriddenTemplateSlots(Cls cls)`
`Set` | `getOwnFacets(Frame frame, Slot slot)`
`Collection` | `getOwnFacetValues(Frame frame, Slot slot, Facet facet)`
`Set<Slot>` | `getOwnSlots(Frame frame)`
`Collection` | `getOwnSlotValues(Frame frame, Slot slot)`
`Set<Reference>` | `getReferences(Object value)`
`int` | `getSimpleInstanceCount()`
`int` | `getSlotCount()`
`Set<Slot>` | `getSlots()`
`Set<Cls>` | `getSubclasses(Cls cls)`
`Set` | `getSubslots(Slot slot)`
`Set` | `getSuperclasses(Cls cls)`
`Set` | `getSuperslots(Slot slot)`
`Set<Facet>` | `getTemplateFacets(Cls cls, Slot slot)`
`Collection` | `getTemplateFacetValues(Cls cls, Slot slot, Facet facet)`
`Set` | `getTemplateSlots(Cls cls)`
`Collection` | `getTemplateSlotValues(Cls cls, Slot slot)`
`TransactionMonitor` | `getTransactionStatusMonitor()` Retrieves a transaction status monitor for transactions.
`Set` | `getTypes(Instance instance)`
`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` | `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 directType)`
`void` | `replaceFrame(Frame original, Frame replacement)`
`boolean` | `rollbackTransaction()`
`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.AbstractFrameStore
`close, getDelegate, getName, onSetDelegate, setDelegate, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### FrameStoreAdapter

    public FrameStoreAdapter()

Method Detail

### reinitialize

    public void reinitialize()

### getDirectTemplateSlots

    public List getDirectTemplateSlots(Cls cls)

### getDirectDomain

    public List getDirectDomain(Slot slot)

### getDomain

    public Set getDomain(Slot slot)

### moveDirectOwnSlotValue

    public void moveDirectOwnSlotValue(Frame frame,
                                       Slot slot,
                                       int from,
                                       int to)

### removeDirectTemplateSlot

    public void removeDirectTemplateSlot(Cls cls,
                                         Slot slot)

### moveDirectTemplateSlot

    public void moveDirectTemplateSlot(Cls cls,
                                       Slot slot,
                                       int index)

### addDirectSuperclass

    public void addDirectSuperclass(Cls cls,
                                    Cls superclass)

### removeDirectSuperslot

    public void removeDirectSuperslot(Slot slot,
                                      Slot superslot)

### 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)

### getDirectTemplateSlotValues

    public List getDirectTemplateSlotValues(Cls cls,
                                            Slot slot)

### getSuperslots

    public Set getSuperslots(Slot slot)

### getOwnSlots

    public Set<Slot> getOwnSlots(Frame frame)

### getInstances

    public Set<Instance> getInstances(Cls cls)

### getFramesWithDirectOwnSlotValue

    public Set<Frame> getFramesWithDirectOwnSlotValue(Slot slot,
                                                      Object value)

### getFramesWithAnyDirectOwnSlotValue

    public Set<Frame> getFramesWithAnyDirectOwnSlotValue(Slot slot)

### getFramesWithMatchingDirectOwnSlotValue

    public Set<Frame> getFramesWithMatchingDirectOwnSlotValue(Slot slot,
                                                              String value,
                                                              int maxMatches)

### getClsesWithDirectTemplateFacetValue

    public Set getClsesWithDirectTemplateFacetValue(Slot slot,
                                                    Facet facet,
                                                    Object value)

### getClsesWithMatchingDirectTemplateFacetValue

    public Set getClsesWithMatchingDirectTemplateFacetValue(Slot slot,
                                                            Facet facet,
                                                            String value,
                                                            int maxMatches)

### getClsesWithDirectTemplateSlotValue

    public Set getClsesWithDirectTemplateSlotValue(Slot slot,
                                                   Object value)

### getClsesWithAnyDirectTemplateSlotValue

    public Set<Cls> getClsesWithAnyDirectTemplateSlotValue(Slot slot)

### getClsesWithMatchingDirectTemplateSlotValue

    public Set getClsesWithMatchingDirectTemplateSlotValue(Slot slot,
                                                           String value,
                                                           int maxMatches)

### getDirectSuperclasses

    public List<Cls> getDirectSuperclasses(Cls cls)

### getTemplateSlotValues

    public Collection getTemplateSlotValues(Cls cls,
                                            Slot slot)

### getDirectTemplateFacetValues

    public List getDirectTemplateFacetValues(Cls cls,
                                             Slot slot,
                                             Facet facet)

### getFrameCount

    public int getFrameCount()

### getClsCount

    public int getClsCount()

### getSlotCount

    public int getSlotCount()

### getFacetCount

    public int getFacetCount()

### getSimpleInstanceCount

    public int getSimpleInstanceCount()

### getClses

    public Set<Cls> getClses()

### getTemplateFacets

    public Set<Facet> getTemplateFacets(Cls cls,
                                        Slot slot)

### getFrame

    public Frame getFrame(String name)

### getFrame

    public Frame getFrame(FrameID id)

### getOwnSlotValues

    public Collection getOwnSlotValues(Frame frame,
                                       Slot slot)

### getDirectOwnSlotValues

    public List getDirectOwnSlotValues(Frame frame,
                                       Slot slot)

### getDirectOwnSlotValuesCount

    public int getDirectOwnSlotValuesCount(Frame frame,
                                           Slot slot)

### getDirectInstances

    public List<Instance> getDirectInstances(Cls cls)

### getSubclasses

    public Set<Cls> getSubclasses(Cls cls)

### getSlots

    public Set<Slot> getSlots()

### getSuperclasses

    public Set getSuperclasses(Cls cls)

### getSubslots

    public Set getSubslots(Slot slot)

### setDirectTemplateFacetValues

    public void setDirectTemplateFacetValues(Cls cls,
                                             Slot slot,
                                             Facet facet,
                                             Collection values)

### createFacet

    public Facet createFacet(FrameID id,
                             Collection directTypes,
                             boolean loadDefaults)

### getDirectSubclasses

    public List<Cls> getDirectSubclasses(Cls cls)

### getFrames

    public Set<Frame> getFrames()

### setDirectTemplateSlotValues

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

### getTypes

    public Set getTypes(Instance instance)

### getTemplateSlots

    public Set getTemplateSlots(Cls cls)

### getTemplateFacetValues

    public Collection getTemplateFacetValues(Cls cls,
                                             Slot slot,
                                             Facet facet)

### 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)

### createSlot

    public Slot createSlot(FrameID id,
                           Collection directTypes,
                           Collection directSuperslots,
                           boolean loadDefaults)

### getDirectTypes

    public List getDirectTypes(Instance instance)

### getDirectSubslots

    public List getDirectSubslots(Slot slot)

### addDirectSuperslot

    public void addDirectSuperslot(Slot slot,
                                   Slot superslot)

### getEvents

    public List<AbstractEvent> getEvents()

### addDirectTemplateSlot

    public void addDirectTemplateSlot(Cls cls,
                                      Slot slot)

### setDirectOwnSlotValues

    public void setDirectOwnSlotValues(Frame frame,
                                       Slot slot,
                                       Collection values)

### createCls

    public Cls createCls(FrameID id,
                         Collection directTypes,
                         Collection directSuperclasses,
                         boolean loadDefaults)

### getFacets

    public Set<Facet> getFacets()

### executeQuery

    public void executeQuery(Query query,
                             QueryCallback callback)

  Description copied from interface: `FrameStore`
  The executeQuery method allows for complex queries. It is asynchronous so that in server-client mode the server knowledge base lock will not be held for an excessive amount of time. The contract specifies that the implementor must call one of the QueryCallback methods in a separate thread. This makes it possible for the caller to know how to retrieve the results in a synchronous way without worrying about deadlock.

### removeDirectType

    public void removeDirectType(Instance instance,
                                 Cls directType)

### getReferences

    public Set<Reference> getReferences(Object value)

### getClsesWithMatchingBrowserText

    public Set<Cls> getClsesWithMatchingBrowserText(String value,
                                                    Collection superclasses,
                                                    int maxMatches)

### getMatchingReferences

    public Set<Reference> getMatchingReferences(String value,
                                                int maxMatches)

### createSimpleInstance

    public SimpleInstance createSimpleInstance(FrameID id,
                                               Collection directTypes,
                                               boolean loadDefaults)

### addDirectType

    public void addDirectType(Instance instance,
                              Cls type)

### moveDirectType

    public void moveDirectType(Instance instance,
                               Cls type,
                               int index)

### getDirectSuperslots

    public List getDirectSuperslots(Slot slot)

### getFrameName

    public String getFrameName(Frame frame)

### getOwnFacets

    public Set getOwnFacets(Frame frame,
                            Slot slot)

### getOwnFacetValues

    public Collection getOwnFacetValues(Frame frame,
                                        Slot slot,
                                        Facet facet)

### getOverriddenTemplateSlots

    public Set getOverriddenTemplateSlots(Cls cls)

### getDirectlyOverriddenTemplateSlots

    public Set getDirectlyOverriddenTemplateSlots(Cls cls)

### getOverriddenTemplateFacets

    public Set getOverriddenTemplateFacets(Cls cls,
                                           Slot slot)

### getDirectlyOverriddenTemplateFacets

    public Set getDirectlyOverriddenTemplateFacets(Cls cls,
                                                   Slot slot)

### removeDirectTemplateFacetOverrides

    public void removeDirectTemplateFacetOverrides(Cls cls,
                                                   Slot slot)

### getDirectOwnSlotValuesClosure

    public Set getDirectOwnSlotValuesClosure(Frame frame,
                                             Slot slot)

### beginTransaction

    public boolean beginTransaction(String name)

### beginTransaction

    public boolean beginTransaction(String name,
                                    String appliedToFrameName)

### commitTransaction

    public boolean commitTransaction()

### rollbackTransaction

    public boolean rollbackTransaction()

### getTransactionStatusMonitor

    public TransactionMonitor getTransactionStatusMonitor()

  Description copied from interface: `FrameStore`
  Retrieves a transaction status monitor for transactions. If this call returns null then it means that transactions are not supported.

  Returns:
    A TransactionMonitor object that tracks the status of transactions.

### replaceFrame

    public void replaceFrame(Frame original,
                             Frame replacement)

Overview | Package | Class | Tree | Deprecated | Index | Help
| Protege 3.4 rc2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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