|
|||||||||
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.SetConstraint
public class SetConstraint
Set constraint is used to constraint the result on a directory path of the indexed documents. This will be typically used to implement topic (taxonomy) constraints.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
static java.lang.String |
TAG
|
Constructor Summary | |
---|---|
SetConstraint()
|
Method Summary | |
---|---|
protected SetConstraint |
createFromParser(atg.search.routing.utils.FastXMLModel pXml,
int rootIdx)
|
java.lang.String |
getPath()
Returns the set path |
java.lang.Boolean |
getRecurse()
Indicates whether the constraint is recursive |
static java.lang.String |
getTag()
|
java.lang.Float |
getWeight()
Returns the weight of the constraint |
java.lang.Boolean |
isRecurse()
Same as getRecurse() . |
void |
setPath(java.lang.String pPath)
Sets the set path |
void |
setRecurse(java.lang.Boolean pRecurse)
Controls whether the constraint is recursive |
void |
setWeight(java.lang.Float weight)
Sets the weight of the constraint |
java.lang.String |
toXml()
Converts this constraint to the XML representation that can be sent in request. |
static SetConstraint |
valueOf(java.lang.String pXml)
Constructs a set constraint from xml. |
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 SetConstraint()
Method Detail |
---|
public static java.lang.String getTag()
public java.lang.Boolean getRecurse()
public void setRecurse(java.lang.Boolean pRecurse)
pRecurse
- whether the constraint is recursivepublic void setPath(java.lang.String pPath)
pPath
- the set pathpublic java.lang.Float getWeight()
public void setWeight(java.lang.Float weight)
weight
- the weight of the constraintpublic java.lang.String getPath()
public java.lang.Boolean isRecurse()
getRecurse()
.
getRecurse()
public java.lang.String toXml()
DocumentSetConstraint
toXml
in class DocumentSetConstraint
public static SetConstraint valueOf(java.lang.String pXml)
pXml
- xml
protected SetConstraint 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 |