|
|||||||||
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.StringConstraint
public class StringConstraint
String value constraint on the query
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
static java.lang.String |
TAG
|
Constructor Summary | |
---|---|
StringConstraint()
|
Method Summary | |
---|---|
protected StringConstraint |
createFromParser(atg.search.routing.utils.FastXMLModel pXml,
int rootIdx)
|
StringOp |
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.String |
getValue()
Returns the value, which might be the first part of a 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 |
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 |
setOperation(StringOp pOperation)
Sets the string operation |
void |
setProperty(java.lang.String pProperty)
Sets the property |
void |
setRepositoryId(java.lang.String pRepositoryId)
An optional value used for reporting purposes. |
void |
setValue(java.lang.String pValue)
sets the value or the first part of a range value. |
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 |
java.lang.String |
toXml()
Converts this constraint to the XML representation that can be sent in request. |
static StringConstraint |
valueOf(java.lang.String pXml)
Constructs a new string 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, 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 StringConstraint()
Method Detail |
---|
public static java.lang.String getTag()
public java.lang.String getRepositoryId()
public void setRepositoryId(java.lang.String pRepositoryId)
pRepositoryId
- repository idpublic void setProperty(java.lang.String pProperty)
pProperty
- the propertypublic void setValue(java.lang.String pValue)
setValue2(String)
pValue
- value or part of rangepublic void setOperation(StringOp pOperation)
pOperation
- public java.lang.Boolean isCaseSensitive()
public void setCaseSensitive(java.lang.Boolean pCaseSensitive)
pCaseSensitive
- whether the constraint is case sensitivepublic StringOp getOperation()
public java.lang.String getProperty()
public java.lang.String getValue()
public java.lang.Float getWeight()
public void setWeight(java.lang.Float pWeight)
pWeight
- the weightpublic java.lang.String toXml()
DocumentSetConstraint
toXml
in class DocumentSetConstraint
public static StringConstraint valueOf(java.lang.String pXml)
pXml
- the xml
protected StringConstraint createFromParser(atg.search.routing.utils.FastXMLModel pXml, int rootIdx)
createFromParser
in class DocumentSetConstraint
public 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |