com.atlassian.jira.webtest.framework.core.query
Class Queries.ConditionalQueryForValue<V>

java.lang.Object
  extended by com.atlassian.jira.webtest.framework.core.AbstractPollingQuery
      extended by com.atlassian.jira.webtest.framework.core.query.AbstractTimedQuery<T>
          extended by com.atlassian.jira.webtest.framework.core.query.AbstractConditionBasedQuery<V>
              extended by com.atlassian.jira.webtest.framework.core.query.Queries.ConditionalQueryForValue<V>
All Implemented Interfaces:
ClockAware, PollingQuery, TimedQuery<V>
Enclosing class:
Queries

public static class Queries.ConditionalQueryForValue<V>
extends AbstractConditionBasedQuery<V>


Field Summary
 
Fields inherited from class com.atlassian.jira.webtest.framework.core.AbstractPollingQuery
defaultTimeout, interval
 
Method Summary
protected  V evaluateNow()
          Hook for subclasses, semantics are basically the same as AbstractConditionBasedQuery.currentValue().
protected  V substituteValue()
           A 'null' value for given context that will be returned by AbstractConditionBasedQuery.currentValue() in case the underlying condition evaluates to false.
 String toString()
           
 
Methods inherited from class com.atlassian.jira.webtest.framework.core.query.AbstractConditionBasedQuery
condition, currentValue, shouldReturn
 
Methods inherited from class com.atlassian.jira.webtest.framework.core.query.AbstractTimedQuery
by, by, byDefaultTimeout, clock, expirationHandler, now, resetLastRun
 
Methods inherited from class com.atlassian.jira.webtest.framework.core.AbstractPollingQuery
defaultTimeout, interval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.webtest.framework.core.PollingQuery
defaultTimeout, interval
 

Method Detail

evaluateNow

protected V evaluateNow()
Description copied from class: AbstractConditionBasedQuery
Hook for subclasses, semantics are basically the same as AbstractConditionBasedQuery.currentValue().

Specified by:
evaluateNow in class AbstractConditionBasedQuery<V>
Returns:
current evaluation of this query
See Also:
AbstractTimedQuery.currentValue()

substituteValue

protected V substituteValue()
Description copied from class: AbstractConditionBasedQuery

A 'null' value for given context that will be returned by AbstractConditionBasedQuery.currentValue() in case the underlying condition evaluates to false.

Subclasses may override this method to provide non-null empty values, depending on the query context

Overrides:
substituteValue in class AbstractConditionBasedQuery<V>
Returns:
'null' substitution of the query result

toString

public String toString()
Overrides:
toString in class AbstractTimedQuery<V>


Copyright © 2002-2013 Atlassian. All Rights Reserved.