commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Vinson <>
Subject Re: [digester] Problems with Custom Rules
Date Wed, 22 Dec 2004 15:49:00 GMT
Hash: SHA1

Hi Carey,

I implemented it by hand because the object type is determined at
parse time by the "type" attribute of the entity node.  I am open to
suggestions of how to approach this more elegantly, since this is the
first situation I have run into that seems to warrant custom rules for
pushing objects.

The other Rule seems to work great though...

As for the addSetNext, I was under the impression that it will pop the
top of the stack and call the function specified ("add" in this case)
on the object below it (Which is the ArrayList from the first rule).
Am I wrong in assuming that?


Nation, Carey wrote:

| Hi Jason, I haven't done it like that with custom rules and pushing
| things myself, but doesn't AddSetNext want to have instantiated
| something itself?  Or actually, doesn't it want a rule about
| creating the object instance?  I see you're doing that by hand in
| your code, but I wonder if that's what's confusing things?
| Carey
| ---------------------------------------------------------------------
|  To unsubscribe, e-mail:
| For additional
| commands, e-mail:

Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message