hudson.search
Class CollectionSearchIndex<SMT extends SearchableModelObject>

java.lang.Object
  extended by hudson.search.CollectionSearchIndex<SMT>
All Implemented Interfaces:
SearchIndex

public abstract class CollectionSearchIndex<SMT extends SearchableModelObject>
extends Object
implements SearchIndex

SearchIndex built on a Map.

Author:
Kohsuke Kawaguchi

Field Summary
 
Fields inherited from interface hudson.search.SearchIndex
EMPTY
 
Constructor Summary
CollectionSearchIndex()
           
 
Method Summary
protected abstract  Collection<SMT> all()
          Returns all items in the map.
 void find(String token, List<SearchItem> result)
           
protected abstract  SearchItem get(String key)
          Gets a single item that exactly matches the given key.
protected  String getName(SMT o)
           
 void suggest(String token, List<SearchItem> result)
          This method returns the superset of SearchIndex.find(String, List).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionSearchIndex

public CollectionSearchIndex()
Method Detail

get

protected abstract SearchItem get(String key)
Gets a single item that exactly matches the given key.


all

protected abstract Collection<SMT> all()
Returns all items in the map. The collection can include null items.


find

public void find(String token,
                 List<SearchItem> result)
Specified by:
find in interface SearchIndex

suggest

public void suggest(String token,
                    List<SearchItem> result)
Description copied from interface: SearchIndex
This method returns the superset of SearchIndex.find(String, List).

Specified by:
suggest in interface SearchIndex

getName

protected String getName(SMT o)


Copyright © 2004-2013. All Rights Reserved.