diff options
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/p2/metadata/IProvidedCapability.java')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/p2/metadata/IProvidedCapability.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/p2/metadata/IProvidedCapability.java b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/p2/metadata/IProvidedCapability.java new file mode 100644 index 000000000..0496e8925 --- /dev/null +++ b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/p2/metadata/IProvidedCapability.java @@ -0,0 +1,41 @@ +/******************************************************************************* +* Copyright (c) 2008, 2009 EclipseSource 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: +* EclipseSource - initial API and implementation + * IBM - ongoing development +******************************************************************************/ +package org.eclipse.equinox.p2.metadata; + +/** + * Describes a capability as exposed or required by an installable unit + * + * @noimplement This interface is not intended to be implemented by clients. + * @noextend This interface is not intended to be extended by clients. + * @since 2.0 + */ +public interface IProvidedCapability { + + public String getName(); + + public String getNamespace(); + + public Version getVersion(); + + /** + * Returns whether this provided capability is equal to the given object. + * + * This method returns <i>true</i> if: + * <ul> + * <li> Both this object and the given object are of type IProvidedCapability + * <li> The result of <b>getName()</b> on both objects are equal + * <li> The result of <b>getNamespace()</b> on both objects are equal + * <li> The result of <b>getVersion()</b> on both objects are equal + * </ul> + */ + public boolean equals(Object other); + +}
\ No newline at end of file |