Package com.google.walkaround.proto

Examples of com.google.walkaround.proto.ProtocolDocumentOperation.addComponent()


      @Override
      public void retain(int itemCount) {
        Component component = MessageFactoryHelper.createDocumentOperationComponent();
        component.setRetainItemCount(itemCount);
        mutation.addComponent(component);
      }

      @Override
      public void characters(String characters) {
        Component component = MessageFactoryHelper.createDocumentOperationComponent();
View Full Code Here


      @Override
      public void characters(String characters) {
        Component component = MessageFactoryHelper.createDocumentOperationComponent();
        component.setCharacters(characters);
        mutation.addComponent(component);
      }

      @Override
      public void elementStart(String type, Attributes attributes) {
        Component component = MessageFactoryHelper.createDocumentOperationComponent();
View Full Code Here

      @Override
      public void elementStart(String type, Attributes attributes) {
        Component component = MessageFactoryHelper.createDocumentOperationComponent();
        component.setElementStart(createElementStart(type, attributes));
        mutation.addComponent(component);
      }

      @Override
      public void elementEnd() {
        Component component = MessageFactoryHelper.createDocumentOperationComponent();
View Full Code Here

      @Override
      public void elementEnd() {
        Component component = MessageFactoryHelper.createDocumentOperationComponent();
        component.setElementEnd(true);
        mutation.addComponent(component);
      }

      @Override
      public void deleteCharacters(String characters) {
        Component component = MessageFactoryHelper.createDocumentOperationComponent();
View Full Code Here

      @Override
      public void deleteCharacters(String characters) {
        Component component = MessageFactoryHelper.createDocumentOperationComponent();
        component.setDeleteCharacters(characters);
        mutation.addComponent(component);
      }

      @Override
      public void deleteElementStart(String type, Attributes attributes) {
        Component component = MessageFactoryHelper.createDocumentOperationComponent();
View Full Code Here

      @Override
      public void deleteElementStart(String type, Attributes attributes) {
        Component component = MessageFactoryHelper.createDocumentOperationComponent();
        component.setDeleteElementStart(createElementStart(type, attributes));
        mutation.addComponent(component);
      }

      @Override
      public void deleteElementEnd() {
        Component component = MessageFactoryHelper.createDocumentOperationComponent();
View Full Code Here

      @Override
      public void deleteElementEnd() {
        Component component = MessageFactoryHelper.createDocumentOperationComponent();
        component.setDeleteElementEnd(true);
        mutation.addComponent(component);
      }

      @Override
      public void replaceAttributes(Attributes oldAttributes, Attributes newAttributes) {
        Component component =
View Full Code Here

          for (Map.Entry<String, String> e : newAttributes.entrySet()) {
            replace.addNewAttribute(createKeyValuePair(e.getKey(), e.getValue()));
          }
        }
        component.setReplaceAttributes(replace);
        mutation.addComponent(component);
      }

      @Override
      public void updateAttributes(AttributesUpdate update) {
        Component component = MessageFactoryHelper.createDocumentOperationComponent();
View Full Code Here

          updateAttributes.addAttributeUpdate(createKeyValueUpdate(
              update.getChangeKey(i), update.getOldValue(i), update.getNewValue(i)));
          }
        }
        component.setUpdateAttributes(updateAttributes);
        mutation.addComponent(component);
      }

      @Override
      public void annotationBoundary(AnnotationBoundaryMap map) {
        Component component = MessageFactoryHelper.createDocumentOperationComponent();
View Full Code Here

            boundary.addChange(createKeyValueUpdate(map.getChangeKey(i),
                map.getOldValue(i), map.getNewValue(i)));
          }
        }
        component.setAnnotationBoundary(boundary);
        mutation.addComponent(component);
      }
    });
    return mutation;
  }
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.