commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason van Zyl <jvan...@zenplex.com>
Subject Re: earth to digester
Date Fri, 02 Nov 2001 02:59:18 GMT
On 11/1/01 9:22 PM, "Scott Sanders" <sanders@totalsync.com> wrote:

> 
> Are you saying you want Castor's capabilities, at least on the XML->Java
> side?

I don't know exactly what Castor does, I've only looked at it for an hour.
 
> Something like on an element, try to find an attribute on the object at the
> top of the stack that corresponds by name to that element, and set the
> attribute appropriately?

The XML documents would probably have to attributes, all elements:

<bean>
  <attribute1>value1</attribute1>
  <attribute2>value2</attribute2>
</bean>

and

bean.setAttribute1(value1)
bean.setAttribute2(value2)

would be called. it obviously will get more complicated with nested elements
but that's the general idea.
 
> Scott
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>

-- 

jvz.

Jason van Zyl

http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons



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


Mime
View raw message