atg.search.routing.command.search
Class LanguageConstraint

java.lang.Object
  extended by atg.search.routing.command.search.DocumentSetConstraint
      extended by atg.search.routing.command.search.BaseConstraint
          extended by atg.search.routing.command.search.LanguageConstraint
All Implemented Interfaces:
java.io.Serializable

public class LanguageConstraint
extends BaseConstraint

Document language constraint.

See Also:
Serialized Form

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

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
Constructor Detail

LanguageConstraint

public LanguageConstraint()
Method Detail

getTag

public static java.lang.String getTag()

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 -

toXml

public java.lang.String toXml()
Description copied from class: DocumentSetConstraint
Converts this constraint to the XML representation that can be sent in request. You must override this to provide constraint-specific XML generation.

Specified by:
toXml in class DocumentSetConstraint
Returns:
xml

valueOf

public static LanguageConstraint valueOf(java.lang.String pXml)

createFromParser

protected LanguageConstraint createFromParser(atg.search.routing.utils.FastXMLModel pXml,
                                              int rootIdx)
Specified by:
createFromParser in class DocumentSetConstraint