abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Rooney" <roo...@electricjellyfish.net>
Subject Re: Coding/Language Standards
Date Thu, 28 Sep 2006 15:28:00 GMT
On 9/28/06, Harris Boyce III <harris.r.boyce.iii@gmail.com> wrote:
> Garrett -
>
> Yeah, shoulda done that to begin with, sorry...OK, from package
> org.apache.abdera.model, interface Feed defines these methods:
>
> List<Entry> getEntries();
> void addEntry(Entry entry);
> ...
> Entry getEntry(String id);
>
> In .NET, I could define these as properties like this:
>
> List<Entry> Entries {
>   get;
>   set;
> }
>
> And then, normally, I would use the methods exposed by List<Entry> to
> perform operations on the Entries (add, remove, etc.).  Now, granted,
> I would have to implement a method to retrieve the entry by ID just as
> done above.  But I guess my question may be centered around the
> encapsulation standards across the languages?  Maybe?
>
> Does that clarify any?  If not, let me know.

Well, you'd definately want the getter for the entries, but setting an
entire list of entries is kind of weird IMO...  Perhaps other people
have optinions.

-garrett

Mime
View raw message