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

java.lang.Object
  extended byedu.stanford.smi.protegex.owl.repository.impl.AbstractLocalRepository
      extended byedu.stanford.smi.protegex.owl.repository.impl.LocalFolderRepository
          extended byedu.stanford.smi.protegex.owl.repository.impl.RelativeFolderRepository
All Implemented Interfaces:
Repository

public class RelativeFolderRepository
extends LocalFolderRepository

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

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


Field Summary
private  String relativeURL
           
 
Fields inherited from class edu.stanford.smi.protegex.owl.repository.impl.LocalFolderRepository
RECURSIVE_FLAG
 
Fields inherited from class edu.stanford.smi.protegex.owl.repository.impl.AbstractLocalRepository
 
Constructor Summary
RelativeFolderRepository(URL baseURL, String relativeURL)
           
RelativeFolderRepository(URL baseURL, String relativeURL, boolean forceReadOnly)
           
 
Method Summary
 String getRepositoryDescription()
          Gets a description of the type of the repository.
 String getRepositoryDescriptor()
          Gets the descriptor for this repository.
private static URI getURI(URL baseURL, String relativeURL)
           
private static String stripQuery(String relativeURL)
           
 
Methods inherited from class edu.stanford.smi.protegex.owl.repository.impl.LocalFolderRepository
refresh
 
Methods inherited from class edu.stanford.smi.protegex.owl.repository.impl.AbstractLocalRepository
contains, getFile, getInputStream, getOntologies, getOntologyLocationDescription, getOutputStream, isForceReadOnly, isSystem, isWritable, processFile, putOntology, setForceReadOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

relativeURL

private String relativeURL
Constructor Detail

RelativeFolderRepository

public RelativeFolderRepository(URL baseURL,
                                String relativeURL)
                         throws MalformedURLException,
                                URISyntaxException

RelativeFolderRepository

public RelativeFolderRepository(URL baseURL,
                                String relativeURL,
                                boolean forceReadOnly)
                         throws MalformedURLException,
                                URISyntaxException
Method Detail

getURI

private static URI getURI(URL baseURL,
                          String relativeURL)
                   throws MalformedURLException,
                          URISyntaxException
Throws:
MalformedURLException
URISyntaxException

stripQuery

private static String stripQuery(String relativeURL)

getRepositoryDescriptor

public String getRepositoryDescriptor()
Description copied from interface: Repository
Gets the descriptor for this repository. This is used to serialise the repository in a list of the available repositories.

Specified by:
getRepositoryDescriptor in interface Repository
Overrides:
getRepositoryDescriptor in class LocalFolderRepository

getRepositoryDescription

public String getRepositoryDescription()
Description copied from interface: Repository
Gets a description of the type of the repository. For example, "Local folder".

Specified by:
getRepositoryDescription in interface Repository
Overrides:
getRepositoryDescription in class LocalFolderRepository