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

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


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


        setCharacters(message.getCharacters());
      } else {
        clearCharacters();
      }
      if (message.hasElementStart()) {
        setElementStart(new ElementStartProtoImpl(message.getElementStart()));
      } else {
        clearElementStart();
      }
      if (message.hasElementEnd()) {
        setElementEnd(message.getElementEnd());
      } else {
        clearElementEnd();
      }
      if (message.hasRetainItemCount()) {
        setRetainItemCount(message.getRetainItemCount());
      } else {
        clearRetainItemCount();
      }
      if (message.hasDeleteCharacters()) {
        setDeleteCharacters(message.getDeleteCharacters());
      } else {
        clearDeleteCharacters();
      }
      if (message.hasDeleteElementStart()) {
        setDeleteElementStart(new ElementStartProtoImpl(message.getDeleteElementStart()));
      } else {
        clearDeleteElementStart();
      }
      if (message.hasDeleteElementEnd()) {
        setDeleteElementEnd(message.getDeleteElementEnd());
View Full Code Here

    }

    @Override
    public ElementStartProtoImpl getElementStart() {
      switchToProto();
      return new ElementStartProtoImpl(proto.getElementStart());
    }
View Full Code Here

    }

    @Override
    public ElementStartProtoImpl getDeleteElementStart() {
      switchToProto();
      return new ElementStartProtoImpl(proto.getDeleteElementStart());
    }
View Full Code Here

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

      }
      if (jsonObject.has("3")) {
        JsonElement elem = jsonObject.get("3");
        if (!elem.isJsonNull()) {
          {
            ElementStartProtoImpl payload = new ElementStartProtoImpl();
            GsonUtil.extractJsonObject(payload, elem, gson, raw);
            setElementStart(payload);
          }
        }
      }
      if (jsonObject.has("4")) {
        JsonElement elem = jsonObject.get("4");
        if (!elem.isJsonNull()) {
          setElementEnd(elem.getAsBoolean());
        }
      }
      if (jsonObject.has("5")) {
        JsonElement elem = jsonObject.get("5");
        if (!elem.isJsonNull()) {
          setRetainItemCount(elem.getAsInt());
        }
      }
      if (jsonObject.has("6")) {
        JsonElement elem = jsonObject.get("6");
        if (!elem.isJsonNull()) {
          setDeleteCharacters(elem.getAsString());
        }
      }
      if (jsonObject.has("7")) {
        JsonElement elem = jsonObject.get("7");
        if (!elem.isJsonNull()) {
          {
            ElementStartProtoImpl payload = new ElementStartProtoImpl();
            GsonUtil.extractJsonObject(payload, elem, gson, raw);
            setDeleteElementStart(payload);
          }
        }
      }
View Full Code Here

TOP

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

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.