|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OntologyCaching
this is an interface that lets Project35 handle ontology sources that use caching.
it should only be used by classes that implement some form of the
OntologySource
interface. Project35's viewer classes will interrogate
ontology sources to see what other interfaces they implement. If they discover
the source has also implemented caching, they can render appropriate
controls such as an "update" button on the viewer. Caching should be disabled
if security is an issue.
Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.
Method Summary | |
---|---|
void |
enableCaching(boolean enableCaching)
establishes whether the ontology source will use caching or not. |
boolean |
isCachingEnabled()
determines whether caching is enabled. |
boolean |
isUpToDate()
determines whether an ontology source is current or not |
void |
setCacheDirectory(java.io.File cacheDirectory)
sets a cache directory which can be used to store the latest copy of an ontology data set |
void |
update()
causes the source to update itself so that it is current. |
Method Detail |
---|
boolean isUpToDate()
void setCacheDirectory(java.io.File cacheDirectory)
cacheDirectory
- a directory that can hold temporary files used by the
ontology sourceboolean isCachingEnabled()
void enableCaching(boolean enableCaching)
enableCaching
- "true" if the source should use caching. "false" if the
source should not use caching.void update()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |