Isn't xpath deprecated?

Rob

On Jun 30, 2012, at 11:43 PM, sam ” wrote:

> maybe use xpath?
> //*[@isMoodAnnotated = true]
> 
> 
> On Sat, Jun 30, 2012 at 4:48 PM, Robert A. Decker <[email protected]>wrote:
> 
>> Sorry, in my previous email,
>> 
>> qf is type QueryObjectModelFactory
>> 
>> constraint is the constraint that I'm building.
>> 
>> 
>> Rob
>> 
>> On Jun 30, 2012, at 10:33 PM, Robert A. Decker wrote:
>> 
>>> Somehow it seems like I shouldn't have so much trouble with this…
>>> 
>>> I have a property on a node that is type Boolean.
>>> 
>>> How do I query for nodes where it's true?
>>> 
>>> 
>>> Something like, when adding to my constraints:
>>> 
>>> constraint = qf.and(constraint, qf.comparison(SELECTOR_NAME,
>> "isMoodAnnotated",QueryObjectModelFactory.JCR_OPERATOR_EQUAL_TO, false);
>>> 
>>> 
>>> (obviously this code doesn't work)
>>> 
>>> 
>>> Rob
>> 
>> 

Reply via email to