Package org.waveprotocol.wave.federation.proto.ProtocolDocumentOperationProtoImpl.ComponentProtoImpl

Examples of org.waveprotocol.wave.federation.proto.ProtocolDocumentOperationProtoImpl.ComponentProtoImpl.KeyValuePairProtoImpl


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


      }

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

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

        if (jsonObject.has("2")) {
          JsonElement elem = jsonObject.get("2");
          {
            JsonArray array = elem.getAsJsonArray();
            for (int i = 0; i < array.size(); i++) {
              KeyValuePairProtoImpl payload = new KeyValuePairProtoImpl();
              GsonUtil.extractJsonObject(payload, array.get(i), gson, raw);
              addAttribute(payload);
            }
          }
        }
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.federation.proto.ProtocolDocumentOperationProtoImpl.ComponentProtoImpl.KeyValuePairProtoImpl

Copyright © 2018 www.massapicom. 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.