public class

MockSearcherInformation

extends Object
implements SearcherInformation<T extends SearchableField>
java.lang.Object
   ↳ com.atlassian.jira.mock.issue.search.searchers.information.MockSearcherInformation<T extends com.atlassian.jira.issue.fields.SearchableField>

Class Overview

Simple mock implementation of SearcherInformation.

Summary

Public Constructors
MockSearcherInformation(String id, String nameKey, String name, T field, List<FieldIndexer> indexers, SearcherGroupType searcherGroup)
MockSearcherInformation(String name)
Public Methods
T getField()
String getId()
The unique id of the searcher.
String getNameKey()
The i18n key that is used to lookup the searcher's name when it is displayed.
List<FieldIndexer> getRelatedIndexers()
Returns a list of FieldIndexer objects.
SearcherGroupType getSearcherGroupType()
The searcher group the searcher should be placed in.
void setField(T field)
void setId(String id)
void setIndexers(List<FieldIndexer> indexers)
void setName(String name)
void setNameKey(String nameKey)
void setSearcherGroupType(SearcherGroupType searcherGroupType)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.search.searchers.information.SearcherInformation

Public Constructors

public MockSearcherInformation (String id, String nameKey, String name, T field, List<FieldIndexer> indexers, SearcherGroupType searcherGroup)

public MockSearcherInformation (String name)

Public Methods

public T getField ()

public String getId ()

The unique id of the searcher.

Returns
  • unique id of the searcher.

public String getNameKey ()

The i18n key that is used to lookup the searcher's name when it is displayed.

Returns
  • i18n key that is used to lookup the searcher's name when it is displayed.

public List<FieldIndexer> getRelatedIndexers ()

Returns a list of FieldIndexer objects. The objects should be initialised and ready for action

Returns
  • List of FieldIndexer objects. Must not be null. Return an empty list if none available

public SearcherGroupType getSearcherGroupType ()

The searcher group the searcher should be placed in. Really only useful for system fields as custom fields are forced into the CUSTOM group.

Returns
  • the group the searcher should be associated with. Cannot not be null.

public void setField (T field)

public void setId (String id)

public void setIndexers (List<FieldIndexer> indexers)

public void setName (String name)

public void setNameKey (String nameKey)

public void setSearcherGroupType (SearcherGroupType searcherGroupType)

public String toString ()