Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 91882 invoked from network); 18 Nov 2008 22:43:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Nov 2008 22:43:18 -0000 Received: (qmail 13480 invoked by uid 500); 18 Nov 2008 22:43:26 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 13450 invoked by uid 500); 18 Nov 2008 22:43:26 -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 13432 invoked by uid 99); 18 Nov 2008 22:43:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Nov 2008 14:43:26 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of david.calavera@gmail.com designates 209.85.132.250 as permitted sender) Received: from [209.85.132.250] (HELO an-out-0708.google.com) (209.85.132.250) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Nov 2008 22:41:48 +0000 Received: by an-out-0708.google.com with SMTP id d14so1278815and.0 for ; Tue, 18 Nov 2008 14:42:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=BITJs48ejX+8rkwcmFdxxw6SZyLibAk7JjvBdh7yaHM=; b=gcmzBntMJ/blC3iAmuhqQd/JVBHdVslzAi0x76EEAJFySeHYXzWE7LlcOta09qSRda 1lFvBFDZHtRAa3MrIsoB2g2saZf89FTW1meNRT5QF0EFJ6LYej9qjPrDieJGAbiq4nF7 UZd2//HEoYIGu+wBjE0CuEZ7uFAeg3+1poG9E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=RtHoOYroKSsYz7pURbOCktwkSMT6exA/f33vrdj2KDfo43ibz4/hHVTUGw7CRdde04 o0+f6Q/PIkzzY9RPR4215B5aYgefZBsSIdfbp1MwHuGMP0+LG6wSKXKWZsrfw9a0OVrl z1pRN5lZV5ul2/9uAPk+pJ0JOeWat637wyG3o= Received: by 10.100.105.13 with SMTP id d13mr244939anc.102.1227048142793; Tue, 18 Nov 2008 14:42:22 -0800 (PST) Received: by 10.100.143.4 with HTTP; Tue, 18 Nov 2008 14:42:22 -0800 (PST) Message-ID: Date: Tue, 18 Nov 2008 23:42:22 +0100 From: "David Calavera" To: abdera-dev@incubator.apache.org Subject: Re: Abdera elements, axiom and the pain. AKA ABDERA-194: FOMXPath selectNodes() accepts a Base argument but requires an Axiom object to work properly In-Reply-To: <4922DC34.6090801@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_74342_19297186.1227048142801" References: <4585c4a60811120710w7ad19a03j53791bf303e33e35@mail.gmail.com> <491B035D.7060005@gmail.com> <4921A08A.2040800@gmail.com> <4922DC34.6090801@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_74342_19297186.1227048142801 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline forget it, I think I just needed to understand a little bit more the architecture. I've found a better solution modifying the FOMXPath implementation without change the core architecture. On Tue, Nov 18, 2008 at 4:16 PM, James M Snell wrote: > Ah.... in that case yeah... however, the decision to keep Axiom out of the > core can be revisited if the current design is impacting functionality. I'd > rather avoid it tho... keeping things separated like they are provides us > with significant flexibility in the architecture. > > - James > > > David Calavera wrote: > >> Sooo, my solution is not valid since I've imported axiom into the core and >> now ElementWrapper extends OMElement to solve the bug. :S >> >> On Mon, Nov 17, 2008 at 5:49 PM, James M Snell wrote: >> >> >> >>> The purpose of ElementWrapper was to decouple extension implementations >>> from the underlying Axiom-based FOM implementation. If we ever decided >>> to >>> move away from Axiom, extensions would not, in theory, have to be >>> reimplemented..... that was the idea anyway. >>> >>> - James >>> >>> >>> David Calavera wrote: >>> >>> >>> >>>> Well, the ticket is not solved yet because I don't understand the >>>> behavior >>>> of the ElementWrapper class. Basically, it stores an Element object and >>>> passes all the invocations to the internal element, it doesn't have any >>>> additional behavior, why do we maintain this class? why don't the >>>> extensions >>>> extend directly the FOMElement class instead of the ElementWrapper >>>> class? >>>> >>>> Can anyone explain me? >>>> >>>> Thank you. >>>> >>>> On Wed, Nov 12, 2008 at 5:25 PM, James M Snell >>>> wrote: >>>> >>>> >>>> >>>> >>>> >>>>> +1. sounds good. >>>>> >>>>> - James >>>>> >>>>> >>>>> Garrett Rooney wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> On Wed, Nov 12, 2008 at 5:20 AM, David Calavera >>>>>> wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Hi, I'm working in this issue >>>>>>> https://issues.apache.org/jira/browse/ABDERA-194, and I'd like to >>>>>>> discuss my >>>>>>> solution because I'm not sure if it's the best one. >>>>>>> >>>>>>> The problem was that the classes that extend ElementWrapper don't >>>>>>> extend >>>>>>> the >>>>>>> Axiom methods to enable XPath navigation and json serialization. >>>>>>> >>>>>>> My solution. Now ElementWrapper extends OMElementImpl but I had to >>>>>>> modify >>>>>>> some methods due to getting conflicts with the Axiom api. So, some >>>>>>> methods >>>>>>> in the media extension called "getType" are now called >>>>>>> "getMediaType", >>>>>>> and a >>>>>>> method called "getType" in the openSearch extension is now called >>>>>>> "getUrlType". >>>>>>> >>>>>>> If nobody disagrees and proposes a better way to solve the bug I'll >>>>>>> commit >>>>>>> my changes tomorrow morning. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> Seems reasonable enough to me. The new method names are more clear >>>>>> anyway. >>>>>> >>>>>> -garrett >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> >>> >> >> >> > -- David Calavera http://www.thinkincode.net ------=_Part_74342_19297186.1227048142801--