public class KeywordConstraint extends BaseConstraint
KeywordType
for the types of constraints.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
Constructor and Description |
---|
KeywordConstraint() |
Modifier and Type | Method and Description |
---|---|
protected DocumentSetConstraint |
createFromParser(atg.search.routing.utils.SearchMessageNode pXml) |
boolean |
equals(java.lang.Object pObject) |
protected void |
getAttributeXML(java.lang.StringBuilder sb) |
protected void |
getBodyXML(java.lang.StringBuilder sb) |
KeywordType |
getMode()
Returns the mode
|
java.lang.String |
getRequestTag() |
java.lang.String |
getValue()
Returns the keywords
|
java.lang.Float |
getWeight()
Returns the preference value if this expression is used in a weightedProps
|
int |
hashCode() |
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
|
static KeywordConstraint |
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 boolean equals(java.lang.Object pObject)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void setMode(KeywordType pMode)
pMode
- public void setValue(java.lang.String pValue)
pValue
- keywords, space-delimitedpublic KeywordType getMode()
public java.lang.String getValue()
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
public java.lang.String getRequestTag()
getRequestTag
in class atg.search.routing.command.SearchXMLObject
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 void setWeight(java.lang.Float pWeight)
pWeight
- public java.lang.Float getWeight()
public static KeywordConstraint valueOf(java.lang.String pXml)
protected DocumentSetConstraint createFromParser(atg.search.routing.utils.SearchMessageNode pXml)
createFromParser
in class DocumentSetConstraint