|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.search.routing.command.search.DocumentSetConstraint atg.search.routing.command.search.BaseConstraint atg.search.routing.command.search.LanguageConstraint
public class LanguageConstraint
Document language constraint.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
static java.lang.String |
TAG
|
Constructor Summary | |
---|---|
LanguageConstraint()
|
Method Summary | |
---|---|
protected LanguageConstraint |
createFromParser(atg.search.routing.utils.FastXMLModel pXml,
int rootIdx)
|
atg.search.routing.utils.Language |
getLanguage()
Returns the language of the constraint |
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 |
java.lang.String |
toXml()
Converts this constraint to the XML representation that can be sent in request. |
static LanguageConstraint |
valueOf(java.lang.String pXml)
|
Methods inherited from class atg.search.routing.command.search.BaseConstraint |
---|
getXml, setXml |
Methods inherited from class atg.search.routing.command.search.DocumentSetConstraint |
---|
createFromXML, equals, escapeToXml, getParser, getPropConstraints, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CLASS_VERSION
public static final java.lang.String TAG
Constructor Detail |
---|
public LanguageConstraint()
Method Detail |
---|
public static java.lang.String getTag()
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
- public java.lang.String toXml()
DocumentSetConstraint
toXml
in class DocumentSetConstraint
public static LanguageConstraint valueOf(java.lang.String pXml)
protected LanguageConstraint createFromParser(atg.search.routing.utils.FastXMLModel pXml, int rootIdx)
createFromParser
in class DocumentSetConstraint
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |