Craig R. McClanahan wrote:

Ordering only matters among rules with the same pattern String -- they are
executed in the order they were registered.  So, if you're creating the
foo object before using the set next rule, you will want to register the
object create rule first.

For example, my rulesets are full of things like:

  digester.addObjectCreate("some/pattern", "com.mycompany.MyFoo");
  digester.addSetProperties("some/pattern");
  digester.addSetNext("some/pattern", "addFoo");

Great, thanks Craig. The above example is exactly what I had in mind (create an object and establish parent/child relationship immediately [at the same node in the XML file] before continuing to call methods on the new object at later nodes).




Erik




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



Reply via email to