Examples of Catalog


Examples of com.drighetto.jaxb.vo.Catalog

    try {
      // Create an Unmarshaller
      Unmarshaller unmarshaller = context.createUnmarshaller();

      // Unmarshall XML to Object
      Catalog catalog = (Catalog) unmarshaller.unmarshal(new File("books.xml"));

      // Display object infos to valide unmarshalling
      System.out.printf("Books count : %s\n", catalog.getBook().size());
    } catch (JAXBException e) {
      e.printStackTrace();
      Assert.fail(e.getMessage());
    }
  }
View Full Code Here

Examples of com.google.code.lightssh.project.message.entity.Catalog

 
  public void save( Message t ){
    if( t == null )
      throw new ApplicationException("参数为空!");
   
    Catalog catalog = catalogManager.getDefaultInfo();
    if( catalog == null )
      throw new ApplicationException("默认信息分类未初始化!");
   
    ifReceiveType.ALL.equals(t.getRecType()) ){
      t.setRecValue( ReceiveType.ALL.name() );
      t.setForward( false ); //所有人接收的消息不能转发
    }else{
      t.setForward( catalog.getForward() );
    }
   
    if( t.getStatus() == null )
      t.setStatus(Message.Status.PUBLISH );
    t.setCatalog( catalog );
View Full Code Here

Examples of com.mysema.query.jpa.domain.Catalog

                .groupBy(ord).having(price.amount.sum().gt(0l))
                .orderBy(price.amount.sum().desc())
                .select(ord.id, price.amount.sum(), item.count());

        Customer c1 = new Customer();
        Catalog c2 = new Catalog();

        query().from(ord)
               .join(ord.lineItems, item).join(item.product, product)
               .from(catalog).join(catalog.prices, price).where(
                        ord.paid.not().and(ord.customer.eq(c1)).and(
View Full Code Here

Examples of com.oltpbenchmark.catalog.Catalog

     */
    public void testCreateDatabase() throws Exception {
        this.benchmark.createDatabase();

        // Make sure that we get back some tables
        Catalog catalog = this.benchmark.getCatalog();
        assertNotNull(catalog);
        assertFalse(catalog.getTables().isEmpty());

        // Just make sure that there are no empty tables
        for (Table catalog_tbl : catalog.getTables()) {
            assert (catalog_tbl.getColumnCount() > 0) : "Missing columns for " + catalog_tbl;
            System.err.println(catalog_tbl);
        } // FOR
    }
View Full Code Here

Examples of com.puppetlabs.geppetto.catalog.Catalog

      + "    )\n"
      + "    should contain_stage('main').with(\n" + "      'name' => 'main',\n" + "    )\n" + "  }\n" + "end\n";

  public void testCatalogRspec() throws Exception {
    File f = TestDataProvider.getTestFile(new Path("testData/sample1.json"));
    Catalog c = CatalogJsonSerializer.load(f);
    assertEquals("Should have the expected name", "testcentos.pilsen.cloudsmith.com", c.getName());

    CatalogRspecGenerator generator = new CatalogRspecGenerator();
    StringBuilder builder = new StringBuilder();
    generator.generate(c, builder);
    assertEquals(expectedRspec1, builder.toString());
View Full Code Here

Examples of com.sun.org.apache.xml.internal.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 jodd.json.model.cat.Catalog

  @Test
  public void testParseCatalogAsObject() throws IOException {
    String json = loadJSON("citm_catalog");

    Catalog catalog = new JsonParser().parse(json, Catalog.class);

    assertCatalog(catalog);
  }
View Full Code Here

Examples of jsky.catalog.Catalog

            urlStr = _getQueryUrl(urlStr, queryArgs); // allan 20.02.09 moved up one line
            StringTokenizer token = new StringTokenizer(urlStr.substring(7), "?\t");
            String className = token.nextToken();
            try {
                Class catalogClass = Class.forName(className);
                Catalog catalog = (Catalog) catalogClass.newInstance();
                result = catalog.query(queryArgs);
                if (result instanceof MemoryCatalog && !(result instanceof SkycatTable)) {
                    MemoryCatalog mcat = (MemoryCatalog) result;
                    result = new SkycatTable(_entry, mcat.getDataVector(), mcat.getFields());
                }
            } catch (Exception e) {
View Full Code Here

Examples of liquibase.structure.core.Catalog

        try {
            if (database.supportsSchemas()) {
                for (String tableSchema : getDatabaseSchemaNames(database)) {
                    CatalogAndSchema schemaFromJdbcInfo = toCatalogAndSchema(tableSchema, database);

                    Catalog catalog = new Catalog(schemaFromJdbcInfo.getCatalogName());

                    Schema schema = new Schema(catalog, tableSchema);
                    if (DatabaseObjectComparatorFactory.getInstance().isSameObject(schema, example, database)) {
                        if (match == null) {
                            match = schema;
                        } else {
                            throw new InvalidExampleException("Found multiple catalog/schemas matching " + ((Schema) example).getCatalogName() + "." + example.getName());
                        }
                    }
                }
            } else {
                Catalog catalog = new Catalog(catalogName);
                match = new Schema(catalog, catalogName);
            }

        } catch (SQLException e) {
            throw new DatabaseException(e);
View Full Code Here

Examples of mf.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
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.