atg.search.query.formhandlers
Class FakeDocumentSetConstraint

java.lang.Object
  extended by atg.search.query.formhandlers.FakeDocumentSetConstraint
All Implemented Interfaces:
DocumentSetConstraint, java.io.Serializable

public class FakeDocumentSetConstraint
extends java.lang.Object
implements DocumentSetConstraint, java.io.Serializable

A simple class to trick various search API methods into taking a DocumentSetConstraint object. In this case, this is simply a string.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
FakeDocumentSetConstraint(java.lang.String pXml)
          Create a FakeDocumentSetConstraint
 
Method Summary
 java.lang.String toString()
           
 java.lang.String toXml()
          Converts this constraint to the XML representation that can be sent in the ES Query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

FakeDocumentSetConstraint

public FakeDocumentSetConstraint(java.lang.String pXml)
Create a FakeDocumentSetConstraint

Parameters:
pXml - the XML string
Method Detail

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.

Specified by:
toXml in interface DocumentSetConstraint
Returns:
the XML string

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the DocumentSetConstraint