commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "matthew.hawthorne" <ma...@apache.org>
Subject Re: [betwixt] Question
Date Mon, 28 Jun 2004 13:41:16 GMT
Mike Zatko wrote:
> I'm new to betwixt. I like it, but I'm having trouble figuring out how 
> to do things because of documentation and apparently massive refactoring 
> in the library.
> What I am trying to do is map a simple String property to an attribute 
> instead of an element. This is shown on the following link under 'Other 
> XMLIntrospector Settings':
> 
> http://jakarta.apache.org/commons/betwixt/guide/binding.html
> 
> Unfortunately, there is no such class called SimpleTypeMapper or Binding 
> in either the 1.0 alpha or .5 releases. How do I implement this behavior?


Off the top of my head, I think it's something like:

BeanWriter writer = new BeanWriter();
writer.getBindingConfiguration().setAttributesForPrimitives(true);


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


Mime
View raw message