public class PropConstraint extends BaseConstraint
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
TAG |
| Constructor and Description |
|---|
PropConstraint() |
| 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 |
getName()
Returns the name of the property to constrain against
|
StringOp |
getOperation()
Returns the operation for the constraint
|
java.util.List<PropConstraint> |
getPropConstraints()
Returns this constraint as an element of a list
|
java.lang.String |
getPropertyName()
Deprecated.
Use
getName() instead |
java.lang.String |
getRepositoryId()
Returns the optional repository id, or null if not provided.
|
java.lang.String |
getRequestTag() |
static java.lang.String |
getTag() |
PropType |
getType()
Returns the type of constraint
|
java.lang.String |
getValue()
Returns the value or first part of range
|
java.lang.String |
getValue1()
Returns the first value of the range, same as
getValue() |
java.lang.String |
getValue2()
Returns the second value if this is a range value, otherwise null
|
java.lang.Float |
getWeight()
Returns the weight
|
int |
hashCode() |
java.lang.Boolean |
isCaseSensitive()
Indicates whether the constraint is case sensitive
|
void |
setCaseSensitive(java.lang.Boolean pCaseSensitive)
Sets whether the constraint is case sensitive
|
void |
setName(java.lang.String pName)
Sets the name of the property to constrain against
|
void |
setOperation(StringOp pOperation)
Sets the operation for the constraint
|
void |
setPropertyName(java.lang.String pProperty)
Deprecated.
Use
setName(String) instead |
void |
setRepositoryId(java.lang.String pRepositoryId)
An optional value used for reporting purposes.
|
void |
setType(PropType pType)
Sets the type of constraint
|
void |
setValue(java.lang.String pValue)
Sets the value or first part of range.
|
void |
setValue2(java.lang.String pValue2)
Sets the second value if this is a range value
|
void |
setWeight(java.lang.Float pWeight)
Sets the weight
|
static PropConstraint |
valueOf(java.lang.String pXml) |
getXml, setXmlcreateFromXML, getParserappendComplexXml, appendOptionalAttr, appendOptionalElem, appendOptionalElem, appendOptionalElem, appendOptionalValue, appendRequiredAttr, appendRequiredElem, appendRequiredElem, appendRequiredValue, getAllAttributeXML, getAllBodyXML, getDefaultXmlBytes, getParentXMLObject, getXmlPath, isPrintedFirstChild, setParentXMLObject, setPrintedFirstChild, toString, toXML, toXMLpublic static 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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.util.List<PropConstraint> getPropConstraints()
getPropConstraints in class DocumentSetConstraintpublic java.lang.String getRepositoryId()
public void setRepositoryId(java.lang.String pRepositoryId)
pRepositoryId - repository idpublic java.lang.Boolean isCaseSensitive()
public void setCaseSensitive(java.lang.Boolean pCaseSensitive)
pCaseSensitive - whether the constraint is case sensitivepublic StringOp getOperation()
public void setOperation(StringOp pOperation)
pOperation - the operation for the constraintpublic java.lang.String getPropertyName()
getName() insteadpublic void setPropertyName(java.lang.String pProperty)
setName(String) insteadpProperty - the property to constrain againstpublic java.lang.String getName()
public void setName(java.lang.String pName)
pProperty - the name of the property to constrain againstpublic PropType getType()
public void setType(PropType pType)
pType - type of constraintpublic java.lang.String getValue()
public void setValue(java.lang.String pValue)
setValue2(String).pValue - value of constraint, or first in a rangepublic java.lang.Float getWeight()
public void setWeight(java.lang.Float pWeight)
pWeight - the weightprotected void getBodyXML(java.lang.StringBuilder sb)
throws atg.search.routing.command.IncompleteCommandException
getBodyXML in class atg.search.routing.command.SearchXMLObjectatg.search.routing.command.IncompleteCommandExceptionprotected void getAttributeXML(java.lang.StringBuilder sb)
throws atg.search.routing.command.IncompleteCommandException
getAttributeXML in class atg.search.routing.command.SearchXMLObjectatg.search.routing.command.IncompleteCommandExceptionpublic static PropConstraint valueOf(java.lang.String pXml)
protected DocumentSetConstraint createFromParser(atg.search.routing.utils.SearchMessageNode pXml)
createFromParser in class DocumentSetConstraintpublic java.lang.String getValue1()
getValue()getValue()public void setValue2(java.lang.String pValue2)
pValue2 - the second value if this is a range valuepublic java.lang.String getValue2()
public java.lang.String getRequestTag()
getRequestTag in class atg.search.routing.command.SearchXMLObject