Hi,

When I posted my original example of digester usage (now checked in as
"digester/src/examples/api/addressbook") I promised more.

Well, attached is a proposed follow-on example entitled "Catalog"
(library catalog), that demonstrates:

* how to use Digester.getRoot() to retrieve the "root" object
  created when parsing an input file.
* how to use the "factory create" rule to create java objects which
  do not have default (no-argument) constructors.
* how to use ExtendedBaseRules to get trailing-wildcard support
* how to use the BeanPropertySetterRule
* how to use the "set properties" rule (advanced usage) to map xml
  attributes to java bean properties with names different from the
  xml attribute name.
* how to use the SetPropertyRule.
* how to use the ObjectParamRule to pass a constant string to a method.

If this is acceptable, I would suggest checking all this in as:
  digester/src/examples/api/catalog

Regards,

Simon

Attachment: catalog.tar.gz
Description: application/compressed-tar

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

Reply via email to