You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Martin van den Bemt <ml...@mvdb.net> on 2003/01/31 13:43:59 UTC

[Fwd: Re: [betwixt] utilities and features]

Seems reply to is not always to the list..

Mvgr,
Martin

-----Forwarded Message-----

From: Martin van den Bemt <ml...@mvdb.net>
To: leon2000@pacbell.net
Subject: Re: [betwixt] utilities and features
Date: 31 Jan 2003 13:20:29 +0100

Hi Leon,

Digester & betwixt can not yet be mixed up yet (so you yourself
registring rules in digester and using the betwixt rules in the same
rule). We have to look at how we must supports this.

On Fri, 2003-01-31 at 03:19, Leon Smith wrote:
> 
> Almost as important though, since I have >100 classes to create .betwixt files for, is there any utility that can help ? Even if it just introspects and creates a skeleton file that I can change by hand.

I just head a pointer from Jon (Stevens) that pointed me to
turbine-torque, which has facilities like this (not for betwixt though).
I am going to add this to my list. 

> 
> Is there a utility to convert Digester XML rule sets to Betwixt files ?

Nope.. I sounds interesting though, although a lot can be solved to make
the 2 work together. 

> 
> What are the chances of getting XMLIntrospector>>setWrapCollectionsInElement and BeanWriter>enablePrettyPrint as options in the .betwixt files ?

Pretty high. Though at the moment the setWrapCollectionsInElement is set
applicationwide and .betwixt files only are used to configure the bean
with the same name. The enableprettyprint is not likely to end up there,
although I like it to be the default (pretty is always nicer to look at
as ugly :). BeanWriter is going to be pretty much rewritten to be even
prettier.

Thanx for the feedback, and I will add your wishes to our todo list. If
you can come up with any patches, I would be happy to apply them though.
One note : Afaik Betwixt was initially not focussed on the way digester
works, but actually the other way around. It is best at having a bean,
which you want to turn into xml, to read it back later again.
Since most people (at least I am) actually use it the other way around
(we have xml and want to create beans for it), we started focussing on
that, although support is not completely what I had in mind yet.


Mvgr,
Martin



> 
> Thanks,
> 
> Leon
> Leon Smith
> California Software Studio
> Phone: 530.877.1787
> www.CaliforniaSoftwareStudio.com
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org