com.primus.searchcommon.constraint
Class ConstraintsGroup
java.lang.Object
com.primus.searchcommon.constraint.BaseConstraint
com.primus.searchcommon.constraint.ConstraintsGroup
- All Implemented Interfaces:
- DocumentSetConstraint, java.io.Serializable
public class ConstraintsGroup
- extends BaseConstraint
Represents multiple DocumentSetConstraint or ConstraintGroup instances
with an operation definition.
This is used to define complex boolean constraints on documentSets in ES.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CLASS_VERSION
public static final java.lang.String CLASS_VERSION
- See Also:
- Constant Field Values
OR_OPERATION
public static final java.lang.String OR_OPERATION
- See Also:
- Constant Field Values
AND_OPERATION
public static final java.lang.String AND_OPERATION
- See Also:
- Constant Field Values
NOT_OPERATION
public static final java.lang.String NOT_OPERATION
- See Also:
- Constant Field Values
ConstraintsGroup
public ConstraintsGroup()
ConstraintsGroup
public ConstraintsGroup(java.lang.String pOperation)
add
public ConstraintsGroup add(DocumentSetConstraint pConstraint)
toXml
public java.lang.String toXml()
- Description copied from interface:
DocumentSetConstraint
- Converts this constraint to the XML representation that can be sent in the ES Query.
- Returns: