All,
I am trying to add a method to my value objects via custom templates that
will call the trim function on all persistent fields that are string type.
I have included the snippet below:
/**
*
* @author Peter N. Wiley-Cordone
* @todo Need to Javadoc this
*/
public void trimStringProperties()
{
<XDtEjbPersistent:forAllPersistentFields superclasses="false"
valueobject="<XDtEjbValueObj:valueObjectMatch/>">
<XDtType:ifIsNotPrimitive value="<XDtMethod:propertyName/>">
<XDtType:ifIsOfType type="java.lang.String">
<XDtMethod:propertyName/>.trim();
</XDtType:ifIsOfType>
</XDtType:ifIsNotPrimitive>
</XDtEjbPersistent:forAllPersistentFields>
}
What I end up with is:
/**
*
* @author Peter N. Wiley-Cordone
* @todo Need to Javadoc this
*/
public void trimStringProperties()
{
}
so it doesn't match any of my string properties. I do have string
properties. Can anyone see what I am doing wrong?
Thanks for your help in advance.
Peter
Peter N. Wiley-Cordone
Internet/System Developer
Diversified Actuarial Services Inc.
275 Grove Street
Suite 2-300
Newton, MA 02466
Phone (617) 663-1225
Fax (617) 559-0498
[EMAIL PROTECTED]
-----------------------------------------
CONFIDENTIALITY NOTICE
----------------------
This transmission is intended for the sole use of the individual
and/or entity to whom it is addressed, and may contain information
and/or attachments that are privileged, confidential and exempt from
disclosure under applicable law. If the reader of this transmission
is not the intended recipient, you are hereby notified that any
disclosure, dissemination, distribution, duplication or the taking of
any action in reliance on the contents of this transmission by someone
other than the intended addressee or its designated agent is strictly
prohibited. If your receipt of this transmission is in error, please
notify the sender by replying immediately to this transmission and
destroy the transmission. Thank you.
(DMZIM01)
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user