public class LanguageConstraint extends BaseConstraint
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
static java.lang.String |
TAG |
Constructor and Description |
---|
LanguageConstraint() |
Modifier and Type | Method and Description |
---|---|
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
|
int |
hashCode() |
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) |
getXml, setXml
createFromXML, getParser, getPropConstraints
appendComplexXml, appendOptionalAttr, appendOptionalElem, appendOptionalElem, appendOptionalElem, appendOptionalValue, appendRequiredAttr, appendRequiredElem, appendRequiredElem, appendRequiredValue, getAllAttributeXML, getAllBodyXML, getDefaultXmlBytes, getParentXMLObject, getXmlPath, isPrintedFirstChild, setParentXMLObject, setPrintedFirstChild, toString, toXML, toXML
public static final java.lang.String CLASS_VERSION
public static final java.lang.String TAG
public static java.lang.String getTag()
public boolean equals(java.lang.Object pObject)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public atg.search.routing.utils.Language getLanguage()
public void setLanguage(atg.search.routing.utils.Language pLanguage)
pLanguage
- the languagepublic java.lang.Float getWeight()
public void setWeight(java.lang.Float pWeight)
pWeight
- protected void getBodyXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
getBodyXML
in class atg.search.routing.command.SearchXMLObject
atg.search.routing.command.IncompleteCommandException
protected void getAttributeXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
getAttributeXML
in class atg.search.routing.command.SearchXMLObject
atg.search.routing.command.IncompleteCommandException
public static LanguageConstraint valueOf(java.lang.String pXml)
protected DocumentSetConstraint createFromParser(atg.search.routing.utils.SearchMessageNode pRoot)
createFromParser
in class DocumentSetConstraint
public java.lang.String getRequestTag()
getRequestTag
in class atg.search.routing.command.SearchXMLObject