diff options
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/p2/metadata/IRequirement.java')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/p2/metadata/IRequirement.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/p2/metadata/IRequirement.java b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/p2/metadata/IRequirement.java new file mode 100644 index 000000000..cc866e2fa --- /dev/null +++ b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/p2/metadata/IRequirement.java @@ -0,0 +1,38 @@ +/******************************************************************************* +* Copyright (c) 2009 IBM 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 - initial API and implementation +******************************************************************************/ +package org.eclipse.equinox.p2.metadata; + +import org.eclipse.equinox.p2.metadata.expression.IMatchExpression; +import org.osgi.framework.Filter; + +/** + * @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 IRequirement { + + int getMin(); + + int getMax(); + + Filter getFilter(); + + /** + * Returns a boolean match expression that will return true for any + * {@link IInstallableUnit} that matches the requirement. + * @return A boolean match expression for installable unit matching. + */ + IMatchExpression<IInstallableUnit> getMatches(); + + boolean isMatch(IInstallableUnit iu); + + boolean isGreedy(); +}
\ No newline at end of file |