Return-Path: Delivered-To: apmail-ws-jaxme-dev-archive@www.apache.org Received: (qmail 42635 invoked from network); 26 May 2004 09:50:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 26 May 2004 09:50:53 -0000 Received: (qmail 14821 invoked by uid 500); 26 May 2004 09:51:41 -0000 Delivered-To: apmail-ws-jaxme-dev-archive@ws.apache.org Received: (qmail 14781 invoked by uid 500); 26 May 2004 09:51:40 -0000 Mailing-List: contact jaxme-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list jaxme-dev@ws.apache.org Received: (qmail 14722 invoked by uid 98); 26 May 2004 09:51:40 -0000 Received: from jochen.wiedmann@freenet.de by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(193.26.193.23):. Processed in 0.310918 secs); 26 May 2004 09:51:40 -0000 X-Qmail-Scanner-Mail-From: jochen.wiedmann@freenet.de via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(193.26.193.23):. Processed in 0.310918 secs) Received: from unknown (HELO server8.software-ag.de) (193.26.193.23) by hermes.apache.org with SMTP; 26 May 2004 09:51:39 -0000 Received: from [10.29.20.158] by server8.software-ag.de; (8.11.6/8.9.3) id i4Q9oa302228; Wed, 26 May 2004 11:50:36 +0200 Message-ID: <40B46919.3050203@freenet.de> Date: Wed, 26 May 2004 11:53:29 +0200 From: Jochen Wiedmann User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Rudi Vankeirsbilck CC: jaxme-dev@ws.apache.org Subject: Re: Another newbie question References: <18FA65C2-AEF6-11D8-9BA2-0050E440C11F@objectsmith.be> In-Reply-To: <18FA65C2-AEF6-11D8-9BA2-0050E440C11F@objectsmith.be> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Rudi Vankeirsbilck wrote: > I noticed that the returntype of the method generated by jaxme to > access that list of nested elements is List. Is there any way to > instruct jaxme to use an array? There are such plans, because the SPEC requires it. Implementation should not be overly complex. Basically one needs to copy the class MultiplePropertySG to a an ArrayPropertySG and edit that. Additionally one needs to sure, that the method JAXBParticleSG.newPropertySGChain() distinguishes between the cases and returns either of these SG's. Wanna volunteer? > Also, optional elements (minOccurs="0" maxOccurs="1") only get an > accessor that will probably return null if the element is not there. Is > there any way to instruct jaxme to generate a test method that returns > a boolean to test if the element was there or not. Yes, see the JAXB Spec for details. Don't have the exact section in mind, but you are able to request a method "isFooSet" being created. (Interesting question whether that works ... :-) Jochen --------------------------------------------------------------------- To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org For additional commands, e-mail: jaxme-dev-help@ws.apache.org