com.primus.searchcommon.constraint
Class ConstraintsGroup

java.lang.Object
  extended by com.primus.searchcommon.constraint.BaseConstraint
      extended by 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

Field Summary
static java.lang.String AND_OPERATION
           
static java.lang.String CLASS_VERSION
           
static java.lang.String NOT_OPERATION
           
static java.lang.String OR_OPERATION
           
 
Constructor Summary
ConstraintsGroup()
           
ConstraintsGroup(java.lang.String pOperation)
           
 
Method Summary
 ConstraintsGroup add(DocumentSetConstraint pConstraint)
           
 java.lang.String toXml()
          Converts this constraint to the XML representation that can be sent in the ES Query.
 
Methods inherited from class com.primus.searchcommon.constraint.BaseConstraint
escapeToXml, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

ConstraintsGroup

public ConstraintsGroup()

ConstraintsGroup

public ConstraintsGroup(java.lang.String pOperation)
Method Detail

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: