atg.search.routing.command.search
Class RelatedPhraseTerm

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

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

A related phrase term

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
RelatedPhraseTerm(float score, int count, int freq1, int freq2, java.lang.String term)
          Constructs a new instance
 
Method Summary
 boolean equals(java.lang.Object pObject)
           
protected  void getAttributeXML(java.lang.StringBuilder sb)
           
protected  void getBodyXML(java.lang.StringBuilder sb)
           
 int getCount()
          Returns the count
 int getFreq1()
          Returns the first frequency value
 int getFreq2()
          Returns the second frequency value
 java.lang.String getRequestTag()
           
 float getScore()
          Returns the score
 java.lang.String getTerm()
          Returns the term
 void setCount(int count)
          Sets the count
 void setFreq1(int freq1)
          Sets the first frequency value
 void setFreq2(int freq2)
          Sets the second frequency value
 void setScore(float score)
          Sets the score
 void setTerm(java.lang.String term)
          Sets the term
 
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

RelatedPhraseTerm

public RelatedPhraseTerm(float score,
                         int count,
                         int freq1,
                         int freq2,
                         java.lang.String term)
Constructs a new instance

Parameters:
score -
count -
freq1 -
freq2 -
term -
Method Detail

equals

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

getScore

public float getScore()
Returns the score

Returns:
the score

setScore

public void setScore(float score)
Sets the score

Parameters:
score - the score

getCount

public int getCount()
Returns the count

Returns:
the count

setCount

public void setCount(int count)
Sets the count

Parameters:
count - the count

getFreq1

public int getFreq1()
Returns the first frequency value

Returns:
the first frequency value

setFreq1

public void setFreq1(int freq1)
Sets the first frequency value

Parameters:
freq1 - the first frequency value

getFreq2

public int getFreq2()
Returns the second frequency value

Returns:
the second frequency value

setFreq2

public void setFreq2(int freq2)
Sets the second frequency value

Parameters:
freq2 - the second frequency value

getTerm

public java.lang.String getTerm()
Returns the term

Returns:
the term

setTerm

public void setTerm(java.lang.String term)
Sets the term

Parameters:
term - the term

getRequestTag

public java.lang.String getRequestTag()
Specified by:
getRequestTag in class atg.search.routing.command.SearchXMLObject

getAttributeXML

protected void getAttributeXML(java.lang.StringBuilder sb)
                        throws atg.search.routing.command.IncompleteCommandException
Overrides:
getAttributeXML in class atg.search.routing.command.SearchXMLObject
Throws:
atg.search.routing.command.IncompleteCommandException

getBodyXML

protected void getBodyXML(java.lang.StringBuilder sb)
                   throws atg.search.routing.command.IncompleteCommandException
Overrides:
getBodyXML in class atg.search.routing.command.SearchXMLObject
Throws:
atg.search.routing.command.IncompleteCommandException