KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > boot > FeatureEntry


1 /*******************************************************************************
2  * Copyright (c) 2003, 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.core.internal.boot;
12
13 import java.net.URL JavaDoc;
14 import org.eclipse.core.boot.IPlatformConfiguration.IFeatureEntry;
15 import org.eclipse.update.configurator.IPlatformConfiguration;
16
17 public class FeatureEntry implements IFeatureEntry {
18     private IPlatformConfiguration.IFeatureEntry newFeatureEntry;
19
20     public FeatureEntry(IPlatformConfiguration.IFeatureEntry fe) {
21         newFeatureEntry = fe;
22     }
23
24     public String JavaDoc getFeatureIdentifier() {
25         return newFeatureEntry.getFeatureIdentifier();
26     }
27
28     public String JavaDoc getFeatureVersion() {
29         return newFeatureEntry.getFeatureVersion();
30     }
31
32     public String JavaDoc getFeaturePluginIdentifier() {
33         return newFeatureEntry.getFeaturePluginIdentifier();
34     }
35
36     public String JavaDoc getFeaturePluginVersion() {
37         return newFeatureEntry.getFeaturePluginVersion();
38     }
39
40     public String JavaDoc getFeatureApplication() {
41         return newFeatureEntry.getFeatureApplication();
42     }
43
44     public URL JavaDoc[] getFeatureRootURLs() {
45         return newFeatureEntry.getFeatureRootURLs();
46     }
47
48     public boolean canBePrimary() {
49         return newFeatureEntry.canBePrimary();
50     }
51
52     public IPlatformConfiguration.IFeatureEntry getNewFeatureEntry() {
53         return newFeatureEntry;
54     }
55
56     public boolean equals(Object JavaDoc o) {
57         if (o instanceof FeatureEntry) {
58             return newFeatureEntry.equals(((FeatureEntry) o).newFeatureEntry);
59         }
60         return false;
61     }
62
63     public int hashCode() {
64         return newFeatureEntry.hashCode();
65     }
66 }
67
Popular Tags