ui/src/main/java/ucar/nc2/ui/widget/TextGetPutPane.java
void validate(String urlString) {
      if (urlString == null) return;
      URI uri;
      try {
        uri = new URI(urlString);
      }
      catch (URISyntaxException e) {
        javax.swing.JOptionPane.showMessageDialog(null, "URISyntaxException on URL (" +
            urlString + ") " + e.getMessage() + "\n");
        return;
      }
      String contents = getText();
      //boolean isCatalog = contents.indexOf("queryCapability") < 0;

      ByteArrayInputStream is = new ByteArrayInputStream(contents.getBytes(CDM.utf8Charset));

      try {
        CatalogBuilder catFactory = new CatalogBuilder();
        Catalog cat = catFactory.buildFromLocation(urlString, null);
        boolean isValid = !catFactory.hasFatalError();

       javax.swing.JOptionPane.showMessageDialog(this,
          "Catalog Validation = " + isValid + "\n" +  catFactory.getErrorMessage());

      } catch (IOException e) {
        e.printStackTrace();
      }


    }
void validate(String urlString) {
      if (urlString == null) return;
      URI uri;
      try {
        uri = new URI(urlString);
      }
      catch (URISyntaxException e) {
        javax.swing.JOptionPane.showMessageDialog(null, "URISyntaxException on URL (" +
            urlString + ") " + e.getMessage() + "\n");
        return;
      }
      String contents = getText();
      //boolean isCatalog = contents.indexOf("queryCapability") < 0;

      ByteArrayInputStream is = new ByteArrayInputStream(contents.getBytes(CDM.utf8Charset));

      try {
        CatalogBuilder catFactory = new CatalogBuilder();
        Catalog cat = catFactory.buildFromLocation(urlString, null);
        boolean isValid = !catFactory.hasFatalError();

       javax.swing.JOptionPane.showMessageDialog(this,
          "Catalog Validation = " + isValid + "\n" +  catFactory.getErrorMessage());

      } catch (IOException e) {
        e.printStackTrace();
      }


    }
void validate ( String urlString ) { if ( urlString == null ) return ; URI uri ; try { uri = new URI ( urlString ) ; } catch ( URISyntaxException e ) { javax . swing . JOptionPane . showMessageDialog ( null , "URISyntaxException on URL (" + urlString + ") " + e . getMessage ( ) + "\n" ) ; return ; } String contents = getText ( ) ; //boolean isCatalog = contents.indexOf("queryCapability") < 0; ByteArrayInputStream is = new ByteArrayInputStream ( contents . getBytes ( CDM . utf8Charset ) ) ; try { CatalogBuilder catFactory = new CatalogBuilder ( ) ; Catalog cat = catFactory . buildFromLocation ( urlString , null ) ; boolean isValid = ! catFactory . hasFatalError ( ) ; javax . swing . JOptionPane . showMessageDialog ( this , "Catalog Validation = " + isValid + "\n" + catFactory . getErrorMessage ( ) ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
private DqcFactory dqcFactory = null;
private DqcFactory dqcFactory = null ;