Package jsky.catalog.vo

Examples of jsky.catalog.vo.VoCatalogDirectory


        // Determine current VO registries being used: map URL to display name
        AstroCatConfig config = AstroCatConfig.getConfigFile();
        Map<URI, String> map = new HashMap<URI, String>();
        for (Catalog cat : config.getCatalogs()) {
            if (cat instanceof VoCatalogDirectory) {
                VoCatalogDirectory dir = (VoCatalogDirectory) cat;
                URI uri = dir.getURL().toURI();
                String name = dir.getName();
                if (name == null) {
                    name = "";
                }
                map.put(uri, name);
                set.add(uri);
View Full Code Here


        // Remove any unchecked catalog dirs from the main catalog list
        final AstroCatConfig config = AstroCatConfig.getConfigFile();
        for (Catalog cat : new ArrayList<Catalog>(config.getCatalogs())) {
            if (cat instanceof VoCatalogDirectory) {
                VoCatalogDirectory catDir = (VoCatalogDirectory) cat;
                if (map.get(catDir.getURL().toString()) == null) {
                    config.removeCatalog(cat);
                }
            }
        }
View Full Code Here

TOP

Related Classes of jsky.catalog.vo.VoCatalogDirectory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.