Package thredds.catalog

Examples of thredds.catalog.InvCatalogImpl.check()


   */
  public int crawl(String catUrl, CancelTask task, PrintStream out, Object context) {
    InvCatalogFactory catFactory = InvCatalogFactory.getDefaultFactory(true);
    InvCatalogImpl cat = catFactory.readXML(catUrl);
    StringBuilder buff = new StringBuilder();
    boolean isValid = cat.check(buff, false);

    if (out != null) {
      out.println("catalog <" + cat.getName() + "> " + (isValid ? "is" : "is not") + " valid");
      out.println(" validation output=\n" + buff);
    }
View Full Code Here


    URI catalogURI = new URI(args[0]);
    InvCatalogFactory factory = new InvCatalogFactory("default", true);
    InvCatalogImpl catalog = (InvCatalogImpl) factory.readXML( catalogURI);
    StringBuilder buff = new StringBuilder();
    if (!catalog.check( buff)) {
         logger.error("Invalid catalog <'{}'> \n {}",
             catalogURI, buff.toString());
    } else {
      logger.info("Good, no error found!");
    }
View Full Code Here

      e.printStackTrace();
    }

    InvCatalogImpl catalog = (InvCatalogImpl) factory.readXML(cataURI);
    final StringBuilder buff = new StringBuilder();
    if (catalog.check(buff)) {

      for (String cata : catalogList) {
        // create
        InvCatalogRef ref = new InvCatalogRef(null,
            cata.substring(0, cata.lastIndexOf('.')), "1/"+ cata);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.