Examples of Catalog


Examples of mf.org.apache.xml.resolver.Catalog

      }
    } catch (SAXException e) {
      // nop;
    }

    Catalog catalog = reader.getCatalog();

    for (int count = 0; count < catalogFiles.size(); count++) {
      String file = (String) catalogFiles.elementAt(count);
      catalog.parseCatalog(file);
    }

    XParseError xpe = new XParseError(showErrors, showWarnings);
    xpe.setMaxMessages(maxErrs);
    reader.setErrorHandler(xpe);
View Full Code Here

Examples of mf.org.apache.xml.resolver.Catalog

   * Get a new catalog instance.
   *
   * This method always returns a new instance of the underlying catalog class.
   */
  public Catalog getPrivateCatalog() {
    Catalog catalog = staticCatalog;

    if (useStaticCatalog == null) {
      useStaticCatalog = new Boolean(getUseStaticCatalog());
    }

    if (catalog == null || !useStaticCatalog.booleanValue()) {

      try {
  String catalogClassName = getCatalogClassName();

  if (catalogClassName == null) {
    catalog = new Catalog();
  } else {
    try {
      catalog = (Catalog) Class.forName(catalogClassName).newInstance();
    } catch (ClassNotFoundException cnfe) {
      debug.message(1,"Catalog class named '"
        + catalogClassName
        + "' could not be found. Using default.");
      catalog = new Catalog();
    } catch (ClassCastException cnfe) {
      debug.message(1,"Class named '"
        + catalogClassName
        + "' is not a Catalog. Using default.");
      catalog = new Catalog();
    }
  }

  catalog.setCatalogManager(this);
  catalog.setupReaders();
  catalog.loadSystemCatalogs();
      } catch (Exception ex) {
  ex.printStackTrace();
      }

      if (useStaticCatalog.booleanValue()) {
View Full Code Here

Examples of mf.org.apache.xml.resolver.Catalog

   *
   * If this manager uses static catalogs, the same static catalog will
   * always be returned. Otherwise a new catalog will be returned.
   */
  public Catalog getCatalog() {
    Catalog catalog = staticCatalog;

    if (useStaticCatalog == null) {
      useStaticCatalog = new Boolean(getUseStaticCatalog());
    }

View Full Code Here

Examples of mf.org.apache.xml.resolver.Catalog

     * parsed immediately. The others will be queued and read if
     * they are needed later.
     */
    private void parseCatalogs () throws IOException {
        if (fCatalogsList != null) {
            fCatalog = new Catalog(fResolverCatalogManager);
            attachReaderToCatalog(fCatalog);
            for (int i = 0; i < fCatalogsList.length; ++i) {
                String catalog = fCatalogsList[i];
                if (catalog != null && catalog.length() > 0) {
                    fCatalog.parseCatalog(catalog);
View Full Code Here

Examples of nom.Catalog

      s.setAnStudiu(anStudiuTest);
      s.setEmail(emailTest);
      s.setNrMatricol(String.valueOf(i));
      s.setNume(numeTest + String.valueOf(i));
      s.setPrenume(prenumeTest + String.valueOf(i));
      Catalog c = new Catalog();
      c.setIdStudent(s.getIdStudent());
      c.setDataNotei(new Date());
      c.setIdObiect(idObiectTest + i);
      c.setNota(notaTest);
      c.setNrPrezente(nrPrezenteTest);
      s.getCatalog().add(c);
      Orar o = new Orar();
      o.setData(new Date());
      o.setIdObiect(idObiectTest + i);
      o.setIntervalOrar(intervalOrarTest);
View Full Code Here

Examples of org.apache.beehive.netui.core.chain.Catalog

            CatalogFactory catalogFactory = CatalogFactory.getInstance();
            if(catalogFactory.getCatalog() == null)
                catalogFactory = CatalogFactory.getInstance(catalogConfig);

            assert catalogFactory != null;
            Catalog catalog = catalogFactory.getCatalog();
            if(catalog != null) {
                xhrServletCommand = (Chain)catalog.getCommand(COMMAND_XHR);
            }

            if(xhrServletCommand != null) {
                xhrServletCommand.addCommand(new ErrorCRI());
            }
View Full Code Here

Examples of org.apache.commons.chain.Catalog

   /**
    * @return default catalog
    */
   public Catalog getCatalog()
   {
      Catalog catalog = catalogFactory.getCatalog();
      return catalog;
   }
View Full Code Here

Examples of org.apache.commons.chain.Catalog

    * @param name
    * @return named catalog
    */
   public Catalog getCatalog(String name)
   {
      Catalog catalog = catalogFactory.getCatalog(name);
      return catalog;

   }
View Full Code Here

Examples of org.apache.commons.chain.Catalog

   /**
    * @return default catalog
    */
   public Catalog getCatalog()
   {
      Catalog catalog = catalogFactory.getCatalog();
      return catalog;
   }
View Full Code Here

Examples of org.apache.commons.chain.Catalog

    * @param name
    * @return named catalog
    */
   public Catalog getCatalog(String name)
   {
      Catalog catalog = catalogFactory.getCatalog(name);
      return catalog;

   }
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.