commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hippo Man <hippo.mail...@gmail.com>
Subject [jxpath] Passing casting information within a path-based setter?
Date Sat, 30 Jul 2011 01:31:09 GMT
On Fri, Jul 29, 2011 at 20:43, Hippo Man <hippo.mailbox@gmail.com> wrote:
>
> Am I out of luck?

I just thought of another idea.

Can I perhaps use some sort of custom function for this purpose?

For example:

context.createPathAndSetValue("/myCastFunc(\"/dataArray[1]\",
\"TheChild\")/varString", "quack");

... or something like that, where "myCastFunc" is a custom-written
function that will take the supplied xpath and cast it to the class
named as the second argument.

Would something like this work for me?

--
 hippo.mailbox@gmail.com

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


Mime
View raw message