edu.stanford.smi.protegex.owl.model.framestore
Class OWLFrameFactoryInvocationHandler
java.lang.Object
edu.stanford.smi.protege.model.framestore.AbstractFrameStoreInvocationHandler
edu.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
Fields inherited from class edu.stanford.smi.protege.model.framestore.AbstractFrameStoreInvocationHandler |
|
Methods inherited from class edu.stanford.smi.protege.model.framestore.AbstractFrameStoreInvocationHandler |
getDelegate, getInstance, handleClose, handleReinitialize, invoke, invoke, invoke, isModification, isQuery, newInstance, newInstance, setDelegate, toString |
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
OWLFrameFactoryInvocationHandler
public OWLFrameFactoryInvocationHandler()
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