[EMAIL PROTECTED] wrote:
> I've got a string which I'd like to transform to a setter :
> For example, idLc which I'd like to transform to
> setIdLc(...). Is it a way to do it using standard xdt template tag ?

I've only mucked around with the XDT templates to do simple
modifications, but looking at the entity-value.xdt I see something that
might get you close:

          <XDtEjbPersistent:forAllPersistentFields not-pk="true"
valueobject="<XDtEjbValueObj:currentValueObjectMatch/>">
                <XDtEjbPk:ifIsNotPrimkeyField>
                <XDtMethod:ifHasMethod name="<XDtMethod:setterMethod/>"
parameters="<XDtMethod:methodType/>">
                 <XDtMethod:setterMethod/>(
valueHolder.<XDtMethod:getterMethod/>() );
                </XDtMethod:ifHasMethod>
                </XDtEjbPk:ifIsNotPrimkeyField>
          </XDtEjbPersistent:forAllPersistentFields>

This loops over all non-PK persistent fields, presumably creating a
"current field" context object for each one. Inside the loop, it uses
<XDtMethod:setterMethod/> to retrieve the set<Field> method using the
JavaBeans framework to munge the name.

Good luck!

David Harkness
Sr. Software Engineer
Sony Pictures Digital Networks
(310) 482-4756


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id66&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to