Examples of Record


Examples of org.errai.samples.serialization.client.model.Record

    }

    public void callback(Message message) {

        List<Record> records = new ArrayList<Record>();
        records.add(new Record(1, "Mike", -40.23f, getDate(2004, 5, 2), RecordType.Savings, new Item[]{new Item(2, "iPhone3G"),
                new Item(2, null)}, new String[][] { {"FavoriteColor", "Blue"}, {"Place", "Toronto"} }));
        records.add(new Record(2, "Lillian", 30.10f, getDate(2005, 1, 10), RecordType.Savings, new Item[]{new Item(1, "iPhone3G"),
                new Item(1, "MacBookPro15")}, new String[][] { { "FavoriteColor", "Green" }, {"Place", "Toronto"}}));
        records.add(new Record(3, "Heiko", 50.50f, getDate(2006, 5, 20), RecordType.Checking, new Item[]{new Item(1, "iPhone3Gs"),
                new Item(2, "MacBookPro13")}, new String[][] { {  "FavoriteColor", "Orange" }, {"Place", "Germany" }}));


        if (message.hasPart("Recs")) {
            List<Record> recs = message.get(List.class, "Recs");
View Full Code Here

Examples of org.errai.samples.serialization.client.shared.Record

    List<Record> records = new ArrayList<Record>();

    Date date = getDate(2004, 5, 2);

    records.add(new Record(1, "Mike", -40.23f, date, RecordType.Savings, new Item[]{new Item(2, "iPhone3G"),
            new Item(2, null)}, new String[][]{{"FavoriteColor", "Blue"}, {"Place", "Toronto"}}));
    records.add(new Record(2, "Lillian", 30.10f, date, RecordType.Savings, new Item[]{new Item(1, "iPhone3G"),
            new Item(1, "MacBookPro15")}, new String[][]{{"FavoriteColor", "Green"}, {"Place", "Toronto"}}));
    records.add(new Record(3, "Heiko", 50.50f, date, RecordType.Checking, new Item[]{new Item(1, "iPhone3Gs"),
            new Item(2, "MacBookPro13")}, new String[][]{{"FavoriteColor", "Orange"}, {"Place", "Germany"}}));


    if (message.hasPart("Recs")) {
      List<Record> recs = message.get(List.class, "Recs");
View Full Code Here

Examples of org.fao.oaipmh.responses.Record

            h.addSet(metadataCategory.getName());
        }

        //--- build and return record

        Record r = new Record();

        r.setHeader(h);
        r.setMetadata(md);

        return r;
    }
View Full Code Here

Examples of org.geotools.data.shapefile.shp.ShapefileReader.Record

            next = goodRecs.next();

            Long l = (Long) next.getValue(1);
            shp.goTo((int) l.longValue());

            Record record = shp.nextRecord();

            // read the geometry, so that we can decide if this row is to be skipped or not
            Geometry geometry = getGeometry(record);
            if (geometry == SKIP) {
                continue;
            }

            // read the dbf only if the geometry was not skipped
            Row row;
            if (dbf != null) {
                ((IndexedDbaseFileReader) dbf).goTo(record.number);
                row = dbf.readRow();
            } else {
                row = null;
            }

            nextFeature = buildFeature(record.number, geometry, row, record.envelope());
        }

        return nextFeature != null;
    }
View Full Code Here

Examples of org.goobi.production.importer.Record

                // PluginLoader.getPlugin(PluginType.Import,
                // this.currentPlugin);
                List<String> ids = this.plugin.splitIds(this.idList);
                List<Record> recordList = new ArrayList<Record>();
                for (String id : ids) {
                    Record r = new Record();
                    r.setData(id);
                    r.setId(id);
                    r.setCollections(this.digitalCollections);
                    recordList.add(r);
                }

                answer = this.plugin.generateFiles(recordList);
            } else if (this.importFile != null) {
                // uploaded file
                // IImportPlugin plugin = (IImportPlugin)
                // PluginLoader.getPlugin(PluginType.Import,
                // this.currentPlugin);
                this.plugin.setFile(this.importFile);
                List<Record> recordList = this.plugin.generateRecordsFromFile();
                for (Record r : recordList) {
                    r.setCollections(this.digitalCollections);
                }
                answer = this.plugin.generateFiles(recordList);
            } else if (StringUtils.isNotEmpty(this.records)) {
                // found list with records
                // IImportPlugin plugin = (IImportPlugin)
                // PluginLoader.getPlugin(PluginType.Import,
                // this.currentPlugin);
                List<Record> recordList = this.plugin.splitRecords(this.records);
                for (Record r : recordList) {
                    r.setCollections(this.digitalCollections);
                }
                answer = this.plugin.generateFiles(recordList);
            } else if (this.selectedFilenames.size() > 0) {
                List<Record> recordList = this.plugin.generateRecordsFromFilenames(this.selectedFilenames);
                for (Record r : recordList) {
                    r.setCollections(this.digitalCollections);
                }
                answer = this.plugin.generateFiles(recordList);

            }
View Full Code Here

Examples of org.gwtoolbox.widget.client.data.Record

        final DataGrid grid = new DataGrid(columns);
        grid.setEditInPlace(true);
        grid.setSize("100%", "250px");
        grid.setSelectionModel(new SingleRowSelectionModel());

        Record record = new MapRecord()
                .setValue("firstName", "Uri")
                .setValue("lastName", "Boness")
                .setIntValue("age", 33)
                .setValue("gender", Gender.MALE)
                .setValue("birthTime", new Time(5))
View Full Code Here

Examples of org.jboss.as.console.client.model.Record

        // selection model
        final SingleSelectionModel<Record> selectionModel = new SingleSelectionModel<Record>();
        selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
            @Override
            public void onSelectionChange(SelectionChangeEvent event) {
                Record selectedRecord = selectionModel.getSelectedObject();
                // do something with the record
            }
        });
        table.setSelectionModel(selectionModel);
View Full Code Here

Examples of org.jboss.wsf.spi.management.recording.Record

   protected boolean handleInbound(MessageContext ctx)
   {
      Endpoint endpoint = EndpointAssociation.getEndpoint();
      if (endpoint != null && isRecording(endpoint))
      {
         Record record = RecordFactory.newRecord();
         RecordGroupAssociation.pushGroupID(record.getGroupID());
         record.setDate(new Date());
         HttpServletRequest httpServletRequest = (HttpServletRequest)ctx.get(MessageContext.SERVLET_REQUEST);
         if (httpServletRequest != null)
         {
            try
            {
               record.setDestinationHost(new URL(httpServletRequest.getRequestURL().toString()).getHost());
               record.setSourceHost(httpServletRequest.getRemoteHost());
            }
            catch (Exception e)
            {
               log.warn("Unable to read from the http servlet request! " + e.getMessage());
            }
         }
         record.setHeaders((Map<String,List<String>>)(ctx.get(MessageContext.HTTP_REQUEST_HEADERS)));
         record.setMessageType(MessageType.INBOUND);
         record.setOperation((QName)ctx.get(MessageContext.WSDL_OPERATION));
         boolean processEnvelope = false;
         for (Iterator<RecordProcessor> it = endpoint.getRecordProcessors().iterator(); it.hasNext() && !processEnvelope; )
         {
            processEnvelope = it.next().isProcessEnvelope();
         }
         if (processEnvelope) //skip message processing if not required since it's very time-consuming
         {
            SOAPMessageContext soapCtx = (SOAPMessageContext)ctx;
            try
            {
               SOAPEnvelope soapEnv = soapCtx.getMessage().getSOAPPart().getEnvelope();
               if (soapEnv != null)
               {
                  record.setEnvelope(DOMWriter.printNode(soapEnv, true));
               }
            }
            catch (SOAPException ex)
            {
               log.error("Cannot trace SOAPMessage", ex);
View Full Code Here

Examples of org.jclouds.logging.BufferLogger.Record

      b.setLevel(Level.INFO);
      b.info("hi 1");
      b.error(new Throwable("check"), "hi 2");
      b.debug("hi 3 nope");
     
      Record r;
      r = b.assertLogContains("hi 1");
      Assert.assertEquals(Level.INFO, r.getLevel());
      Assert.assertNull(r.getTrace());
     
      r = b.assertLogContains("hi 2");
      Assert.assertEquals(Level.SEVERE, r.getLevel());
      Assert.assertEquals(r.getTrace().getMessage(), "check");
     
      b.assertLogDoesntContain("hi 3");
   }
View Full Code Here

Examples of org.jclouds.rackspace.clouddns.v1.domain.Record

      domainId = domain.getId();
   }

   @Test(dependsOnMethods = "testCreateDomain")
   public void testCreateReverseDNSRecords() throws Exception {
      Record createPTRRecordIPv4 = Record.builder().type("PTR").name(JCLOUDS_EXAMPLE).data(serverIPv4).ttl(11235)
            .build();

      Record createPTRRecordIPv6 = Record.builder().type("PTR").name(JCLOUDS_EXAMPLE).data(serverIPv6)
            .comment("Hello IPv6").build();

      List<Record> createRecords = ImmutableList.of(createPTRRecordIPv4, createPTRRecordIPv6);
      Set<RecordDetail> records = awaitComplete(api,
            api.getReverseDNSApiForService(CLOUD_SERVERS_OPEN_STACK).create(serverURI, createRecords));
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.