public class MockSearcherInformation<T extends SearchableField> extends Object implements SearcherInformation<T>
SearcherInformation
.Constructor and Description |
---|
MockSearcherInformation(String name) |
MockSearcherInformation(String id,
String nameKey,
String name,
T field,
List<FieldIndexer> indexers,
SearcherGroupType searcherGroup) |
Modifier and Type | Method and Description |
---|---|
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() |
public MockSearcherInformation(String id, String nameKey, String name, T field, List<FieldIndexer> indexers, SearcherGroupType searcherGroup)
public MockSearcherInformation(String name)
public String getId()
SearcherInformation
getId
in interface SearcherInformation<T extends SearchableField>
public String getNameKey()
SearcherInformation
getNameKey
in interface SearcherInformation<T extends SearchableField>
public T getField()
getField
in interface SearcherInformation<T extends SearchableField>
public List<FieldIndexer> getRelatedIndexers()
SearcherInformation
FieldIndexer
objects. The objects should be initialised and ready for actiongetRelatedIndexers
in interface SearcherInformation<T extends SearchableField>
List
of FieldIndexer
objects. Must not be null. Return an empty list if none availablepublic SearcherGroupType getSearcherGroupType()
SearcherInformation
SearcherGroupType.CUSTOM
group.getSearcherGroupType
in interface SearcherInformation<T extends SearchableField>
public void setId(String id)
public void setNameKey(String nameKey)
public void setName(String name)
public void setField(T field)
public void setIndexers(List<FieldIndexer> indexers)
public void setSearcherGroupType(SearcherGroupType searcherGroupType)
Copyright © 2002-2019 Atlassian. All Rights Reserved.