atg.search.routing.command.search
Class QueryRule

java.lang.Object
  extended by atg.search.routing.command.SearchXMLObject
      extended by atg.search.routing.command.search.QueryRule
All Implemented Interfaces:
java.io.Serializable

public class QueryRule
extends atg.search.routing.command.SearchXMLObject
implements java.io.Serializable

A query rule is a list of query rule operations.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
QueryRule()
           
 
Method Summary
 boolean equals(java.lang.Object pObject)
           
protected static QueryRule fromXmlParser(atg.search.routing.utils.FastXMLModel xml, int rootIdx)
           
protected  void getBodyXML(java.lang.StringBuilder sb)
          Override to provide the body of the xml.
 java.util.List<QueryRuleOperation> getOperations()
          Sets the list of QueryRuleOperation
 java.lang.String getRequestTag()
          Gets the xml element tag used in the request
 void setOperations(java.util.List<QueryRuleOperation> operations)
          Returns the list of QueryRuleOperation
 
Methods inherited from class atg.search.routing.command.SearchXMLObject
appendComplexXml, appendOptionalAttr, appendOptionalElem, appendOptionalElem, appendOptionalElem, appendRequiredAttr, appendRequiredElem, appendRequiredElem, appendRequiredValue, getAllAttributeXML, getAllBodyXML, getAttributeXML, getDefaultXmlBytes, getParentXMLObject, getXmlPath, setParentXMLObject, toString, toXML, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values
Constructor Detail

QueryRule

public QueryRule()
Method Detail

equals

public boolean equals(java.lang.Object pObject)
Overrides:
equals in class java.lang.Object

setOperations

public void setOperations(java.util.List<QueryRuleOperation> operations)
Returns the list of QueryRuleOperation

Parameters:
operations - List of QueryRuleOperation

getOperations

public java.util.List<QueryRuleOperation> getOperations()
Sets the list of QueryRuleOperation

Returns:
List of QueryRuleOperation

fromXmlParser

protected static QueryRule fromXmlParser(atg.search.routing.utils.FastXMLModel xml,
                                         int rootIdx)

getRequestTag

public java.lang.String getRequestTag()
Gets the xml element tag used in the request

Specified by:
getRequestTag in class atg.search.routing.command.SearchXMLObject
Returns:
xml element tag

getBodyXML

protected void getBodyXML(java.lang.StringBuilder sb)
                   throws atg.search.routing.command.IncompleteCommandException
Override to provide the body of the xml. Do not include the main element tag.

Overrides:
getBodyXML in class atg.search.routing.command.SearchXMLObject
Parameters:
sb - shared buffer
Throws:
atg.search.routing.command.IncompleteCommandException