|
Protege 3.4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NarrowFrameStore
Method Summary | |
---|---|
void |
addValues(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
Collection values)
|
boolean |
beginTransaction(String name)
|
void |
close()
|
boolean |
commitTransaction()
|
void |
deleteFrame(Frame frame)
|
void |
executeQuery(Query query,
QueryCallback callback)
The executeQuery method allows for complex queries. |
Set |
getClosure(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate)
|
int |
getClsCount()
|
NarrowFrameStore |
getDelegate()
|
int |
getFacetCount()
|
Frame |
getFrame(FrameID id)
|
int |
getFrameCount()
|
Set<Frame> |
getFrames()
|
Set<Frame> |
getFrames(Slot slot,
Facet facet,
boolean isTemplate,
Object value)
|
Set<Frame> |
getFramesWithAnyValue(Slot slot,
Facet facet,
boolean isTemplate)
|
Set<Frame> |
getMatchingFrames(Slot slot,
Facet facet,
boolean isTemplate,
String value,
int maxMatches)
|
Set<Reference> |
getMatchingReferences(String value,
int maxMatches)
|
String |
getName()
The Narrow Frame store has a standard set/get name interface. |
Set<Reference> |
getReferences(Object value)
|
int |
getSimpleInstanceCount()
|
int |
getSlotCount()
|
TransactionMonitor |
getTransactionStatusMonitor()
Retrieves a transaction status monitor for transactions. |
List |
getValues(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate)
Obtains the values of a slot/facet to a frame. |
int |
getValuesCount(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate)
|
void |
moveValue(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
int from,
int to)
Retrieves the list of values associated with the (frame, slot, facet, isTemplate) combination and moves the item at the position from to the position to. |
void |
reinitialize()
|
void |
removeValue(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
Object value)
|
void |
replaceFrame(Frame frame)
A complete hack to work around problems with the java packages feature |
void |
replaceFrame(Frame original,
Frame replacement)
Replace all references of the frame original with the frame replacement. |
boolean |
rollbackTransaction()
|
void |
setName(String name)
The Narrow Frame store has a standard set/get name interface. |
void |
setValues(Frame frame,
Slot slot,
Facet facet,
boolean isTemplate,
Collection values)
|
Method Detail |
---|
String getName()
void setName(String name)
name
- - the name of the Narrow Frame Store.NarrowFrameStore getDelegate()
int getFrameCount()
int getClsCount()
int getSlotCount()
int getFacetCount()
int getSimpleInstanceCount()
Set<Frame> getFrames()
Frame getFrame(FrameID id)
List getValues(Frame frame, Slot slot, Facet facet, boolean isTemplate)
frame
- - the frameslot
- the slotfacet
- the facet. If this is non-null then we are looking at a facet value.isTemplate
- to be determined
int getValuesCount(Frame frame, Slot slot, Facet facet, boolean isTemplate)
void addValues(Frame frame, Slot slot, Facet facet, boolean isTemplate, Collection values)
void moveValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, int from, int to)
frame
- the frame (as used in getValues)slot
- the slot (as used in getValues)facet
- the facet (as used in getValues)isTemplate
- whether it is a template (as used in getValues)from
- the starting position of a valueto
- the position of the value after this callvoid removeValue(Frame frame, Slot slot, Facet facet, boolean isTemplate, Object value)
void setValues(Frame frame, Slot slot, Facet facet, boolean isTemplate, Collection values)
Set<Frame> getFrames(Slot slot, Facet facet, boolean isTemplate, Object value)
Set<Frame> getFramesWithAnyValue(Slot slot, Facet facet, boolean isTemplate)
Set<Frame> getMatchingFrames(Slot slot, Facet facet, boolean isTemplate, String value, int maxMatches)
slot
- the slotfacet
- the facetisTemplate
- whether we are looking at template valuesvalue
- the regexp to use for matchingmaxMatches
- the max number of matches (-1 for get all)
KnowledgeBase.getMatchingFrames
Set<Reference> getReferences(Object value)
Set<Reference> getMatchingReferences(String value, int maxMatches)
void executeQuery(Query query, QueryCallback callback)
Query
- the query to be executed.QueryCallback
- the callback that receives the results of the query.void deleteFrame(Frame frame)
void close()
Set getClosure(Frame frame, Slot slot, Facet facet, boolean isTemplate)
void replaceFrame(Frame frame)
boolean beginTransaction(String name)
boolean commitTransaction()
boolean rollbackTransaction()
TransactionMonitor getTransactionStatusMonitor()
void reinitialize()
void replaceFrame(Frame original, Frame replacement)
original
- the frame in the database being replacedreplacement
- the replacement frame that does not exist in the database before the call.
|
Protege 3.4.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |