Examples of Data


Examples of com.commons.Data

      NodeVisitor visitor = new NodeVisitor() {

        public void visitTag(Tag tag) {
          if (Div.class.equals(tag.getClass())
              && "p-img".equals(tag.getAttribute("class"))) {
            final Data data = new Data();
            tag.accept(new NodeVisitor() {
              public void visitTag(Tag tag) {
                if (ImageTag.class.equals(tag.getClass())) {
                  data.setName(tag.getAttribute("alt"));
                }
                if (LinkTag.class.equals(tag.getClass())) {
                  data.setUri(tag.getAttribute("href"));
                }
              };
            });
            getDataId(data);
            getPrice(data);
            try {
              LoggerUtils.log(CameraGetter.class.getName(),
                  data.toString());
            } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
            }
            dataList.add(data);
View Full Code Here

Examples of com.enumtest.Data

    public static void testReport2() throws Exception
    {
        StatusreportDocument doc = StatusreportDocument.Factory.newInstance();
        StatusreportDocument.Statusreport report = doc.addNewStatusreport();

        Data d = report.addNewStatus();
        d.set(Quantity.ALL);
        d.setTarget(Quantity.ALL);

        d = report.addNewStatus();
        d.set(Quantity.FEW);
        d.setTarget(Quantity.ALL);

        d = report.addNewStatus();
        d.set(Quantity.MOST);
        d.setTarget(Quantity.NONE);

        d = report.addNewStatus();
        d.set(Quantity.NONE);
        d.setTarget(Quantity.NONE);

        Quantity.Enum[] contents = new Quantity.Enum[]
        {
            Quantity.ALL,
            Quantity.ALL,
View Full Code Here

Examples of com.evernote.edam.type.Data

                    extractCommonFacetData(facet, updateInfo);
                    facet.guid = resource.getGuid();
                }
                if (facet.USN==null||facet.USN<resource.getUpdateSequenceNum()) {
                    if (resource.isSetAlternateData()) {
                        Data alternateData = resource.getAlternateData();
                        if (alternateData.isSetBody()&&resource.isSetGuid())
                            saveDataBodyAsFile(updateInfo, resource.getGuid(), ALTERNATE_APPENDIX, alternateData.getBody(), resource.getMime());
                        if (alternateData.isSetBodyHash())
                            facet.alternateDataBodyHash = alternateData.getBodyHash();
                        if (alternateData.isSetSize())
                            facet.alternateDataSize = alternateData.getSize();
                    }
                    if (resource.isSetAttributes()) {
                        final ResourceAttributes resourceAttributes = resource.getAttributes();
                        if (resourceAttributes.isSetAltitude())
                            facet.altitude = resourceAttributes.getAltitude();
                        if (resourceAttributes.isSetAttachment())
                            facet.isAttachment = resourceAttributes.isAttachment();
                        if (resourceAttributes.isSetCameraMake())
                            facet.cameraMake = resourceAttributes.getCameraMake();
                        if (resourceAttributes.isSetCameraModel())
                            facet.cameraModel = resourceAttributes.getCameraModel();
                        if (resourceAttributes.isSetFileName())
                            facet.fileName = resourceAttributes.getFileName();
                        if (resourceAttributes.isSetLatitude())
                            facet.latitude = resourceAttributes.getLatitude();
                        if (resourceAttributes.isSetLongitude())
                            facet.longitude = resourceAttributes.getLongitude();
                        if (resourceAttributes.isSetRecoType())
                            facet.recoType = resourceAttributes.getRecoType();
                        if (resourceAttributes.isSetSourceURL())
                            facet.sourceURL = resourceAttributes.getSourceURL();
                        if (resourceAttributes.isSetTimestamp())
                            facet.timestamp = resourceAttributes.getTimestamp();
                        if (resourceAttributes.isSetTimestamp() &&
                            resourceAttributes.isSetLongitude() &&
                            resourceAttributes.isSetLatitude()&&
                            resource.isSetNoteGuid()){
                            // resource locations are associated with their parent note's guid
                            addGuestLocation(updateInfo, facet.latitude, facet.longitude, facet.altitude,
                                             facet.timestamp, resource.getNoteGuid());
                        }
                    }
                    if (resource.isSetData()) {
                        Data data = resource.getData();
                        if (data.isSetBody()&&resource.isSetGuid())
                            saveDataBodyAsFile(updateInfo, resource.getGuid(), MAIN_APPENDIX, data.getBody(), resource.getMime());
                        if (data.isSetBodyHash())
                            facet.dataBodyHash = data.getBodyHash();
                        if (data.isSetSize())
                            facet.dataSize = data.getSize();
                    }
                    if (resource.isSetHeight())
                        facet.height = resource.getHeight();
                    if (resource.isSetMime())
                        facet.mime = resource.getMime();
                    if (resource.isSetNoteGuid())
                        facet.noteGuid = resource.getNoteGuid();
                    if (resource.isSetRecognition()) {
                        Data recognitionData = resource.getRecognition();
                        if (recognitionData.isSetBody()&&resource.isSetGuid())
                            saveDataBodyAsFile(updateInfo, resource.getGuid(), RECOGNITION_APPENDIX, recognitionData.getBody(), null);
                        if (recognitionData.isSetBodyHash())
                            facet.recognitionDataBodyHash = recognitionData.getBodyHash();
                        if (recognitionData.isSetSize())
                            facet.recognitionDataSize = recognitionData.getSize();
                    }
                    if (resource.isSetUpdateSequenceNum())
                        facet.USN = resource.getUpdateSequenceNum();
                    if (resource.isSetWidth())
                        facet.width = resource.getWidth();
View Full Code Here

Examples of com.fiveht.tick.Data

    }
   
    private Data data;
   
    private Properties() throws SQLException {
        data = new Data();
    }
View Full Code Here

Examples of com.google.appengine.tck.benchmark.support.Data

    }

    protected List<Data> generateData(int N, Key parent) {
        final List<Data> list = new ArrayList<>(N);
        for (int i = 0; i < N; i++) {
            Data data = new Data();

            data.setParent(parent);

            data.setCount(i);
            data.setDate(new Date());
            data.setName(UUID.randomUUID().toString());

            data.setStart(RANDOM.nextFloat());
            data.setStop(RANDOM.nextFloat());

            data.setDown(RANDOM.nextFloat());
            data.setUp(RANDOM.nextFloat());

            list.add(data);
        }
        return list;
    }
View Full Code Here

Examples of com.google.clearsilver.jsilver.data.Data

   */
  public Value execute(Value... args) {
    Value value = args[0];
    if (value instanceof VariableValue) {
      VariableValue variableValue = (VariableValue) value;
      Data variable = variableValue.getReference();
      if (variable != null) {
        return literalValue(variable.getSymlink().getName(), variableValue.getEscapeMode(),
            variableValue.isPartiallyEscaped());
      }
    }
    return literalConstant("", value);
  }
View Full Code Here

Examples of com.google.gdata.data.spreadsheet.Data

      tableEntry = new TableEntry();
      tableEntry.setTitle(new PlainTextConstruct(kind));
      tableEntry.setWorksheet(new Worksheet(kind));
      tableEntry.setHeader(new Header(1));

      Data tableData = new Data();
      tableData.setNumberOfRows(0);
      tableData.setStartIndex(2);
      tableData.setInsertionMode(InsertionMode.INSERT);

      // Create a title row
      tableData.addColumn(new Column("A", Entity.KEY_RESERVED_PROPERTY));
      for (int i = 0; i < properties.size(); i++) {
        String index = number2columnName(i + 1);
        String columnName = properties.get(i).getName();
        tableData.addColumn(new Column(index, columnName));
      }
      tableEntry.setData(tableData);
      tableEntry = ss.insert(tableFeedUrl, tableEntry);
      logger.info("Craeted tableFeed:" + kind);
    }
View Full Code Here

Examples of com.googlecode.charts4j.Data

    List<String> countLabels = new ArrayList<>();
    for (int i = 0; i < workerCallCounts.length; i++) {
      countLabels.add(String.valueOf(i));
    }

    Data countData = DataUtil.scaleWithinRange(0, maxPlusOne, Longs.asList(workerCallCounts));

    // TODO(user): Rather than returning charts from both servers, let's just
    // do it on the client's end.
    Plot countPlot = Plots.newBarChartPlot(countData);
    BarChart countChart = GCharts.newBarChart(countPlot);
View Full Code Here

Examples of com.googlecode.javacv.ImageTransformer.Data

        }
        this.transformer = transformer;
        this.hessianGradientTransformerData = new Data[settings.numThreads][n];
        for (int i = 0; i < hessianGradientTransformerData.length; i++) {
            for (int j = 0; j < hessianGradientTransformerData[i].length; j++) {
                hessianGradientTransformerData[i][j] = new Data(template[pyramidLevel],
                        transformed[pyramidLevel], residual[pyramidLevel], roiMask[pyramidLevel],
                        0, 0, pyramidLevel, null, null, n);
            }
        }
        this.residualTransformerData = new Data[settings.numThreads][1];
        for (int i = 0; i < residualTransformerData.length; i++) {
            residualTransformerData[i][0] = new Data(template[pyramidLevel],
                    target[pyramidLevel], null, roiMask[pyramidLevel],
                    0, 0, pyramidLevel, transformed[pyramidLevel], residual[pyramidLevel], 1);
        }

        this.parameters      = initialParameters.clone();
View Full Code Here

Examples of com.hazelcast.nio.serialization.Data

        int capacity = Math.min(partitions, keys.size()); //todo: is there better way to estimate size?
        Set<Integer> partitionIds = new HashSet<Integer>(capacity);

        Iterator<Data> iterator = keys.iterator();
        while (iterator.hasNext() && partitionIds.size() < partitions){
            Data key = iterator.next();
            partitionIds.add(partitionService.getPartitionId(key));
        }
        return partitionIds;
    }
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.