Skip navigation links


com.fatwire.cs.core.search.query
Interface ConditionNode


public interface ConditionNode

ConditionNode represents a node condition on a QueryExpression binary tree. AND/OR of the ConditionNode is for the non-leaf node of the tree and other ConditionNode besides AND/OR will be a leaf in the tree.


Field Summary
static ConditionNode AND
          AND is an empty ConditionNode which is used for non-leaf binary tree node.
static ConditionNode OR
          OR is an empty ConditionNode which is used for non-leaf binary tree node.

 

Method Summary
 java.lang.String getFieldName()
          Gets the field name of the condition
 Operation getOperation()
          Gets the operation that the condition will use
 java.util.List getValues()
          Gets the list of values that the condition will be evaluated against
 boolean isNegate()
          Gets whether the condition needs to hold true or not for the fieldname/operation and list of values specified

 

Field Detail

AND

static final ConditionNode AND
AND is an empty ConditionNode which is used for non-leaf binary tree node. AND indicates both the left and right ConditionNode needs to be true for the ConditionNode at this node to be true

OR

static final ConditionNode OR
OR is an empty ConditionNode which is used for non-leaf binary tree node. OR indicates either the left or right ConditionNode needs to be true for the ConditionNode at this node to be true

Method Detail

getFieldName

java.lang.String getFieldName()
Gets the field name of the condition
Returns:
the String field name

getOperation

Operation getOperation()
Gets the operation that the condition will use
Returns:
the Operation

getValues

java.util.List getValues()
Gets the list of values that the condition will be evaluated against
Returns:
the list of values

isNegate

boolean isNegate()
Gets whether the condition needs to hold true or not for the fieldname/operation and list of values specified
Returns:
true indicates that condition will not hold true; false indicates otherwise

Skip navigation links


Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.