gnue-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUe-dev] GCD samples


From: Reinhard Mueller
Subject: Re: [GNUe-dev] GCD samples
Date: Sat, 12 Jun 2004 19:06:44 +0200

Hi, Jason!

Am Sam, den 12.06.2004 schrieb Jason Cater um 18:59:
>     <property name="code"  type="string(3)"    ...>
> 
> Why have type= be a composite attribute, instead of having two separate 
> attributes: type="string" size="3" ?

Acutally, both ways work. While the seperate type and size tags are
certainly the "clean" way, we found the string(3) approach much easier
if you *hand* *author* the gcd's in an editor.

>     <property name="upd"        type="UPDATE_Update" />
> 
> Seems to me that you're only asking for trouble later on by having the 
> type=".." serve two functions, one being a static list of data types and the 
> other being a referenced field. It might make more sense to have "type=" be a 
> limited, controlled list (like type="string|number|reference") and adding 
> another attribute for the referenced properties; i.e., the example above 
> would be:
> 
>     <property name="upd"        type="reference"  reference="UPDATE_Update" />
> 
> Maybe "reference" isn't the ideal keyword to use, but I having dug deep into 
> the appserver terminology yet. 

We have to think about that. Probably you have a valid point here.

Thanks,
-- 
Reinhard Mueller
GNU Enterprise project
http://www.gnue.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
No army can stop an idea whose time has come.
        -- Victor Hugo, 1802-1885

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


reply via email to

[Prev in Thread] Current Thread [Next in Thread]