Package org.eclipse.pde.core.target
Class TargetFeature
- java.lang.Object
- 
- org.eclipse.pde.core.target.TargetFeature
 
- 
 public class TargetFeature extends Object Describes a single feature in a target definition.- Since:
- 3.8
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description TargetFeature(File featureLocation)Constructs a target feature for a feature on the local filesystem.protectedTargetFeature(IModel featureModel)Constructs a target feature for a feature from anIFeatureModel.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description NameVersionDescriptor[]getDependentFeatures()Returns a list of name version descriptors that describe the set of features that this feature depends on as imports or included features.IModelgetFeatureModel()StringgetId()Returns the id of this feature ornullif no id is set.StringgetLocation()Returns the string path to the directory containing the feature.xml ornullif no install location is known.NameVersionDescriptor[]getPlugins()Returns a list of name version descriptor that describes the set of plug-ins that this feature includes.StringgetVersion()Returns the version of this feature ornullif no version is set.StringtoString()
 
- 
- 
- 
Constructor Detail- 
TargetFeaturepublic TargetFeature(File featureLocation) throws CoreException Constructs a target feature for a feature on the local filesystem. The file may point at the feature.xml or a folder containing the feature.xml. The feature.xml will be read to collect the information about the feature.- Parameters:
- featureLocation- the location of the feature (feature.xml or directory containing it) never- null
- Throws:
- CoreException- if there is a problem opening the feature.xml or featureLocation is- null
 
 - 
TargetFeatureprotected TargetFeature(IModel featureModel) throws NullPointerException Constructs a target feature for a feature from anIFeatureModel.- Parameters:
- featureModel- the model to use to delegate the calls, must not be- null
- Throws:
- NullPointerException- if the model is null
- Since:
- 3.15
 
 
- 
 - 
Method Detail- 
getIdpublic String getId() Returns the id of this feature ornullif no id is set.- Returns:
- id or null
 
 - 
getVersionpublic String getVersion() Returns the version of this feature ornullif no version is set.- Returns:
- version or null
 
 - 
getLocationpublic String getLocation() Returns the string path to the directory containing the feature.xml ornullif no install location is known.- Returns:
- install location path or null
 
 - 
getPluginspublic NameVersionDescriptor[] getPlugins() Returns a list of name version descriptor that describes the set of plug-ins that this feature includes.- Returns:
- a list of name version descriptors, possibly empty
 
 - 
getDependentFeaturespublic NameVersionDescriptor[] getDependentFeatures() Returns a list of name version descriptors that describe the set of features that this feature depends on as imports or included features.- Returns:
- a list of name version descriptors, possibly empty
 
 - 
getFeatureModelpublic final IModel getFeatureModel() - Returns:
- the internal feature model this TargetFeatureis backed with
- Since:
- 3.15
 
 
- 
 
-