All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.help.search.ISearchResult Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright (c) 2011, 2015 IBM Corporation and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

package org.eclipse.help.search;

import java.net.URL;

import org.eclipse.help.IToc;

/**
 * This class holds information for a single Search Result
 * @since 3.6
 */
public interface ISearchResult {

	/**
	 * Get the href of this search result topic
	 *
	 * @return the href of this search result topic
	 */
	public String getHref();

	/**
	 * Get the description of this search result topic
	 *
	 * @return the description of this search result topic
	 */
	public String getDescription();

	/**
	 * Gets a summary of this search result
	 *
	 * @return a summary of this search result
	 */
	public String getSummary();

	/**
	 * Gets the label for this search result
	 *
	 * @return the label for this search result
	 */
	public String getLabel();

	/**
	 * Gets the ID
	 *
	 * @return the ID
	 */
	public String getId();

	/**
	 * Gets the participant ID
	 *
	 * @return the participant ID
	 */
	public String getParticipantId();

	/**
	 * Gets the Icon for this topic
	 *
	 * @return the Icon for this topic
	 */
	public URL getIcon();

	/**
	 * Gets the score float value associated with this search result
	 *
	 * @return the score float value associated with this search result
	 */
	public float getScore();

	/**
	 * Gets the IToc parent of this result
	 *
	 * @return the IToc parent of this result
	 */
	public IToc getToc();

	/**
	 * Returns whether the result a potential hit
	 *
	 * @return true if the result a potential hit, false otherwise
	 */
	public boolean isPotentialHit();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy