|
|||||||||
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.KeywordConstraint
public class KeywordConstraint
This constraint is used for keyword constraints on the query. See KeywordType
for the types of constraints.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Constructor Summary | |
---|---|
KeywordConstraint()
|
Method Summary | |
---|---|
protected KeywordConstraint |
createFromParser(atg.search.routing.utils.FastXMLModel pXml,
int rootIdx)
|
KeywordType |
getMode()
Returns the mode |
java.lang.String |
getValue()
Returns the keywords |
java.lang.Float |
getWeight()
Returns the preference value if this expression is used in a weightedProps |
void |
setMode(KeywordType pMode)
Sets the mode, or keyword type |
void |
setValue(java.lang.String pValue)
Sets the keywords, which should be space-delimited |
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 KeywordConstraint |
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
Constructor Detail |
---|
public KeywordConstraint()
Method Detail |
---|
public void setMode(KeywordType pMode)
pMode
- public void setValue(java.lang.String pValue)
pValue
- keywords, space-delimitedpublic KeywordType getMode()
public java.lang.String getValue()
public java.lang.String toXml()
DocumentSetConstraint
toXml
in class DocumentSetConstraint
public void setWeight(java.lang.Float pWeight)
pWeight
- public java.lang.Float getWeight()
public static KeywordConstraint valueOf(java.lang.String pXml)
protected KeywordConstraint 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 |