|
|||||||||
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.CollectionConstraint
public class CollectionConstraint
Collection constraint is used to constraint the result on a directory path of the indexed documents. This will be typically used when there is a large number of collections (document sets).
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
static java.lang.String |
TAG
|
Constructor Summary | |
---|---|
CollectionConstraint()
|
Method Summary | |
---|---|
protected DocumentSetConstraint |
createFromParser(atg.search.routing.utils.FastXMLModel pXml,
int rootIdx)
|
boolean |
equals(java.lang.Object pObject)
compares this with another by an XML comparison Note that this will generate full xml. |
protected void |
getAttributeXML(java.lang.StringBuilder sb)
|
protected void |
getBodyXML(java.lang.StringBuilder sb)
|
java.lang.String |
getPath()
Returns the collection path |
java.lang.String |
getRequestTag()
|
static java.lang.String |
getTag()
|
java.lang.Float |
getWeight()
Returns the weight of the constraint |
void |
setPath(java.lang.String pPath)
Sets the collection path |
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 CollectionConstraint |
valueOf(java.lang.String pXml)
Constructs a collection 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, 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 CollectionConstraint()
Method Detail |
---|
public static java.lang.String getTag()
public boolean equals(java.lang.Object pObject)
DocumentSetConstraint
equals
in class DocumentSetConstraint
pObject
- another DocumentSetConstraint
public void setPath(java.lang.String pPath)
pPath
- the collection pathpublic java.lang.Float getWeight()
public void setWeight(java.lang.Float weight)
weight
- the weight of the constraintpublic java.lang.String getPath()
protected void getBodyXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
atg.search.routing.command.IncompleteCommandException
protected void getAttributeXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
atg.search.routing.command.IncompleteCommandException
public java.lang.String toXml()
DocumentSetConstraint
toXml
in class DocumentSetConstraint
public static CollectionConstraint valueOf(java.lang.String pXml)
pXml
- xml
protected DocumentSetConstraint createFromParser(atg.search.routing.utils.FastXMLModel pXml, int rootIdx)
createFromParser
in class DocumentSetConstraint
public java.lang.String getRequestTag()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |