abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: svn commit: r422926 - in /incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model: Content.java Text.java
Date Tue, 18 Jul 2006 02:17:23 GMT
I might be missing something, but switching on the enum just doesn't
want to seem to want to compile in Eclipse.  I'll keep digging and will
pull these back out if I can figure out exactly why the switching on the
enum doesn't work.

- James

Stephen Duncan wrote:
> Is there a reason you can't just switch on the enum itself?  (A
> retroweaver limitation?)
> 
> - Stephen
> 
> On 7/17/06, James M Snell <jasnell@gmail.com> wrote:
>> e.g.,
>>
>> switch(entry.getContentType().ordinal()) {
>>   case Content.TYPE_TEXT:
>>     ...
>>   case Content.TYPE_HTML:
>>     ...
>>   case Content.TYPE_XHTML:
>>     ...
>> }
>>
>> Garrett Rooney wrote:
>> > On 7/17/06, jmsnell@apache.org <jmsnell@apache.org> wrote:
>> >> Author: jmsnell
>> >> Date: Mon Jul 17 17:15:41 2006
>> >> New Revision: 422926
>> >>
>> >> URL: http://svn.apache.org/viewvc?rev=422926&view=rev
>> >> Log:
>> >> It's a mystery to me why enum does not automatically expose the
>> >> ordinal value for it's members
>> >
>> > Uhh, I kinda wonder too, but just out of curiosity what are you
>> > actually using these values for?
>> >
>> > -garrett
>> >
>>
> 
> 

Mime
View raw message