Examples of DocumentDiffSnapshotProtoImpl


Examples of org.waveprotocol.wave.diff.proto.DocumentDiffSnapshotProtoImpl

    for (String field : message.getRemovedParticipant()) {
      addRemovedParticipant(field);
    }
    clearDocument();
    for (DocumentDiffSnapshot field : message.getDocument()) {
      addDocument(new DocumentDiffSnapshotProtoImpl(field));
    }
    setVersion(new ProtocolHashedVersionProtoImpl(message.getVersion()));
    setLastModifiedTime(message.getLastModifiedTime());
    setCreator(message.getCreator());
    setCreationTime(message.getCreationTime());
View Full Code Here

Examples of org.waveprotocol.wave.diff.proto.DocumentDiffSnapshotProtoImpl

  @Override
  public List<DocumentDiffSnapshotProtoImpl> getDocument() {
    switchToProto();
    List<DocumentDiffSnapshotProtoImpl> list = new ArrayList<DocumentDiffSnapshotProtoImpl>();
    for (int i = 0; i < getDocumentSize(); i++) {
      DocumentDiffSnapshotProtoImpl message = new DocumentDiffSnapshotProtoImpl(proto.getDocument(i));
      list.add(message);
    }
    return list;
  }
View Full Code Here

Examples of org.waveprotocol.wave.diff.proto.DocumentDiffSnapshotProtoImpl

  }

  @Override
  public DocumentDiffSnapshotProtoImpl getDocument(int n) {
    switchToProto();
    return new DocumentDiffSnapshotProtoImpl(proto.getDocument(n));
  }
View Full Code Here

Examples of org.waveprotocol.wave.diff.proto.DocumentDiffSnapshotProtoImpl

  /** Get or create a DocumentDiffSnapshotProtoImpl from a DocumentDiffSnapshot. */
  private DocumentDiffSnapshotProtoImpl getOrCreateDocumentDiffSnapshotProtoImpl(DocumentDiffSnapshot message) {
    if (message instanceof DocumentDiffSnapshotProtoImpl) {
      return (DocumentDiffSnapshotProtoImpl) message;
    } else {
      DocumentDiffSnapshotProtoImpl messageImpl = new DocumentDiffSnapshotProtoImpl();
      messageImpl.copyFrom(message);
      return messageImpl;
    }
  }
View Full Code Here

Examples of org.waveprotocol.wave.diff.proto.DocumentDiffSnapshotProtoImpl

    if (jsonObject.has("3")) {
      JsonElement elem = jsonObject.get("3");
      {
        JsonArray array = elem.getAsJsonArray();
        for (int i = 0; i < array.size(); i++) {
          DocumentDiffSnapshotProtoImpl payload = new DocumentDiffSnapshotProtoImpl();
          GsonUtil.extractJsonObject(payload, array.get(i), gson, raw);
          addDocument(payload);
        }
      }
    }
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.