Re: [JXPath] Can JXPath help me with processing collection based tree?

2012-11-14 Thread we9
Matt Benson, thank you for your answer. As you wrote, I put IMyNodeAggregate into field myCollection in RootStub class. This is OK. A) 1. public class Rules { 2.public static String getName(ExpressionContext context){ 3. Pointer pointer = context.getContextNodePointer(); 4.if(

Re: [JXPath] Can JXPath help me with processing collection based tree?

2012-11-14 Thread we9
Matt Benson, thank you for your answer. As you wrote, I put /IMyNodeAggregate /into field /myCollection /in /RootStub /class. This is OK. A) /1. public class Rules {// //2.public static String getName(ExpressionContext context){// //3. Pointer pointer = context.getContextNodePointer()

Re: [JXPath] Can JXPath help me with processing collection based tree?

2012-11-02 Thread Matt Benson
As Jun suggests, a custom extension function [1] is probably in order to keep your expressions reasonably (!) short. Assuming you want to use JXPath without modifying any of your existing code, I would recommend trying to write a custom function that makes the call to retrieve the name. Then your

Re: [JXPath] Can JXPath help me with processing collection based tree?

2012-11-02 Thread Jun Ouyang
Sorry I am on transit right now so i cant give u a full and proper.respond. But i think you can create your own jxpath function and invoke it to match your need. In this case the function shall check if names are equal? On Nov 2, 2012 9:47 AM, "we9" wrote: > > I started to write some methods whic

[JXPath] Can JXPath help me with processing collection based tree?

2012-11-02 Thread we9
I started to write some methods which process tree structure. The queries are based on XPath. And now, I discovered JXPath. I was reading user-guide, but I didn't find what I want. I must be sure that there is no posibility to do this with JXPath. I have the following interfaces: interface IM