public class

MockIssueSearcher

extends Object
implements IssueSearcher<T extends SearchableField>
java.lang.Object
   ↳ com.atlassian.jira.issue.search.searchers.MockIssueSearcher<T extends com.atlassian.jira.issue.fields.SearchableField>
Known Direct Subclasses

Class Overview

A simple mock implementation of the IssueSearcher interface for testsing.

Summary

[Expand]
Inherited Fields
From interface com.atlassian.jira.issue.search.searchers.IssueSearcher
Public Constructors
MockIssueSearcher(String id)
Public Methods
boolean equals(Object o)
T getField()
String getId()
SearcherInformation<T> getSearchInformation()
Provides an object that contains information about the Searcher.
SearchInputTransformer getSearchInputTransformer()
Provides an object that will allow you to transform raw request parameters to field holder values and field holder values to Clause search representations.
SearchRenderer getSearchRenderer()
Provides an object that will allow you to render the edit and view html for a searcher.
int hashCode()
void init(T field)
Initialises the searcher with a given field.
void setInformation(SearcherInformation<T> information)
void setRenderer(SearchRenderer renderer)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.search.searchers.IssueSearcher

Public Constructors

public MockIssueSearcher (String id)

Public Methods

public boolean equals (Object o)

public T getField ()

public String getId ()

public SearcherInformation<T> getSearchInformation ()

Provides an object that contains information about the Searcher.

Returns
  • the search information provider for this searcher.

public SearchInputTransformer getSearchInputTransformer ()

Provides an object that will allow you to transform raw request parameters to field holder values and field holder values to Clause search representations.

Returns
  • the search input handler for this searcher.

public SearchRenderer getSearchRenderer ()

Provides an object that will allow you to render the edit and view html for a searcher. This also provides methods that indicate if the view and edit methods should be invoked.

Returns
  • the search renderer for this searcher.

public int hashCode ()

public void init (T field)

Initialises the searcher with a given field.

Parameters
field the field object. This may be null. (So you can have searchers on non-fields)

public void setInformation (SearcherInformation<T> information)

public void setRenderer (SearchRenderer renderer)