Package org.waveprotocol.wave.federation.ProtocolDocumentOperation.Component

Examples of org.waveprotocol.wave.federation.ProtocolDocumentOperation.Component.ElementStart


      public void deleteElementStart(String type, Attributes attributes) {
        addComponent().setDeleteElementStart(makeElementStart(type, attributes));
      }

      private ElementStart makeElementStart(String type, Attributes attributes) {
        ElementStart e = ElementStartJsoImpl.create();
        e.setType(type);
        for (String name : attributes.keySet()) {
          e.addAttribute(keyValuePair(name, attributes.get(name)));
        }
        return e;
      }

      @Override
View Full Code Here


        return this;
      }

      /** Builds a {@link ElementStart} using this builder and a factory. */
      public ElementStart build(Factory factory) {
        ElementStart message = factory.create();
        message.setType(type);
        message.clearAttribute();
        message.addAllAttribute(attribute);
        return message;
      }
View Full Code Here

      public void deleteElementStart(String type, Attributes attributes) {
        addComponent().setDeleteElementStart(makeElementStart(type, attributes));
      }

      private ElementStart makeElementStart(String type, Attributes attributes) {
        ElementStart e = ElementStartJsoImpl.create();
        e.setType(type);
        for (String name : attributes.keySet()) {
          e.addAttribute(keyValuePair(name, attributes.get(name)));
        }
        return e;
      }

      @Override
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.federation.ProtocolDocumentOperation.Component.ElementStart

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.