commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Vinson <vinson.li...@charter.net>
Subject Re: [digester] Problems with Custom Rules
Date Wed, 22 Dec 2004 15:49:00 GMT
-----BEGIN PGP SIGNED MESSAGE-----
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?

Jason


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:
| commons-user-unsubscribe@jakarta.apache.org For additional
| commands, e-mail: commons-user-help@jakarta.apache.org
|
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFByZdsAQ71cZOfvEQRAoIgAJ98VzFVC12slYbBgk8pFYtR9A26VwCdEYeF
ec4sJmIFDKLyJn88lJeQ8qk=
=5Nck
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message