hudson.search
Class SuggestedItem

java.lang.Object
  extended by hudson.search.SuggestedItem

public class SuggestedItem
extends Object

One item of a search result.

Author:
Kohsuke Kawaguchi

Field Summary
 SearchItem item
           
 
Constructor Summary
SuggestedItem(SearchItem top)
           
SuggestedItem(SuggestedItem parent, SearchItem item)
           
 
Method Summary
 String getPath()
           
 String getUrl()
          Gets the URL to this item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

item

public final SearchItem item
Constructor Detail

SuggestedItem

public SuggestedItem(SearchItem top)

SuggestedItem

public SuggestedItem(SuggestedItem parent,
                     SearchItem item)
Method Detail

getPath

public String getPath()

getUrl

public String getUrl()
Gets the URL to this item.

Returns:
URL that starts with '/' but doesn't end with '/'. The path is the combined path from the SearchIndex where the search started to the final item found. Thus to convert to the actual URL, the caller would need to prepend the URL of the object where the search started.


Copyright © 2004-2013. All Rights Reserved.