|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.search.routing.command.SearchXMLObject atg.search.routing.command.search.RankProperty
public class RankProperty
One ranking property score and associated details
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
RankProperty()
|
Method Summary | |
---|---|
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 |
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 |
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 |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public RankProperty()
Method Detail |
---|
public boolean equals(java.lang.Object pObject)
equals
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 buffer
atg.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 buffer
atg.search.routing.command.IncompleteCommandException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |