Package com.google.walkaround.proto.ProtocolDocumentOperation.Component

Examples of com.google.walkaround.proto.ProtocolDocumentOperation.Component.KeyValuePair


    operation.acceptVisitor(visitor);
    return visitor.getMessage();
  }

  private static KeyValuePair createKeyValuePair(String key, String value) {
    KeyValuePair attribute = MessageFactoryHelper.createDocumentKeyValuePair();
    attribute.setKey(key);
    if (value != null) {
      attribute.setValue(value);
    }
    return attribute;
  }
View Full Code Here


  }

  private Attributes attributesFrom(ElementStart message) {
    List<Attribute> attributes = new ArrayList<Attribute>();
    for (int i = 0; i < message.getAttributeSize(); i++) {
      KeyValuePair p = message.getAttribute(i);
      attributes.add(new Attribute(p.getKey(), p.getValue()));
    }
    return createAttributesImpl(attributes);
  }
View Full Code Here

  }

  private Attributes oldAttributesFrom(ReplaceAttributes message) {
    List<Attribute> attributes = new ArrayList<Attribute>();
    for (int i = 0; i < message.getOldAttributeSize(); i++) {
      KeyValuePair p = message.getOldAttribute(i);
      attributes.add(new Attribute(p.getKey(), p.getValue()));
    }
    return createAttributesImpl(attributes);
  }
View Full Code Here

  }

  private Attributes newAttributesFrom(ReplaceAttributes message) {
    List<Attribute> attributes = new ArrayList<Attribute>();
    for (int i = 0; i < message.getNewAttributeSize(); i++) {
      KeyValuePair p = message.getNewAttribute(i);
      attributes.add(new Attribute(p.getKey(), p.getValue()));
    }
    return createAttributesImpl(attributes);
  }
View Full Code Here

TOP

Related Classes of com.google.walkaround.proto.ProtocolDocumentOperation.Component.KeyValuePair

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.