abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Href methods
Date Tue, 15 Aug 2006 23:29:18 GMT
Many of the methods in the Entry and Feed interfaces return URI objects.
 While I think this is good in general, it goes lead to some ugly code
when I want to get the uri as a string.


  String uri = entry.getEditLink().getResolvedHref().toString();

I'd like to introduce some shortcut methods that would simplify this.

  String uri = entry.getEditLinkAsString();

The *LinkAsString variants would we a shortcut for getting the fully
resolved value of the link's href attribute.


- James

View raw message