I searched the existing tags and found the following:

1) <XDtClass:classOf>...</XDtClass:classOf> which returns the
not-full-qualified name of the content;

2) <XDtPackage:packageOf>...</XDtPackage:packageOf> which does the same for
packages;

3) <XDtClass:pushClass value=""/> which seems to work with
<XDtClass:pushClass>...</XDtClass:pushClass> as well.

All these tags make use of the 'xdoclet.template.TemplateEngine.outputOf()'
method, whilst the JavaDoc of this method only mentions the conten tag as
the way to do these things...

Right now I implemeted it as a block tag, works well, but needs to be
accepted either way. DOes it actaully matter?

BG


----- Original Message -----
From: "Erik Hatcher" <[EMAIL PROTECTED]>
To: "Bart Guijt" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, March 30, 2002 7:11 PM
Subject: Re: [Xdoclet-devel] Creating a <XDtType:typeWithoutDimensions> tag


> I personally think a content tag makes the most sense for this purpose.  I
> think of block tags as either iterators or conditionals over the content
> inside, whereas you just want to output the non-array type from a type
> passed in.
>
> Just my $0.01 worth!  :)
>
>     Erik
>
>
> ----- Original Message -----
> From: "Bart Guijt" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, March 30, 2002 11:48 AM
> Subject: [Xdoclet-devel] Creating a <XDtType:typeWithoutDimensions> tag
>
>
> Hi,
>
> In order to support a better Castor mapping file I would like to wrate a
new
> template tag which expects a regular Java type and returns the same type
> without any dimension specification, ie:
>
>     int[][]  -->  int
>     String   --> String
>
> The idea is clear. Now what is in your opinion the best type of template
to
> use?
> Either a block tag:
>
>
>
<XDtType:typeWithoutDimensions><XDtMethod:methodType/></XDtType:typeWithoutD
> imensions>
>
> or a content tag:
>
>     <XDtType:typeWithoutDimensions type="<XDtMethod:methodType/>">
>
> which IMHO looks a bit obscure, but according to the JavaDoc of
> 'xdoclet.template.TemplateEngine.outputOf()' perfectly legal.
>
> Thoughts?
>
>
> Ciao,
>
> BG
>
>



_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to