If you change the code to:

                Blip blip = event.getBlip();
                BlipContentRefs refs = blip.all();
                blip.reply().append(refs.values() + "-all");
                refs = blip.all(ElementType.LINE);
                blip.reply().append(refs.values() + "-all-lines");

You can see what is happening, which is that
each call to values() returns an array, in the first
case an array with one element in it, a single
com.google.wave.api.Plaintext object with
all the text of the blip. The second one returns
an array of Lines, one for as many lines as there
are in the blip.

   Thanks,
   -joe

On Tue, May 18, 2010 at 5:17 PM, Serj <[email protected]> wrote:
> Using Java Robot API I'm dealing with the problem. I've written
> following code:
>
> BlipContentRefs refs = blip.all();
> blip.reply().append(refs.values().size()+"");
> refs = blip.all(ElementType.LINE);
> blip.reply().append(refs.values().size()+"");
>
> and got 1 and 6 as the result. As javadoc says: Class Blip all() -
> Returns a reference to the entire content of the blip. So I think, that
> the first value should be equal or greater than the second.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Wave API" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-wave-api?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.

Reply via email to