KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > update > internal > core > FeatureEntryWrapper


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.update.internal.core;
12
13 import org.eclipse.core.runtime.IProduct;
14 import org.eclipse.update.internal.configurator.FeatureEntry;
15 import org.osgi.framework.Bundle;
16
17 /**
18  * Class used to wrapper feature entry objects. This class is necessary
19  * to remove the depedancy of the org.eclipse.update.configurator on
20  * the org.eclipse.core.runtime bundle.
21  *
22  * @since 3.2
23  */

24 public class FeatureEntryWrapper implements IProduct {
25
26     private FeatureEntry entry;
27
28     /*
29      * Constructor for the class.
30      */

31     public FeatureEntryWrapper(FeatureEntry entry) {
32         super();
33         this.entry = entry;
34     }
35
36     /* (non-Javadoc)
37      * @see org.eclipse.core.runtime.IProduct#getApplication()
38      */

39     public String JavaDoc getApplication() {
40         return entry.getApplication();
41     }
42
43     /* (non-Javadoc)
44      * @see org.eclipse.core.runtime.IProduct#getName()
45      */

46     public String JavaDoc getName() {
47         return entry.getName();
48     }
49
50     /* (non-Javadoc)
51      * @see org.eclipse.core.runtime.IProduct#getDescription()
52      */

53     public String JavaDoc getDescription() {
54         return entry.getDescription();
55     }
56
57     /* (non-Javadoc)
58      * @see org.eclipse.core.runtime.IProduct#getId()
59      */

60     public String JavaDoc getId() {
61         return entry.getId();
62     }
63
64     /* (non-Javadoc)
65      * @see org.eclipse.core.runtime.IProduct#getProperty(java.lang.String)
66      */

67     public String JavaDoc getProperty(String JavaDoc key) {
68         return entry.getProperty(key);
69     }
70
71     /* (non-Javadoc)
72      * @see org.eclipse.core.runtime.IProduct#getDefiningBundle()
73      */

74     public Bundle getDefiningBundle() {
75         return entry.getDefiningBundle();
76     }
77 }
78
Popular Tags