/******************************************************************************* * Copyright (c) 2000, 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.update.internal.core; /** * This class is used to retrieve the fragments associated with a plugin. */ public class FragmentEntry { private String pluginId; private String pluginVersion; private String name; private String location; public FragmentEntry(String id, String version, String name, String location) { this.pluginId = id; this.pluginVersion = version; this.name = name; this.location = location; } /** * @return the plugin translatable name */ public String getName() { return name; } /** * @return the location of the plugin */ public String getLocation() { return location; } /** * Returns the plug-in identifier for this entry. * * @return the plug-in identifier, or <code>null</code> */ public String getPluginIdentifier() { return pluginId; } /** * Returns the plug-in version for this entry. * * @return the plug-in version, or <code>null</code> */ public String getPluginVersion() { return pluginVersion; } /** * @see Object#toString() */ public String toString() { String msg = (getPluginIdentifier()!=null)?getPluginIdentifier().toString():""; //$NON-NLS-1$ msg += getPluginVersion()!=null?" "+getPluginVersion().toString():""; //$NON-NLS-1$ //$NON-NLS-2$ return msg; } }