Examples of Data


Examples of hudson.model.UpdateSite.Data

     * @return
     *      null if no such update center is provided.
     */
    public UpdateSite getCoreSource() {
        for (UpdateSite s : sites) {
            Data data = s.getData();
            if (data!=null && data.core!=null)
                return s;
        }
        return null;
    }
View Full Code Here

Examples of hudson.tasks.junit.TestResultAction.Data

            // TODO: Move into JUnitParser [BUG 3123310]
      List<Data> data = new ArrayList<Data>();
      if (testDataPublishers != null) {
        for (TestDataPublisher tdp : testDataPublishers) {
          Data d = tdp.getTestData(build, launcher, listener, result);
          if (d != null) {
            data.add(d);
          }
        }
      }
View Full Code Here

Examples of it.uniroma1.dptu.stan.model.Data

      setVisible(true);
      super.setupUI(parent, row, column);
  }

      public void perform(ActionEvent actionEvent, Object row, SceneryBaseColumn column) {
      Data data = (Data)sourceView.getData();
      final AreaData area = new AreaData(data);

      area.setTitle("New decision area");
      data.putArea(area);

      setSelectedRow(area);
      }
View Full Code Here

Examples of javax.xml.crypto.Data

            if (!"".equals(uri)) {
                Element se = dereferenceSTR(doc, siRef, requestData, wsDocInfo);
                // If an STR Transform is not used then just find the cached element
                boolean attachment = false;
                if (se == null) {
                    Data dereferencedData = siRef.getDereferencedData();
                    if (dereferencedData instanceof NodeSetData) {
                        NodeSetData data = (NodeSetData)dereferencedData;
                        java.util.Iterator<?> iter = data.iterator();

                        while (iter.hasNext()) {
View Full Code Here

Examples of liquibase.structure.core.Data

        }
        if (foundObject instanceof Table) {
            Table table = (Table) foundObject;
            try {

                Data exampleData = new Data().setTable(table);
                table.setAttribute("data", exampleData);
            } catch (Exception e) {
                throw new DatabaseException(e);
            }
        }
View Full Code Here

Examples of models.Data

      ipaddress = (ip != null ? ip : Http.Request.current().remoteAddress);
      ip = ipaddress;
        Cache.set(sessionId + "-ipaddress", ipaddress);
        Logger.debug("[Weather.data] ipaddress = %s", ipaddress);
   
    Data data = null;
    try {
      data = Data.get(ipaddress);
      Logger.debug("[Weather.data] data = %s", data);
    } catch (ConnectionException e) {
      Logger.warn("[Weather.data] Error retrieving data object from DB.");
    }
   
    if(data == null) {
      String url = WWO_LOCAL_WEATHER_URL + "?q=" + ipaddress
          + "&format=json"
          + "&num_of_days=5"
          + "&cc=no"
          + "&includeLocation=yes"
          + "&key=" + WWO_API_KEY;
      Logger.debug("[Weather.data] url = %s", url);
     
      Promise<WS.HttpResponse> promise = WS.url(url).getAsync();
      WS.HttpResponse response = await(promise);

      if (response.getStatus() / 100 != 2) {
        Logger.error("[Weather.data] %d - %s",
            response.getStatus(), response.getString());
        error(response.getStatus(), "Unable to retrieve data.");
      }
     
      data = new Data(ipaddress, response.getString());
      try {
        data.store(TTL_DATA);
      } catch (ConnectionException e) {
        Logger.warn("[Weather.data] Error storing data object into the DB.");
      }
    }
   
View Full Code Here

Examples of net.floodlightcontroller.packet.Data

                .setSourceAddress("192.168.1.1")
                .setDestinationAddress("192.168.1.2")
                .setPayload(new UDP()
                            .setSourcePort((short) 5000)
                            .setDestinationPort((short) 5001)
                            .setPayload(new Data(new byte[] {0x01}))));
        this.testPacketSerialized = testPacket.serialize();

        // Build the PacketIn
        this.packetIn = ((OFPacketIn) mockFloodlightProvider.getOFMessageFactory().getMessage(OFType.PACKET_IN))
            .setBufferId(-1)
View Full Code Here

Examples of net.hamnaberg.json.Data

            else {
                Value v = ValueFactory.createValue(value);
                properties.add(Property.value(key, v));
            }
        }
        return new Data(properties);
    }
View Full Code Here

Examples of net.ivoa.fits.data.Data

    if (hdr == null) {
      atEOF = true;
      return null;
    }

    Data datum = hdr.makeData();
    datum.read(dataStr);
    BasicHDU nextHDU = FitsFactory.HDUFactory(hdr, datum);

    hduList.addElement(nextHDU);
    return nextHDU;
  }
View Full Code Here

Examples of net.sf.cb2java.data.Data

        Copybook copybook = CopybookParser.parse("B", new FileInputStream(new File("./target/test-classes/b.copybook")));
        assertEquals(31, copybook.getLength());
        List<Record> results = copybook.parseData(new FileInputStream(new File("./target/test-classes/b.input.txt")));
        assertEquals(1, results.size());
        Record record = results.get(0);
        Data root = record.getChild("ROOT");
        assertEquals("ABCDEF", root.getChildren().get(0).toString());
        assertEquals("B", ((Data)root.getChildren().get(1)).getName().toString());
        assertEquals("BCDE", root.getChildren().get(1).toString());
        // TODO assertEquals(12345, root.getChildren().get(2).toString());
        // TODO assertEquals(1234, ((Data)root.getChildren().get(3)).getValue());
        System.out.println(root.toString());
    }
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.