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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to