Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [gmt-dev] evolving GMT in a fully open process that allows others to join the effort

> does it provide an expression language? set based model
> traversion statments? I want to write stuff such as
> 
> FOREACH Component.Interface.Operation AS o DO
>    public void <o.Name>(FOREACH o.Parameter....)
> ENDFOREACH
> 
> etc. Is something like that possible with velocity?

Sure. No problem. Your meta-model structure is in Java, right?
Something like this:

#foreach($o in $component.Interface.Operation )
    public void ${o.Name}(#foreach ($o.Parameter ...)
#end

Regards,
Ghica van Emde Boas
Bronstee.com Software & Services b.v.
e-mail: emdeboas@xxxxxxxxxxxx,
tel: +31 23 5474422, 
or: +31 6 53368747 (mobile)
fax: +31 23 5473347 
 




Back to the top