|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protegex.owl.repository.impl.FTPRepository
User: matthewhorridge
The University Of Manchester
Medical Informatics Group
Date: Oct 3, 2005
Field Summary | |
private URI |
ftpURI
|
private File |
localCopy
|
private URI |
ontologyName
|
private static FTPRepositoryPasswordProvider |
passwordProvider
|
private URI |
projectDirectory
|
Constructor Summary | |
FTPRepository(URI ftpURI,
URI projectDirectory)
|
Method Summary | |
boolean |
contains(URI ontologyName)
Determines if the repository contains the specified ontology. |
void |
ftpGet()
|
void |
ftpPut()
|
InputStream |
getInputStream(URI ontologyName)
Gets an inputstream to read the specified ontology from |
Collection |
getOntologies()
Gets the name of the ontologies that this repository contains. |
String |
getOntologyLocationDescription(URI ontologyName)
Gets a description of where the specified ontology is located. |
OutputStream |
getOutputStream(URI ontologyName)
Gets an output stream which can be used to write changes to the specified ontology. |
String |
getRepositoryDescription()
Gets a description of the type of the repository. |
String |
getRepositoryDescriptor()
Gets the descriptor for this repository. |
boolean |
isSystem()
Determines if the ontology repository is a system repository. |
boolean |
isWritable(URI ontologyName)
Determines if the specified ontology is writable. |
static void |
main(String[] args)
|
void |
refresh()
Causes the repository to contain the latest information. |
static void |
setFTPRepositoryPasswordProvider(FTPRepositoryPasswordProvider provider)
|
private void |
setLocalFile()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private URI ftpURI
private URI projectDirectory
private File localCopy
private URI ontologyName
private static FTPRepositoryPasswordProvider passwordProvider
Constructor Detail |
public FTPRepository(URI ftpURI, URI projectDirectory)
Method Detail |
public boolean contains(URI ontologyName)
Repository
contains
in interface Repository
ontologyName
- The name of the ontology.private void setLocalFile()
public void ftpGet()
public void ftpPut()
public void refresh()
Repository
refresh
in interface Repository
public Collection getOntologies()
Repository
getOntologies
in interface Repository
Collection
containing
URI
s.public InputStream getInputStream(URI ontologyName) throws IOException
Repository
getInputStream
in interface Repository
ontologyName
- The name of the ontology.
InputStream
to read the ontology
from, or null
if the repository does not
contain the ontology or the ontology cannot be retrieved.
IOException
public boolean isWritable(URI ontologyName)
Repository
isWritable
in interface Repository
ontologyName
-
true
if the ontology is writable,
or false
if the ontology is not writable.public OutputStream getOutputStream(URI ontologyName) throws IOException
Repository
getOutputStream
in interface Repository
ontologyName
- The ontology to be written
OutputStream
that can be used to
write changes to the ontology, or null
if the
ontology is not writable.
IOException
public boolean isSystem()
Repository
isSystem
in interface Repository
public String getRepositoryDescription()
Repository
getRepositoryDescription
in interface Repository
public String getOntologyLocationDescription(URI ontologyName)
Repository
getOntologyLocationDescription
in interface Repository
ontologyName
- The name of the ontology.
String
description of the location of
the ontology, for example, "file:/Users/Blah/Blah/Blah". This
return value will be an empty String
if the repository
does not contain the specified ontology.public String getRepositoryDescriptor()
Repository
getRepositoryDescriptor
in interface Repository
public static void setFTPRepositoryPasswordProvider(FTPRepositoryPasswordProvider provider)
public static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |