1 11 package org.eclipse.core.internal.boot; 12 13 import java.net.URL ; 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 getFeatureIdentifier() { 25 return newFeatureEntry.getFeatureIdentifier(); 26 } 27 28 public String getFeatureVersion() { 29 return newFeatureEntry.getFeatureVersion(); 30 } 31 32 public String getFeaturePluginIdentifier() { 33 return newFeatureEntry.getFeaturePluginIdentifier(); 34 } 35 36 public String getFeaturePluginVersion() { 37 return newFeatureEntry.getFeaturePluginVersion(); 38 } 39 40 public String getFeatureApplication() { 41 return newFeatureEntry.getFeatureApplication(); 42 } 43 44 public URL [] 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 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 |