Package com.google.wave.api.BlipIterator

Examples of com.google.wave.api.BlipIterator.ElementIterator


        new ArrayList<String>(), wavelet);

    Map<String, String> restrictions = new HashMap<String, String>();
    restrictions.put("url", "http://www.google.com/gadget.xml");

    ElementIterator iterator = new BlipIterator.ElementIterator(blip, ElementType.GADGET,
        restrictions, -1);

    List<Range> hits = new ArrayList<Range>();
    while (iterator.hasNext()) {
      hits.add(iterator.next());
    }
    assertEquals(2, hits.size());
    assertEquals(1, hits.get(0).getStart());
    assertEquals(2, hits.get(0).getEnd());
    assertEquals(5, hits.get(1).getStart());
View Full Code Here


        wavelet);

    Map<String, String> restrictions = new HashMap<String, String>();
    restrictions.put("url", "http://www.google.com/gadget.xml");

    ElementIterator iterator = new BlipIterator.ElementIterator(blip, ElementType.GADGET,
        restrictions, -1);

    List<Range> hits = new ArrayList<Range>();
    while (iterator.hasNext()) {
      hits.add(iterator.next());
    }
    assertEquals(2, hits.size());
    assertEquals(1, hits.get(0).getStart());
    assertEquals(2, hits.get(0).getEnd());
    assertEquals(5, hits.get(1).getStart());
View Full Code Here

TOP

Related Classes of com.google.wave.api.BlipIterator.ElementIterator

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.