I'm actually working on a basic one right now.
It just needs a template file, not a full module, but it supports
the following
/***
* @betwixt.mapped-class
*/
public class X {
private int id;
private int value;
/***
* @betwixt.attribute
*/
public int getId() {
return id;
}
/***
* @betwixt.attribute
*/
public int getValue() {
return value;
}
}
/***
* @betwixt.mapped-class superclasses="true"
*/
public class Y extends X {
private String name;
/***
* @betwixt.element
*/
public String getName() {
return name;
}
}
/***
* @betwixt.mapped-class element="q"
* @betwixt.inherited-attribute property="id"
*/
public class Z extends X {
private String name;
/***
* @betwixt.element
*/
public String getName() {
return name;
}
}
There's support for some other stuff, such as not inheriting everything
from your superclass, but rather, using a class tag
@betwixt.inherited-attribute
or @betwixt.inherited-element. I'm also going to add support for the
<addDefaults /> element. At the very least, it will provide some level of
autogeneration ability.
X.betwixt
---------
<info primitiveTypes='attribute'>
<element name='x'>
<attribute name='id' property='id' />
<attribute name='value' property='value' />
</element>
</info>
Y.betwixt
---------
<info primitiveTypes='attribute'>
<element name='y'>
<attribute name='id' property='id' />
<attribute name='value' property='value' />
<element name='name' property='name' />
</element>
</info>
Z.betwixt
---------
<info primitiveTypes='attribute'>
<element name='q'>
<attribute name='id' property='id' />
<element name='name' property='name' />
</element>
</info>
-----Original Message-----
From: robert burrell donkin
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 7:46 AM
To: Jakarta Commons Developers List
Subject: Re: [betwixt] XDoclet Integration
hi
On 16 Jun 2004, at 10:30, Konstantin Priblouda wrote:
> --- robert burrell donkin
> <[EMAIL PROTECTED]> wrote:
>> not really but i think that it'd be cool :)
>>
>> fancy volunteering?
>
> Well, what tagset do you nave in mind?
dunno i just think that it'd be cool :)
since Matthew's got a clearer idea of what's needed, he'll jump in
here...
>> (i'll be tied up for the next week or two cutting
>> releases for various
>> components)
>
> I will suppose to do it as new xdoclet-2 plugin.
> ( better templating, faster, error check for tags,
> self documenting tags etc. )
>
> it's already usable.
>
> Ask me if you have problems / questions how to
> compile everything necessary.
i'm not sure i parse this properly. could you expand a little?
the mailing list now strips out most attachments so you'll need to use
bugzilla if you wanted to contribute some code.
- robert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]