|
|||||||||
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.NumericConstraint
public class NumericConstraint
Numeric value constraint on the query.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
static java.lang.String |
TAG
|
Constructor Summary | |
---|---|
NumericConstraint()
|
Method Summary | |
---|---|
protected NumericConstraint |
createFromParser(atg.search.routing.utils.FastXMLModel pXml,
int rootIdx)
|
NumOp |
getOperation()
Returns the operation |
java.lang.String |
getProperty()
Returns the property |
java.lang.String |
getRepositoryId()
Returns the optional repository id, or null if not provided. |
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 |
void |
setOperation(NumOp pOperation)
Sets the comparison operation to use |
void |
setProperty(java.lang.String pProperty)
Sets the property to constraint against |
void |
setRepositoryId(java.lang.String pRepositoryId)
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 |
java.lang.String |
toXml()
Converts this constraint to the XML representation that can be sent in request. |
static NumericConstraint |
valueOf(java.lang.String pXml)
Converts xml into a new instance |
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 NumericConstraint()
Method Detail |
---|
public static java.lang.String getTag()
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.String getProperty()
public java.lang.Double getValue()
getValue1()
)
getValue1()
).public java.lang.Double getValue1()
public java.lang.Double getValue2()
public void setProperty(java.lang.String pProperty)
pProperty
- the property to constraint 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 usepublic java.lang.String toXml()
DocumentSetConstraint
toXml
in class DocumentSetConstraint
public static NumericConstraint valueOf(java.lang.String pXml)
pXml
- constraint xml
protected NumericConstraint 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 |