public class NumericConstraint extends BaseConstraint
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
Constructor and Description |
---|
NumericConstraint() |
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
|
NumOp |
getOperation()
Returns the operation
|
java.lang.String |
getProperty()
Deprecated.
Use
getName() instead |
java.lang.String |
getRepositoryId()
Get the repository ID, an optional value used for reporting
purposes.
|
java.lang.String |
getRequestTag() |
static java.lang.String |
getTag() |
java.lang.Double |
getValue()
Returns the value (same as
getValue1() ) |
java.lang.Double |
getValue1()
Returns the value, or the first part of a range.
|
java.lang.Double |
getValue2()
Returns the second part of a range value, or null.
|
java.lang.Float |
getWeight()
Returns the weight
|
int |
hashCode() |
void |
setName(java.lang.String pName)
Sets the name of the property to constrain against
|
void |
setOperation(NumOp pOperation)
Sets the comparison operation to use
|
void |
setProperty(java.lang.String pProperty)
Deprecated.
Use
setName(String) instead |
void |
setRepositoryId(java.lang.String pRepositoryId)
Set the repository ID, an optional value used for reporting
purposes.
|
void |
setValue1(java.lang.Double pValue1)
Sets the first or only numerica value
|
void |
setValue2(java.lang.Double pValue2)
Sets the second numeric value, in the case of a range.
|
void |
setWeight(java.lang.Float pWeight)
Sets the weight
|
static NumericConstraint |
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 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 java.lang.String getRepositoryId()
public void setRepositoryId(java.lang.String pRepositoryId)
pRepositoryId
- repository idpublic java.lang.Float getWeight()
public void setWeight(java.lang.Float pWeight)
pWeight
- public NumOp getOperation()
public java.lang.Double getValue()
getValue1()
)getValue1()
).public java.lang.Double getValue1()
public java.lang.Double getValue2()
public java.lang.String getProperty()
getName()
insteadpublic void setProperty(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 void setValue1(java.lang.Double pValue1)
pValue1
- the numeric valuepublic void setValue2(java.lang.Double pValue2)
pValue2
- the second numeric value, in the case of a range. Do not set this if a range is not desired.public void setOperation(NumOp pOperation)
pOperation
- the comparison operation to useprotected 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 NumericConstraint valueOf(java.lang.String pXml)
protected 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