Examples of Catalog


Examples of org.apache.xml.resolver.Catalog

    }

    ResolvingParser.validating = validating;
    ResolvingParser.namespaceAware = nsAware;
    ResolvingParser reader = new ResolvingParser();
    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 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 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 org.geoserver.catalog.Catalog

        });

        add(new AjaxLink("clear.resourceCache") {
            @Override
            public void onClick(AjaxRequestTarget target) {
                Catalog cat = getCatalog();
                try {
                    cat.getResourcePool().dispose();
                    info(getLocalizer().getString("resourceCacheClearedSuccessfully", this));
                }
                catch( Exception e ) {
                    error(e);
                }
View Full Code Here

Examples of org.geotools.gtcatalog.Catalog

public class Activator implements BundleActivator {

  public void start(BundleContext context) throws Exception {
    //get a reference to the service factory + catalog
    Catalog catalog = (Catalog) context
      .getService(context.getServiceReference(Catalog.class.getName()));
    ServiceFactory factory = (ServiceFactory)context
      .getService(context.getServiceReference(ServiceFactory.class.getName()));
   
   
View Full Code Here

Examples of org.icepdf.core.pobjects.Catalog

  }

  private static BufferedImage toBufferedImage(Document document, int pageNumber,float scale,boolean transparent) {
    System.getProperties().put("org.icepdf.core.screen.background", "VALUE_DRAW_NO_BACKGROUND");
   
    Catalog cat = document.getCatalog();
    Page page = cat.getPageTree().getPage(pageNumber-1, document);
        PDimension sz = page.getSize(Page.BOUNDARY_CROPBOX, 0f, scale);

        int pageWidth = (int) sz.getWidth();
        int pageHeight = (int) sz.getHeight();

        BufferedImage image = new BufferedImage(pageWidth,
                pageHeight,
                transparent?BufferedImage.TYPE_INT_ARGB:BufferedImage.TYPE_INT_RGB);
        Graphics g = image.createGraphics();
        if (!transparent) {
          PRectangle pageBoundary = page.getPageBoundary(Page.BOUNDARY_CROPBOX);
          float x = 0 - pageBoundary.x;
            float y = 0 - (pageBoundary.y - pageBoundary.height);

            g.setColor(Color.WHITE);
            g.fillRect((int) (0 - x),
                    (int) (0 - y),
                    (int) pageBoundary.width,
                    (int) pageBoundary.height);
        }
       
        page.paint(g, GraphicsRenderingHints.SCREEN,
            Page.BOUNDARY_CROPBOX, 0f, scale);
       
       
       
        g.dispose();
        cat.getPageTree().releasePage(page, document);

        return image;

  }
View Full Code Here

Examples of org.jboss.as.cmp.ejbql.Catalog

        // Related Entity Name
        String relatedEntityName = metadata.getRelatedRole().getEntity().getName();

        // Related Entity
        Catalog catalog = manager.getCatalog();
        relatedEntity = (JDBCEntityBridge) catalog.getEntityByEJBName(relatedEntityName);
        if (relatedEntity == null) {
            throw CmpMessages.MESSAGES.relatedEntityNotFound(getEntity().getEntityName(), getFieldName(), relatedEntityName);
        }

        // Related CMR Field
View Full Code Here

Examples of org.jboss.dna.common.jdbc.model.api.Catalog

        super.tearDown();
    }

    public void testSetCatalog() {
        Catalog catalog = new DefaultModelFactory().createCatalog();
        // set
        bean.setCatalog(catalog);
        // check
        assertSame("Unable to set catalog", catalog, bean.getCatalog());
    }
View Full Code Here

Examples of org.jboss.ejb.plugins.cmp.ejbql.Catalog

   public void setUpEJB(Properties props) throws Exception
   {
      MBeanServer server = MBeanServerLocator.locateJBoss();
      ObjectName name = new ObjectName("jboss.j2ee:jndiName=commerce/Order,service=EJB");
      EjbModule ejbModule = (EjbModule) server.getAttribute(name, "EjbModule");
      Catalog catalog = (Catalog) ejbModule.getModuleData("CATALOG");
      compiler = new JDBCEJBQLCompiler(catalog);
   }
View Full Code Here

Examples of org.jboss.ejb.plugins.cmp.ejbql.Catalog

      return schema;
   }

   public Catalog getCatalog()
   {
      Catalog catalog = (Catalog)getApplicationData(CATALOG);
      if(catalog == null)
      {
         catalog = new Catalog();
         putApplicationData(CATALOG, catalog);
      }
      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.