From tuscany-dev-return-16424-apmail-ws-tuscany-dev-archive=ws.apache.org@ws.apache.org Tue Apr 03 01:32:09 2007 Return-Path: Delivered-To: apmail-ws-tuscany-dev-archive@locus.apache.org Received: (qmail 27322 invoked from network); 3 Apr 2007 01:32:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2007 01:32:08 -0000 Received: (qmail 16783 invoked by uid 500); 3 Apr 2007 01:32:15 -0000 Delivered-To: apmail-ws-tuscany-dev-archive@ws.apache.org Received: (qmail 16745 invoked by uid 500); 3 Apr 2007 01:32:15 -0000 Mailing-List: contact tuscany-dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: tuscany-dev@ws.apache.org Delivered-To: mailing list tuscany-dev@ws.apache.org Received: (qmail 16736 invoked by uid 99); 3 Apr 2007 01:32:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2007 18:32:15 -0700 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_10_20,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of pfong168@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; Mon, 02 Apr 2007 18:32:07 -0700 Received: by an-out-0708.google.com with SMTP id c2so1914004anc for ; Mon, 02 Apr 2007 18:31:46 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=QcetF55MeOmPxMga4nQIx4rjdhjHWrQfOVrqyRusEJlzzqw9H0anBwKhobY01JsxnKq0B60UlAj30CkupG0eSGT1L8ZwaMA5htDPKsQiXAt09PGDtdzBB6ZwwrsTxPlFyk19ujfPBrU7Vawuyt06PbM7cYA9uS2agJAFm/NZUtg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=FBFzFrSbPqffC8W+t9YKftl9xWCD/8d5M51S6ar070N294An1uUGWNXjCMibdGUIbVpp0AENE1FU/qbfMS3xAzb1UCOPstkBc12yd7/iAk02cuQJG55cggqHxzAMl7sPetRGhfgCvTTDPlpXmhdTADaW/rOGzk/0dQPnStWg1OY= Received: by 10.100.124.5 with SMTP id w5mr3968634anc.1175563906115; Mon, 02 Apr 2007 18:31:46 -0700 (PDT) Received: by 10.100.44.12 with HTTP; Mon, 2 Apr 2007 18:31:46 -0700 (PDT) Message-ID: Date: Mon, 2 Apr 2007 18:31:46 -0700 From: "Pamela Fong" To: tuscany-dev@ws.apache.org Subject: Question on ModelObject for binding extension MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_537_13782336.1175563906085" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_537_13782336.1175563906085 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I read the article "Extending Tuscany by contributing a new implementation / binding type" by Raymond and Jeremy. Got a question about the definition of ModelObject. The example in the article is a very simple java bean-like object. This is fine if all we have to deal with is some simple attributes in the extension. If the binding requires complex SCDL model extension, defining the ModelObject by hand may not be the best choice (let's say one could have mulitple layers of nested elements and arrays etc.). One obvious alternative would be to generate some model code based on the extension xsd using EMF. However, since the binding's xsd extends from sca-core.xsd, generating model code would require the core model, which doesn't exist in Tuscany. What would be the recommended mechanism to define the ModelObject in this case? -pam ------=_Part_537_13782336.1175563906085--