atg.search.routing.command.search
Class BooleanLogic

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

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

Application of boolean logic at the item level

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
BooleanLogic()
           
 
Method Summary
 boolean equals(java.lang.Object pObject)
           
protected static BooleanLogic fromXmlParser(atg.search.routing.utils.SearchMessageNode pXml)
           
protected  void getAttributeXML(java.lang.StringBuilder sb)
          Override to provide attributes.
protected  void getBodyXML(java.lang.StringBuilder sb)
          Override to provide the body of the xml.
 java.lang.String getExpr()
          Returns the expression syntax
 BooleanMode getMode()
          Returns the boolean mode
 BooleanQuoteStatus getQuoted()
          returns the quote status
 java.lang.String getRequestTag()
          Gets the xml element tag used in the request
 DiagnosticStatus getStatus()
          Returns diagnostic status
 void setExpr(java.lang.String pExpr)
           
 void setMode(BooleanMode pMode)
           
 void setQuoted(BooleanQuoteStatus pQuoted)
          sets the quote status
 void setStatus(DiagnosticStatus pStatus)
           
 
Methods inherited from class atg.search.routing.command.SearchXMLObject
appendComplexXml, appendOptionalAttr, appendOptionalElem, appendOptionalElem, appendOptionalElem, appendOptionalValue, appendRequiredAttr, appendRequiredElem, appendRequiredElem, appendRequiredValue, getAllAttributeXML, getAllBodyXML, getDefaultXmlBytes, getParentXMLObject, getXmlPath, isPrintedFirstChild, setParentXMLObject, setPrintedFirstChild, 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 java.lang.String CLASS_VERSION
Class version string

Constructor Detail

BooleanLogic

public BooleanLogic()
Method Detail

equals

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

getQuoted

public BooleanQuoteStatus getQuoted()
returns the quote status

Returns:
the quote status

setQuoted

public void setQuoted(BooleanQuoteStatus pQuoted)
sets the quote status

Parameters:
pQuoted - the quote status

getMode

public BooleanMode getMode()
Returns the boolean mode

Returns:
boolean mode

setMode

public void setMode(BooleanMode pMode)

getExpr

public java.lang.String getExpr()
Returns the expression syntax

Returns:
boolean expression syntax

setExpr

public void setExpr(java.lang.String pExpr)

fromXmlParser

protected static BooleanLogic fromXmlParser(atg.search.routing.utils.SearchMessageNode pXml)

getStatus

public DiagnosticStatus getStatus()
Returns diagnostic status

Returns:
status

setStatus

public void setStatus(DiagnosticStatus pStatus)

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

getAttributeXML

protected void getAttributeXML(java.lang.StringBuilder sb)
                        throws atg.search.routing.command.IncompleteCommandException
Override to provide attributes.

Overrides:
getAttributeXML in class atg.search.routing.command.SearchXMLObject
Parameters:
sb - shared buffer
Throws:
atg.search.routing.command.IncompleteCommandException - if required values are missing

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