edu.stanford.smi.protegex.owl.repository.impl
Class LocalFileRepositoryFactoryPlugin

java.lang.Object
  extended byedu.stanford.smi.protegex.owl.repository.impl.LocalFileRepositoryFactoryPlugin
All Implemented Interfaces:
RepositoryFactoryPlugin

public class LocalFileRepositoryFactoryPlugin
extends Object
implements RepositoryFactoryPlugin

User: matthewhorridge
The University Of Manchester
Medical Informatics Group
Date: Sep 22, 2005

matthew.horridge@cs.man.ac.uk
www.cs.man.ac.uk/~horridgm


Field Summary
 
Fields inherited from interface edu.stanford.smi.protegex.owl.repository.factory.RepositoryFactoryPlugin
PLUGIN_TYPE
 
Constructor Summary
LocalFileRepositoryFactoryPlugin()
           
 
Method Summary
 Repository createRepository(OWLModel model, String s)
          Creates a repository from the specified repository descriptor.
 boolean isSuitable(OWLModel model, String s)
          Determines if this plugin can create the appropriate repository from the specified String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalFileRepositoryFactoryPlugin

public LocalFileRepositoryFactoryPlugin()
Method Detail

isSuitable

public boolean isSuitable(OWLModel model,
                          String s)
Description copied from interface: RepositoryFactoryPlugin
Determines if this plugin can create the appropriate repository from the specified String.

Specified by:
isSuitable in interface RepositoryFactoryPlugin
Parameters:
s - The repository descriptor (This is typically a URI)
Returns:
true if the plugin can create an appropriate repository given the specified repository descriptor, or false if the plugin cannot create the appropriate repository.

createRepository

public Repository createRepository(OWLModel model,
                                   String s)
Description copied from interface: RepositoryFactoryPlugin
Creates a repository from the specified repository descriptor.

Specified by:
createRepository in interface RepositoryFactoryPlugin
Parameters:
model -
s - The repository descriptor.
Returns:
A Repository that is based on the specified repository descriptor.