You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by James M Snell <ja...@gmail.com> on 2006/08/16 01:29:18 UTC
Href methods
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.
e.g.,
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.
Thoughts?
- James