public interface CatalogDirectory extends Catalog, TreeModel
ARCHIVE, CATALOG, DIRECTORY, IMAGE_SERVER, LOCAL, NAME_SERVER
Modifier and Type | Method and Description |
---|---|
void |
addCatalog(Catalog cat)
Add the given catalog to the catalog list.
|
Catalog |
getCatalog(int i)
Return the ith catalog in the directory
|
Catalog |
getCatalog(String catalogName)
Return the named catalog, if found in this directory
|
TableQueryResult |
getCatalogList()
Return a memory catalog describing the list of catalogs in the directory
|
List |
getNameServers()
Return a list of name servers (Catalogs with type
equal to "namesvr") to use to resolve astronomical object names.
|
int |
getNumCatalogs()
Return the number of catalogs in this directory
|
Catalog[] |
getPath(Catalog cat)
Return an array of catalogs describing the path to the given catalog or catalog directory.
|
int |
indexOf(Catalog cat)
Return the index of the given catalog in the directory
|
CatalogDirectory |
loadSubDir(URL url)
Attempt to read a catalog subdirectory from the given URL and insert
the object for it in the catalog tree.
|
void |
moveCatalog(Catalog cat,
boolean up)
Move the the given catalog up or down in the list.
|
void |
moveCatalogToEnd(Catalog cat,
boolean up)
Move the the given catalog all the way up or down in the list, as far as possible.
|
CatalogDirectory |
reload()
Reload the catalog directory and return the new (or existing) object for it.
|
void |
removeCatalog(Catalog cat)
Remove the given catalog from the catalog list.
|
void |
replaceCatalog(Catalog oldCat,
Catalog newCat)
Replace the given old catalog with the given new catalog in the catalog list.
|
void |
save()
Save the contents of this catalog directory to make it permanent
(for example, in a config file under ~/.jsky/...).
|
clone, getDescription, getDocURL, getId, getName, getNumParams, getParamDesc, getParamDesc, getParent, getPath, getTitle, getType, isImageServer, isLocal, query, setName, setParent, setRegionArgs
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
int getNumCatalogs()
Catalog getCatalog(int i)
Catalog getCatalog(String catalogName)
int indexOf(Catalog cat)
TableQueryResult getCatalogList()
Catalog[] getPath(Catalog cat)
void addCatalog(Catalog cat)
void removeCatalog(Catalog cat)
void replaceCatalog(Catalog oldCat, Catalog newCat)
void moveCatalog(Catalog cat, boolean up)
void moveCatalogToEnd(Catalog cat, boolean up)
void save()
CatalogDirectory reload()
CatalogDirectory loadSubDir(URL url)
RuntimeException
- if the catalog directory could not be createdList getNameServers()
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.