public class RankProperty
extends atg.search.routing.command.SearchXMLObject
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
RankProperty() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object pObject) |
protected static RankProperty |
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.
|
float |
getMapping()
Returns the mapping value of the item's property value, ranges from 0 to max
|
float |
getMax()
Returns the maximum mapping value, acting as the denominator for the item's property's mapping value
|
int |
getMaxRank()
Returns the maximum mapping rank
|
java.lang.String |
getName()
Returns the name of property
|
int |
getRank()
Returns the mapping rank of the item's property value, ranges from 0 to maxrank
|
java.lang.String |
getRequestTag()
Gets the xml element tag used in the request
|
float |
getScore()
Returns the ranking property score
|
java.lang.String |
getSelected()
Returns the mapping element that was selected for the property value.
|
PropType |
getType()
Returns type of property
|
java.lang.String |
getValue()
Returns the item's value for this property, if more than one, the single value with the maximum mapping
|
float |
getWeight()
Returns weight of property
|
int |
hashCode() |
boolean |
isExists()
Returns whether the property exists or not for this item; true by default
|
void |
setExists(boolean pExists)
Sets whether the property exists or not for this item; true by default
|
void |
setMapping(float pMapping)
Setrs the mapping value of the item's property value, ranges from 0 to max
|
void |
setMax(float pMax)
Sets the maximum mapping value, acting as the denominator for the item's property's mapping value
|
void |
setMaxRank(int pMaxRank)
Sets the maximum mapping rank
|
void |
setName(java.lang.String pName)
Sets the name of property
|
void |
setRank(int pRank)
Sets the mapping rank of the item's property value, ranges from 0 to maxrank
|
void |
setScore(float pScore)
Sets the ranking property score
|
void |
setSelected(java.lang.String pSelected)
Sets the mapping element that was selected for the property value.
|
void |
setType(PropType pType)
Sets type of property
|
void |
setValue(java.lang.String pValue)
Sets the item's value for this property, if more than one, the single value with the maximum mapping
|
void |
setWeight(float pWeight)
Sets weight of property
|
appendComplexXml, appendOptionalAttr, appendOptionalElem, appendOptionalElem, appendOptionalElem, appendOptionalValue, appendRequiredAttr, appendRequiredElem, appendRequiredElem, appendRequiredValue, getAllAttributeXML, getAllBodyXML, getDefaultXmlBytes, getParentXMLObject, getXmlPath, isPrintedFirstChild, setParentXMLObject, setPrintedFirstChild, toString, toXML, toXML
public boolean equals(java.lang.Object pObject)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public float getScore()
public void setScore(float pScore)
pScore
- the ranking property scorepublic java.lang.String getName()
public void setName(java.lang.String pName)
pName
- the name of propertypublic boolean isExists()
public void setExists(boolean pExists)
pExists
- whether the property exists or not for this item; true by defaultpublic PropType getType()
public void setType(PropType pType)
pType
- type of propertypublic float getWeight()
public void setWeight(float pWeight)
pWeight
- weight of propertypublic java.lang.String getValue()
public void setValue(java.lang.String pValue)
pValue
- the item's value for this property, if more than one, the single value with the maximum mappingpublic int getMaxRank()
public void setMaxRank(int pMaxRank)
pMaxRank
- the maximum mapping rankpublic int getRank()
public void setRank(int pRank)
pRank
- the mapping rank of the item's property value, ranges from 0 to maxrankpublic java.lang.String getSelected()
public void setSelected(java.lang.String pSelected)
pSelected
- the mapping element that was selected for the property value. This is either the value
itself, for enumerated values; the selected range; or "default" if the value wasn't mapped.public float getMapping()
public void setMapping(float pMapping)
pMapping
- the mapping value of the item's property value, ranges from 0 to maxpublic float getMax()
public void setMax(float pMax)
pMax
- the maximum mapping value, acting as the denominator for the item's property's mapping valueprotected static RankProperty fromXmlParser(atg.search.routing.utils.SearchMessageNode pXml)
public java.lang.String getRequestTag()
getRequestTag
in class atg.search.routing.command.SearchXMLObject
protected void getAttributeXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
getAttributeXML
in class atg.search.routing.command.SearchXMLObject
sb
- shared bufferatg.search.routing.command.IncompleteCommandException
- if required values are missingprotected void getBodyXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
getBodyXML
in class atg.search.routing.command.SearchXMLObject
sb
- shared bufferatg.search.routing.command.IncompleteCommandException