public class CollectionConstraint extends BaseConstraint
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
static java.lang.String |
TAG |
Constructor and Description |
---|
CollectionConstraint() |
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) |
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
|
int |
hashCode() |
void |
setPath(java.lang.String pPath)
Sets the collection path
|
void |
setWeight(java.lang.Float weight)
Sets the weight of the constraint
|
static CollectionConstraint |
valueOf(java.lang.String pXml)
Constructs a collection constraint from xml.
|
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 static final java.lang.String TAG
public static java.lang.String getTag()
public boolean equals(java.lang.Object pObject)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
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
getBodyXML
in class atg.search.routing.command.SearchXMLObject
atg.search.routing.command.IncompleteCommandException
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 static CollectionConstraint valueOf(java.lang.String pXml)
pXml
- xmlprotected DocumentSetConstraint createFromParser(atg.search.routing.utils.SearchMessageNode pXml)
createFromParser
in class DocumentSetConstraint
public java.lang.String getRequestTag()
getRequestTag
in class atg.search.routing.command.SearchXMLObject