atg.search.routing.command.search
Class StringConstraint

java.lang.Object
  extended by atg.search.routing.command.SearchXMLObject
      extended by atg.search.routing.command.search.DocumentSetConstraint
          extended by atg.search.routing.command.search.BaseConstraint
              extended by atg.search.routing.command.search.StringConstraint
All Implemented Interfaces:
java.io.Serializable

public class StringConstraint
extends BaseConstraint

String value constraint on the query

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
           
static java.lang.String TAG
           
 
Constructor Summary
StringConstraint()
           
 
Method Summary
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
 java.lang.String getProperty()
          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()
           
 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 setName(java.lang.String pName)
          Sets the name of the property to constrain against
 void setOperation(StringOp pOperation)
          Sets the string operation
 void setProperty(java.lang.String pProperty)
          Deprecated. Use setName(String) instead
 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
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, getParser, getPropConstraints
 
Methods inherited from class atg.search.routing.command.SearchXMLObject
appendComplexXml, appendOptionalAttr, appendOptionalElem, appendOptionalElem, appendOptionalElem, appendOptionalValue, appendRequiredAttr, appendRequiredElem, appendRequiredElem, appendRequiredValue, getAllAttributeXML, getAllBodyXML, getDefaultXmlBytes, getParentXMLObject, getXmlPath, isPrintedFirstChild, setParentXMLObject, setPrintedFirstChild, toString, toXML, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
See Also:
Constant Field Values

TAG

public static final java.lang.String TAG
See Also:
Constant Field Values
Constructor Detail

StringConstraint

public StringConstraint()
Method Detail

getTag

public static java.lang.String getTag()

equals

public boolean equals(java.lang.Object pObject)
Overrides:
equals in class java.lang.Object

getProperty

public java.lang.String getProperty()
Deprecated. Use getName() instead

Returns the name of the property to constrain against

Returns:
name of the property to constrain against

setProperty

public void setProperty(java.lang.String pProperty)
Deprecated. Use setName(String) instead

Sets the property to constrain against

Parameters:
pProperty - the property to constrain against

getName

public java.lang.String getName()
Returns the name of the property to constrain against

Returns:
name of the property to constrain against

setName

public void setName(java.lang.String pName)
Sets the name of the property to constrain against

Parameters:
pProperty - the name of the property to constrain against

getRepositoryId

public java.lang.String getRepositoryId()
Returns the optional repository id, or null if not provided. always null if this is part of a response

Returns:
the optional repository id, or null if not provided. always null if this is part of a response

setRepositoryId

public void setRepositoryId(java.lang.String pRepositoryId)
An optional value used for reporting purposes. it is not used by the engine

Parameters:
pRepositoryId - repository id

setValue

public void setValue(java.lang.String pValue)
sets the value or the first part of a range value. Also see setValue2(String)

Parameters:
pValue - value or part of range

setOperation

public void setOperation(StringOp pOperation)
Sets the string operation

Parameters:
pOperation -

isCaseSensitive

public java.lang.Boolean isCaseSensitive()
Indicates whether the constraint is case sensitive

Returns:
whether the constraint is case sensitive

setCaseSensitive

public void setCaseSensitive(java.lang.Boolean pCaseSensitive)
Sets whether the constraint is case sensitive

Parameters:
pCaseSensitive - whether the constraint is case sensitive

getOperation

public StringOp getOperation()
Returns the operation

Returns:
the operation

getValue

public java.lang.String getValue()
Returns the value, which might be the first part of a range

Returns:
the value, which might be the first part of a range

getWeight

public java.lang.Float getWeight()
Returns the weight

Returns:
the weight

setWeight

public void setWeight(java.lang.Float pWeight)
Sets the weight

Parameters:
pWeight - the weight

getBodyXML

protected void getBodyXML(java.lang.StringBuilder sb)
                   throws atg.search.routing.command.IncompleteCommandException
Overrides:
getBodyXML in class atg.search.routing.command.SearchXMLObject
Throws:
atg.search.routing.command.IncompleteCommandException

getAttributeXML

protected void getAttributeXML(java.lang.StringBuilder sb)
                        throws atg.search.routing.command.IncompleteCommandException
Overrides:
getAttributeXML in class atg.search.routing.command.SearchXMLObject
Throws:
atg.search.routing.command.IncompleteCommandException

valueOf

public static StringConstraint valueOf(java.lang.String pXml)
Constructs a new string constraint from xml

Parameters:
pXml - the xml
Returns:
a new string constraint

createFromParser

protected DocumentSetConstraint createFromParser(atg.search.routing.utils.SearchMessageNode pXml)
Specified by:
createFromParser in class DocumentSetConstraint

getValue1

public java.lang.String getValue1()
Returns the first value of the range, same as getValue()

Returns:
first value of the range, same as getValue()

setValue2

public void setValue2(java.lang.String pValue2)
Sets the second value if this is a range value

Parameters:
pValue2 - the second value if this is a range value

getValue2

public java.lang.String getValue2()
Returns the second value if this is a range value, otherwise null

Returns:
the second value if this is a range value, otherwise null

getRequestTag

public java.lang.String getRequestTag()
Specified by:
getRequestTag in class atg.search.routing.command.SearchXMLObject