Examples of data()


Examples of com.linkedin.restli.internal.server.methods.AnyRecord.data()

    //If the client decides they want total in their paging response, then the resource method will see total in their
    //paging path spec and then decide to set total to a non null value. We will then also include it when we project
    //paging.
    final RecordTemplate anyRecord = new AnyRecord(RestUtils.projectFields(paging.data(),
        ProjectionMode.AUTOMATIC, resourceContext.getPagingProjectionMask()));
    final CollectionMetadata projectedPaging = new CollectionMetadata(anyRecord.data());

    //For root object entities
    List<AnyRecord> processedElements = new ArrayList<AnyRecord>(elements.size());
    for (RecordTemplate entry : elements)
    {
View Full Code Here

Examples of com.linkedin.restli.restspec.CollectionSchema.data()

    CollectionSchema collectionSchema = new CollectionSchema();
    //HACK: AssociationSchema and CollectionSchema share many common elements, but have no inheritance
    //relationship.  Here, we construct them both as facades on the same DataMap, which allows
    //us to pass strongly typed CollectionSchema objects around, even when we're dealing with
    //an association.
    AssociationSchema associationSchema = new AssociationSchema(collectionSchema.data());

    if (collectionModel.getKeys().size() == 1)
    {
      appendIdentifierNode(collectionSchema, collectionModel);
    }
View Full Code Here

Examples of com.linkedin.restli.server.twitter.TwitterTestDataModels.Status.data()

    // #2 some fields
    RestRequest request2 = buildRequest("/test?fields=f1,f3", acceptTypeData.acceptHeaders, protocolVersion);
    response = _responseHandler.buildResponse(request2,
                                              buildRoutingResult(request2, acceptTypeData.acceptHeaders),
                                              status);
    assertTrue(status.data().containsKey("f2"));

    checkResponse(response, 200, 2, acceptTypeData.responseContentType, Status.class.getName(), null, true, errorResponseHeaderName);
    checkProjectedFields(response, new String[] {"f1", "f3"}, new String[] {"f2"});

    // #3 no fields
View Full Code Here

Examples of com.pointcliki.dizgruntled.rez.MonolithFile.data()

   
    fMapping = new HashMap<String, Color>();
    fName = name;
   
    byte[] data = f.data();
    byte[] data2 = fx.data();
   
    for (int i = 0; i < data.length; i += 3) {
      Color c = new Color(0, 0, 0);
      Color c2 = new Color(0, 0, 0);
     
View Full Code Here

Examples of com.trolltech.qt.core.QAbstractItemModel.data()

            QRegExp filter = filterRegExp();
            QAbstractItemModel model = sourceModel();
            boolean matchFound = false;

            for(int i=0; i < model.columnCount(); i++){
              Object data = model.data(sourceModel().index(sourceRow, i, sourceParent));
              matchFound |= data != null && filter.indexIn(data.toString()) != -1;
            }
            return matchFound;
        }
View Full Code Here

Examples of com.trolltech.qt.core.QModelIndex.data()

        if (noteTableView.proxyModel.rowCount() == 0)
          pos = 0;
        if (pos>0)  {
          QModelIndex i = noteTableView.proxyModel.index(pos-1, Global.noteTableGuidPosition);
          if (i!=null) {
            currentNoteGuid = (String)i.data();
          }
        }
      }   
    if (!noteTableView.isColumnHidden(Global.noteTableGuidPosition))
      showColumns();
View Full Code Here

Examples of com.trolltech.qt.gui.QTableWidgetItem.data()

    QTableWidgetItem item = table.item(row, 0);
    record.folder = item.text();
    item = table.item(row, 1);
    record.notebook = item.text();
    item = table.item(row,2);
    if (item.data(ItemDataRole.UserRole).toString().equalsIgnoreCase("keep"))
      record.keep = true;
    else
      record.keep = false;
   
    WatchFolderAdd dialog = new WatchFolderAdd(record, notebooks);
View Full Code Here

Examples of com.trolltech.qt.gui.QTreeWidgetItem.data()

    }
    // This determines what attribute filter we need, depending upon the selection
    private DateAttributeFilterTable findDateAttributeFilterTable(QTreeWidgetItem w) {
    if (w.parent() != null && w.childCount() > 0) {
      QTreeWidgetItem parent = w.parent();
      if (parent.data(0,ItemDataRole.UserRole)==AttributeTreeWidget.Attributes.Created &&
        w.data(0,ItemDataRole.UserRole)==AttributeTreeWidget.Attributes.Since)
          return Global.createdSinceFilter;
      if (parent.data(0,ItemDataRole.UserRole)==AttributeTreeWidget.Attributes.Created &&
          w.data(0,ItemDataRole.UserRole)==AttributeTreeWidget.Attributes.Before)
              return Global.createdBeforeFilter;
View Full Code Here

Examples of com.webobjects.appserver._private.WOURLValuedElementData.data()

    WOResourceManager resourceManager =  WOApplication.application().resourceManager();
    WOURLValuedElementData elementData = resourceManager._cachedDataForKey(key);
    if (elementData.isTemporary()) {
      resourceManager.removeDataForKey(key, null);
    }
    return elementData.data();
  }
}
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.datasource.bundle.BundleStreamSource.data()

            break;
          case NEXT_OBJECT:
            Object[] o = new Object[objects.metaLength()];
            o[0] = filestr;
            for(int i = 0; i < meta.size(); i++) {
              o[i + 1] = source.data(i);
            }
            objects.appendSimple(o);
          }
        }
      }
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.