Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 8945 invoked from network); 18 Jul 2006 02:02:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jul 2006 02:02:50 -0000 Received: (qmail 10341 invoked by uid 500); 18 Jul 2006 02:02:50 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 10325 invoked by uid 500); 18 Jul 2006 02:02:50 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 10316 invoked by uid 99); 18 Jul 2006 02:02:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2006 19:02:50 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of stephen.duncan@gmail.com designates 66.249.92.170 as permitted sender) Received: from [66.249.92.170] (HELO ug-out-1314.google.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2006 19:02:47 -0700 Received: by ug-out-1314.google.com with SMTP id u40so236430ugc for ; Mon, 17 Jul 2006 19:02:26 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ov8wuB+oViu/96GjItDcefQhHMLnhGxdCN80wClcJTkFDNDt852gnoC+PA94dojWNHmnGOhBiTjhWeoU8SmZMutDlOWyvLgSw+jYxFr0PTJ/e0W4gM90PL72Vh+UiVHCIg65Zm2Y4z+Z8Y7KkqzNAIS29nbwPPke744hYXqGfik= Received: by 10.67.29.12 with SMTP id g12mr3066459ugj; Mon, 17 Jul 2006 19:02:26 -0700 (PDT) Received: by 10.67.40.12 with HTTP; Mon, 17 Jul 2006 19:02:26 -0700 (PDT) Message-ID: Date: Mon, 17 Jul 2006 22:02:26 -0400 From: "Stephen Duncan" To: abdera-dev@incubator.apache.org Subject: Re: svn commit: r422926 - in /incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model: Content.java Text.java In-Reply-To: <44BC3F55.8000101@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060718001542.0EF6D1A981A@eris.apache.org> <7edfeeef0607171748r57c5d441s430318bb6bc7bfb8@mail.gmail.com> <44BC3F55.8000101@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Is there a reason you can't just switch on the enum itself? (A retroweaver limitation?) - Stephen On 7/17/06, James M Snell 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 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 > > > -- Stephen Duncan Jr www.stephenduncanjr.com