edu.stanford.smi.protegex.owl.model.framestore
Class OWLFrameFactoryInvocationHandler

java.lang.Object
  extended byedu.stanford.smi.protege.model.framestore.AbstractFrameStoreInvocationHandler
      extended byedu.stanford.smi.protegex.owl.model.framestore.OWLFrameFactoryInvocationHandler
All Implemented Interfaces:
InvocationHandler

public class OWLFrameFactoryInvocationHandler
extends edu.stanford.smi.protege.model.framestore.AbstractFrameStoreInvocationHandler

A FrameStoreInvocationHandler that uses a DefaultOWLFrameFactory to replace all references to a given frame with new ones. This is needed for the OWL database backend to solve a bootstrapping recursion problem.

Author:
Holger Knublauch

Field Summary
private  OWLJavaFactory ff
           
private  OWLNamedClass owlNamedClassClass
           
private static OWLFrameFactoryInvocationHandler recentInstance
           
private static Set systemClses
           
private  edu.stanford.smi.protege.model.Cls thingCls
           
private  OWLJavaFactoryUpdater updater
           
 
Fields inherited from class edu.stanford.smi.protege.model.framestore.AbstractFrameStoreInvocationHandler
 
Constructor Summary
OWLFrameFactoryInvocationHandler()
           
 
Method Summary
private  Object convert(Object o)
           
 Collection convertCollection(Collection values)
           
private  edu.stanford.smi.protege.util.AbstractEvent convertEvent(edu.stanford.smi.protege.util.AbstractEvent event)
           
 edu.stanford.smi.protege.model.Instance convertInstance(edu.stanford.smi.protege.model.Instance instance)
           
private  edu.stanford.smi.protege.model.Reference convertReference(edu.stanford.smi.protege.model.Reference reference)
           
protected  Object handleInvoke(Method method, Object[] args)
           
private  boolean isDefaultNamedCls(edu.stanford.smi.protege.model.Instance instance)
           
static void setFrameFactory(OWLJavaFactory ff)
          Sets the FrameFactory that shall be used for frame generation in the most recently created OWLFrameFactoryInvocationHandler.
 
Methods inherited from class edu.stanford.smi.protege.model.framestore.AbstractFrameStoreInvocationHandler
getDelegate, getInstance, handleClose, handleReinitialize, invoke, invoke, invoke, isModification, isQuery, newInstance, newInstance, setDelegate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ff

private OWLJavaFactory ff

owlNamedClassClass

private OWLNamedClass owlNamedClassClass

recentInstance

private static OWLFrameFactoryInvocationHandler recentInstance

systemClses

private static Set systemClses

thingCls

private edu.stanford.smi.protege.model.Cls thingCls

updater

private OWLJavaFactoryUpdater updater
Constructor Detail

OWLFrameFactoryInvocationHandler

public OWLFrameFactoryInvocationHandler()
Method Detail

convert

private Object convert(Object o)

convertCollection

public Collection convertCollection(Collection values)

convertEvent

private edu.stanford.smi.protege.util.AbstractEvent convertEvent(edu.stanford.smi.protege.util.AbstractEvent event)

convertInstance

public edu.stanford.smi.protege.model.Instance convertInstance(edu.stanford.smi.protege.model.Instance instance)

convertReference

private edu.stanford.smi.protege.model.Reference convertReference(edu.stanford.smi.protege.model.Reference reference)

handleInvoke

protected Object handleInvoke(Method method,
                              Object[] args)

isDefaultNamedCls

private boolean isDefaultNamedCls(edu.stanford.smi.protege.model.Instance instance)

setFrameFactory

public static final void setFrameFactory(OWLJavaFactory ff)
Sets the FrameFactory that shall be used for frame generation in the most recently created OWLFrameFactoryInvocationHandler.

Parameters:
ff - the (subclass of) OWLJavaFactory