Project: stp

com.ibm.rational.wvcm.stp.cq
Interface CqQuery.Filter

All Known Subinterfaces:
CqQuery.FilterLeaf, CqQuery.FilterNode
Enclosing interface:
CqQuery

public static interface CqQuery.Filter

A query filter expression or a subexpression thereof.

This structure represents a node within the filter expression tree. As a FilterNode, it represents the logical conjunction (ANDing) or disjunction (ORing) of filter subexpressions. As a FilterLeaf, it represents the comparison of a field with one or more constant values.


Nested Class Summary
static class CqQuery.Filter.Operation
          An enumeration of the logical operations and comparisons that can be used to combine the operands of a Filter subexpression.
 
Method Summary
 CqQuery.Filter.Operation getOperation()
          Returns the logical operation that is to be used to combine the operands of this subexpression.
 void setOperation(CqQuery.Filter.Operation op)
          Set the operation code for a Filter subexpression.
 

Method Detail

getOperation

CqQuery.Filter.Operation getOperation()
Returns the logical operation that is to be used to combine the operands of this subexpression. You can use the operation code to determine what kind of subexpression this structure represents before casting it to a FilterNode or FilterLeaf. Operations UNSPECIFIED, CONJUNCTION and DISJUNCTION indicate a FilterNode; the remaining Operations indicate a FilterLeaf.

Returns:
The Operation enumerator for the logical or comparison operator of this node.

setOperation

void setOperation(CqQuery.Filter.Operation op)
Set the operation code for a Filter subexpression.

Parameters:
op - The new operation code. The code must be consistent with the most complete subclass of this object.

Generated Fri 26-Feb-2010 04:01 AM

Copyright © IBM 2010. All rights reserved.