|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.xml.XmlObjectStore
ucar.unidata.idv.IdvObjectStore
public class IdvObjectStore
Provides some IDV specific extensions to the XmlObjectStore. Creates the users local .unidata/idv directory, jython cache dir, etc.
| Field Summary | |
|---|---|
static String |
DIR_BUNDLES
The subdirectory name for holding favorites bundles |
static String |
DIR_SAVEDBUNDLES
Where we save bundles to |
static String |
PROP_TMPDIR
tmp dir |
| Fields inherited from class ucar.unidata.xml.XmlObjectStore |
|---|
tmpFiles |
| Constructor Summary | |
|---|---|
IdvObjectStore(IntegratedDataViewer idv,
String systemName,
String appName,
XmlEncoder encoder,
String overrideUserDirectory)
Create the store. |
|
| Method Summary | |
|---|---|
Object |
get(String key)
Return the obejct held in the table identified by the given key. |
String |
getDataSourcesDir()
Return the full path to the directory where we save the display control templates |
String |
getDisplayTemplateDir()
Return the full path to the directory where we save the display control templates |
String |
getJythonCacheDir()
Create, if needed, and return the directory to use for the jython cache. |
String |
getLocalBundlesDir()
Return the full path to the directory where we save the user's local bundles |
boolean |
getMadeUserDirectory()
Get the MadeUserDirectory property. |
String |
getPluginsDir()
Return the full path to the directory where we look for plugins |
File |
getSavedBundlesDir()
Return the full path to the directory where we save the user's local bundles |
String |
getSystemDirectory()
Get the path to the system directory. |
File |
getUserDirectory()
Get the users local directory. |
protected Hashtable |
processTable(Hashtable newTable)
Overrwrite base class method to tweak any old property names |
void |
setOverrideDirectory(File newDirectory)
Set the override directory. |
| Methods inherited from class ucar.unidata.xml.XmlObjectStore |
|---|
append, cleanupTmpDirectory, cleanupTmpFiles, get, get, get, get, get, get, get, get, get, get, get, getEncodedFile, getEncoder, getFileContents, getTmpFile, getUniqueTmpDirectory, getUniqueTmpFile, getUserTmpDirectory, init, main, put, put, put, put, put, put, put, put, put, putEncodedFile, putFile, remove, save, saveIfNeeded, setEncoder, setTmpDir, userDirectoryOk |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROP_TMPDIR
public static final String DIR_BUNDLES
public static final String DIR_SAVEDBUNDLES
| Constructor Detail |
|---|
public IdvObjectStore(IntegratedDataViewer idv,
String systemName,
String appName,
XmlEncoder encoder,
String overrideUserDirectory)
idv - The IntegratedDataViewer for this object storesystemName - The name of the top level directory (e.g., .unidata/idv)appName - The name of the subdir (e.g., DefaultIdv)encoder - The encoder to use for writing out and reading in the storeoverrideUserDirectory - If non-null this overrides wehre we look for
the user's home directory. Else we use the user.home system property.| Method Detail |
|---|
public boolean getMadeUserDirectory()
public String getSystemDirectory()
protected Hashtable processTable(Hashtable newTable)
processTable in class XmlObjectStorenewTable - The table to process
public String getJythonCacheDir()
public File getUserDirectory()
getUserDirectory in class XmlObjectStorepublic void setOverrideDirectory(File newDirectory)
newDirectory - dir to usepublic String getDisplayTemplateDir()
public String getDataSourcesDir()
public String getPluginsDir()
public String getLocalBundlesDir()
public File getSavedBundlesDir()
public Object get(String key)
get in class XmlObjectStorekey - The object's key.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||