atg.search.routing.command.search
Class LanguageConstraint
java.lang.Object
atg.search.routing.command.SearchXMLObject
atg.search.routing.command.search.DocumentSetConstraint
atg.search.routing.command.search.BaseConstraint
atg.search.routing.command.search.LanguageConstraint
- All Implemented Interfaces:
- java.io.Serializable
public class LanguageConstraint
- extends BaseConstraint
Document language constraint.
- See Also:
- Serialized Form
Method Summary |
protected DocumentSetConstraint |
createFromParser(atg.search.routing.utils.SearchMessageNode pRoot)
|
boolean |
equals(java.lang.Object pObject)
|
protected void |
getAttributeXML(java.lang.StringBuilder sb)
|
protected void |
getBodyXML(java.lang.StringBuilder sb)
|
atg.search.routing.utils.Language |
getLanguage()
Returns the language of the constraint |
java.lang.String |
getRequestTag()
|
static java.lang.String |
getTag()
|
java.lang.Float |
getWeight()
Returns the preference value if this expression is used in a weightedProps |
void |
setLanguage(atg.search.routing.utils.Language pLanguage)
Sets the language to constrain to |
void |
setWeight(java.lang.Float pWeight)
Sets the preference value if this expression is used in a weightedProps |
static LanguageConstraint |
valueOf(java.lang.String pXml)
|
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 |
CLASS_VERSION
public static final java.lang.String CLASS_VERSION
- See Also:
- Constant Field Values
TAG
public static final java.lang.String TAG
- See Also:
- Constant Field Values
LanguageConstraint
public LanguageConstraint()
getTag
public static java.lang.String getTag()
equals
public boolean equals(java.lang.Object pObject)
- Overrides:
equals
in class java.lang.Object
getLanguage
public atg.search.routing.utils.Language getLanguage()
- Returns the language of the constraint
- Returns:
- Returns the language.
setLanguage
public void setLanguage(atg.search.routing.utils.Language pLanguage)
- Sets the language to constrain to
- Parameters:
pLanguage
- the language
getWeight
public java.lang.Float getWeight()
- Returns the preference value if this expression is used in a weightedProps
- Returns:
- preference value if this expression is used in a weightedProps
setWeight
public void setWeight(java.lang.Float pWeight)
- Sets the preference value if this expression is used in a weightedProps
- Parameters:
pWeight
-
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
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
valueOf
public static LanguageConstraint valueOf(java.lang.String pXml)
createFromParser
protected DocumentSetConstraint createFromParser(atg.search.routing.utils.SearchMessageNode pRoot)
- Specified by:
createFromParser
in class DocumentSetConstraint
getRequestTag
public java.lang.String getRequestTag()
- Specified by:
getRequestTag
in class atg.search.routing.command.SearchXMLObject