Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.discovery/src/org/eclipse/equinox/internal/p2/discovery/model/FeatureFilter.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.discovery/src/org/eclipse/equinox/internal/p2/discovery/model/FeatureFilter.java69
1 files changed, 0 insertions, 69 deletions
diff --git a/bundles/org.eclipse.equinox.p2.discovery/src/org/eclipse/equinox/internal/p2/discovery/model/FeatureFilter.java b/bundles/org.eclipse.equinox.p2.discovery/src/org/eclipse/equinox/internal/p2/discovery/model/FeatureFilter.java
deleted file mode 100644
index 4e9d50b05..000000000
--- a/bundles/org.eclipse.equinox.p2.discovery/src/org/eclipse/equinox/internal/p2/discovery/model/FeatureFilter.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Tasktop Technologies 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:
- * Tasktop Technologies - initial API and implementation
- *******************************************************************************/
-package org.eclipse.equinox.internal.p2.discovery.model;
-
-/**
- * A means of specifying that a feature must be present in order for the connectorDescriptor to be presented to the
- * user.
- *
- * @author David Green
- */
-public class FeatureFilter {
-
- protected String featureId;
-
- protected String version;
-
- protected CatalogItem item;
-
- public FeatureFilter() {
- }
-
- /**
- * The id of the feature to test
- */
- public String getFeatureId() {
- return featureId;
- }
-
- public void setFeatureId(String featureId) {
- this.featureId = featureId;
- }
-
- /**
- * A version specifier, specified in the same manner as version dependencies are specified in an OSGi manifest. For
- * example: "[3.0,4.0)"
- */
- public String getVersion() {
- return version;
- }
-
- public void setVersion(String version) {
- this.version = version;
- }
-
- public CatalogItem getItem() {
- return item;
- }
-
- public void setItem(CatalogItem catalogItem) {
- this.item = catalogItem;
- }
-
- public void validate() throws ValidationException {
- if (featureId == null || featureId.length() == 0) {
- throw new ValidationException(Messages.FeatureFilter_must_specify_featureFilter_featureId);
- }
- if (version == null || version.length() == 0) {
- throw new ValidationException(Messages.FeatureFilter_must_specify_featureFilter_version);
- }
- }
-}

Back to the top