What is the best way in digester to do a simple xml attr -> java attr
mapping.

For example:

<tag name="foo" style="bar"/>

And the class looks like:

Class Tag {
  public void setName(String name) {...}
  public void setStyleName(String style) {...}
}

The SetPropertiesRule handles the name->setName() case, but what is the
easiest way to handle the style->setStyleName() case?

Silly question, but my brain is dead, I am currently using
CallMethodRule with CallParamRule, and I think there should be a better
way :)

Scott

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to