com.atlassian.jira.functest.framework.navigator
Class QuerySearchCondition

java.lang.Object
  extended by com.atlassian.jira.functest.framework.navigator.QuerySearchCondition
All Implemented Interfaces:
NavigatorCondition

public class QuerySearchCondition
extends Object
implements NavigatorCondition

Represents the "Text Search" condition in Navigator.

Since:
v3.13

Nested Class Summary
static class QuerySearchCondition.QueryField
           
 
Constructor Summary
QuerySearchCondition()
           
QuerySearchCondition(QuerySearchCondition condition)
           
QuerySearchCondition(String queryString)
           
QuerySearchCondition(String queryString, Collection<? extends QuerySearchCondition.QueryField> fields)
           
 
Method Summary
 boolean addField(QuerySearchCondition.QueryField field)
           
 void assertSettings(net.sourceforge.jwebunit.WebTester tester)
          Assert that the condition is corrected configured for the passed tester.
 void clearFields()
           
 NavigatorCondition copyCondition()
           
 NavigatorCondition copyConditionForParse()
           
 boolean equals(Object o)
           
 String getQueryString()
           
 int hashCode()
           
 void parseCondition(net.sourceforge.jwebunit.WebTester tester)
          Get the condition as configured on the web page.
 boolean removeField(QuerySearchCondition.QueryField field)
           
 void setFields(Collection<? extends QuerySearchCondition.QueryField> fields)
           
 void setForm(net.sourceforge.jwebunit.WebTester tester)
          Set the Navigator options for this condition.
 void setQueryString(String queryString)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuerySearchCondition

public QuerySearchCondition()

QuerySearchCondition

public QuerySearchCondition(String queryString)

QuerySearchCondition

public QuerySearchCondition(String queryString,
                            Collection<? extends QuerySearchCondition.QueryField> fields)

QuerySearchCondition

public QuerySearchCondition(QuerySearchCondition condition)
Method Detail

setQueryString

public void setQueryString(String queryString)

getQueryString

public String getQueryString()

setFields

public void setFields(Collection<? extends QuerySearchCondition.QueryField> fields)

addField

public boolean addField(QuerySearchCondition.QueryField field)

removeField

public boolean removeField(QuerySearchCondition.QueryField field)

clearFields

public void clearFields()

setForm

public void setForm(net.sourceforge.jwebunit.WebTester tester)
Description copied from interface: NavigatorCondition
Set the Navigator options for this condition. The tester will be on the Navigator page when called.

Specified by:
setForm in interface NavigatorCondition
Parameters:
tester - the tester pointed at the Navigator page.

parseCondition

public void parseCondition(net.sourceforge.jwebunit.WebTester tester)
Description copied from interface: NavigatorCondition
Get the condition as configured on the web page. The tester will be on the Navigator page when called.

Specified by:
parseCondition in interface NavigatorCondition
Parameters:
tester - the tester pointed at the Navigator page.

assertSettings

public void assertSettings(net.sourceforge.jwebunit.WebTester tester)
Description copied from interface: NavigatorCondition
Assert that the condition is corrected configured for the passed tester. The tester must be on the Navigator page when called.

Specified by:
assertSettings in interface NavigatorCondition
Parameters:
tester - the tester pointed at the Navigator page.

copyCondition

public NavigatorCondition copyCondition()
Specified by:
copyCondition in interface NavigatorCondition
Returns:
a copy of the condition.

copyConditionForParse

public NavigatorCondition copyConditionForParse()
Specified by:
copyConditionForParse in interface NavigatorCondition
Returns:
a clean copy of the condition.

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.