Protege 2.1

edu.stanford.smi.protege.storage.jdbc.framedb
Class FrameDB

java.lang.Object
  extended byedu.stanford.smi.protege.storage.jdbc.framedb.FrameDB

public class FrameDB
extends Object

A simple custom database for storing frames

Author:
Ray Fergerson

Constructor Summary
FrameDB()
           
FrameDB(int initSize)
           
 
Method Summary
 void addValue(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate, Object value)
           
 void addValueAt(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate, Object value, int position)
           
 void addValues(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate, Collection values)
           
 int countValues(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate)
           
static boolean equals(Object o1, Object o2)
           
 Collection getFrames()
           
 Collection getRecords()
           
 List getRecords(Object value)
           
 Collection getSlotRecords(FrameID slot)
           
 List getValues(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate)
           
 boolean hasValue(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate, Object value)
           
 void removeFacet(FrameID frame)
           
 void removeFrame(FrameID frame)
           
 void removeRecord(Record record)
           
 void removeSingleValue(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate, Object value)
           
 void removeSlot(FrameID frame)
           
 void removeUserRecords()
           
 void removeValue(Object o)
           
 Object removeValueAt(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate, int position)
           
 void removeValues(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate)
           
 void replace(FrameID from, FrameID to)
           
 void setValues(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate, Collection newValues)
           
 void setValues(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate, Object newValue)
           
 void updateValue(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate, Object oldValue, Object newValue)
           
 void updateValueAt(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate, int position, Object newValue)
           
 void updateValuePosition(FrameID frame, FrameID slot, FrameID facet, boolean isTemplate, int oldIndex, int newIndex)
          old index is the index of the item to move before it is moved new index is the index that the item will have after it is moved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameDB

public FrameDB()

FrameDB

public FrameDB(int initSize)
Method Detail

addValue

public void addValue(FrameID frame,
                     FrameID slot,
                     FrameID facet,
                     boolean isTemplate,
                     Object value)

addValueAt

public void addValueAt(FrameID frame,
                       FrameID slot,
                       FrameID facet,
                       boolean isTemplate,
                       Object value,
                       int position)

addValues

public void addValues(FrameID frame,
                      FrameID slot,
                      FrameID facet,
                      boolean isTemplate,
                      Collection values)

countValues

public int countValues(FrameID frame,
                       FrameID slot,
                       FrameID facet,
                       boolean isTemplate)

getFrames

public Collection getFrames()

getRecords

public Collection getRecords()

getRecords

public List getRecords(Object value)

getSlotRecords

public Collection getSlotRecords(FrameID slot)

getValues

public List getValues(FrameID frame,
                      FrameID slot,
                      FrameID facet,
                      boolean isTemplate)

hasValue

public boolean hasValue(FrameID frame,
                        FrameID slot,
                        FrameID facet,
                        boolean isTemplate,
                        Object value)

removeFacet

public void removeFacet(FrameID frame)

removeFrame

public void removeFrame(FrameID frame)

removeRecord

public void removeRecord(Record record)

removeSingleValue

public void removeSingleValue(FrameID frame,
                              FrameID slot,
                              FrameID facet,
                              boolean isTemplate,
                              Object value)

removeSlot

public void removeSlot(FrameID frame)

removeUserRecords

public void removeUserRecords()

removeValue

public void removeValue(Object o)

removeValueAt

public Object removeValueAt(FrameID frame,
                            FrameID slot,
                            FrameID facet,
                            boolean isTemplate,
                            int position)

removeValues

public void removeValues(FrameID frame,
                         FrameID slot,
                         FrameID facet,
                         boolean isTemplate)

replace

public void replace(FrameID from,
                    FrameID to)

equals

public static boolean equals(Object o1,
                             Object o2)

setValues

public void setValues(FrameID frame,
                      FrameID slot,
                      FrameID facet,
                      boolean isTemplate,
                      Object newValue)

setValues

public void setValues(FrameID frame,
                      FrameID slot,
                      FrameID facet,
                      boolean isTemplate,
                      Collection newValues)

updateValue

public void updateValue(FrameID frame,
                        FrameID slot,
                        FrameID facet,
                        boolean isTemplate,
                        Object oldValue,
                        Object newValue)

updateValueAt

public void updateValueAt(FrameID frame,
                          FrameID slot,
                          FrameID facet,
                          boolean isTemplate,
                          int position,
                          Object newValue)

updateValuePosition

public void updateValuePosition(FrameID frame,
                                FrameID slot,
                                FrameID facet,
                                boolean isTemplate,
                                int oldIndex,
                                int newIndex)
old index is the index of the item to move before it is moved new index is the index that the item will have after it is moved


Protege 2.1

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