public class FeatureReference extends FeatureReferenceModel implements IFeatureReference, IPlatformEnvironment
This class may be instantiated or subclassed by clients.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
IFeatureReference
,
FeatureReferenceModel
Constructor and Description |
---|
FeatureReference()
Feature reference default constructor
|
FeatureReference(FeatureReferenceModel ref)
Constructor FeatureReference.
|
FeatureReference(IFeatureReference ref)
Constructor FeatureReference.
|
Modifier and Type | Method and Description |
---|---|
IFeature |
getFeature()
Deprecated.
use getFeaure(IProgressMonitor)
|
protected IFeature |
getFeature(IFeatureReference ref,
IProgressMonitor monitor)
Returns the feature the reference points to
|
IFeature |
getFeature(IProgressMonitor monitor)
Returns the feature this reference points to
|
String |
getName()
Returns the label for the referenced feature
|
String |
getNL()
Get optional locale specification as a comma-separated string.
|
String |
getOS()
Get optional operating system specification as a comma-separated string.
|
String |
getOSArch()
Get optional system architecture specification as a comma-separated string.
|
ISite |
getSite()
Returns the update site for the referenced feature
|
VersionedIdentifier |
getVersionedIdentifier()
Returns the feature identifier.
|
String |
getWS()
Get optional windowing system specification as a comma-separated string.
|
boolean |
isPatch()
Returns
true if this feature is patching another feature,
false otherwise |
void |
setSite(ISite site)
Associates a site with the feature reference.
|
void |
setURL(URL url)
Sets the feature reference URL.
|
equals, getFeatureIdentifier, getFeatureVersion, getLabel, getLabelNonLocalized, getPatch, getPropertyName, getSiteModel, getType, getURL, getURLString, resolve, setArch, setFeatureIdentifier, setFeatureVersion, setLabel, setNL, setOS, setPatch, setSiteModel, setType, setURLString, setWS, toString
arrayTypeFor, arrayTypeFor, assertIsWriteable, getResourceBundle, isReadOnly, markListReferenceReadOnly, markReadOnly, markReferenceReadOnly, resolveListReference, resolveNLString, resolveReference, resolveURL
getAdapter
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getURL
getAdapter
public FeatureReference()
public FeatureReference(IFeatureReference ref)
ref
- the reference to copypublic FeatureReference(FeatureReferenceModel ref)
ref
- the reference to copypublic IFeature getFeature() throws CoreException
getFeature
in interface IFeatureReference
CoreException
public IFeature getFeature(IProgressMonitor monitor) throws CoreException
getFeature
in interface IFeatureReference
monitor
- the progress monitorCoreException
protected IFeature getFeature(IFeatureReference ref, IProgressMonitor monitor) throws CoreException
ref
- the feature referenceCoreException
public ISite getSite()
getSite
in interface IFeatureReference
IFeatureReference.getSite()
public void setURL(URL url) throws CoreException
setURL
in interface IFeatureReference
url
- reference URLCoreException
IFeatureReference.setURL(URL)
public void setSite(ISite site)
setSite
in interface IFeatureReference
site
- site for the feature referenceIFeatureReference.setSite(ISite)
public VersionedIdentifier getVersionedIdentifier()
getVersionedIdentifier
in interface IFeatureReference
IFeatureReference.getVersionedIdentifier()
public String getName()
IFeatureReference
getName
in interface IFeatureReference
IFeatureReference.getName()
public String getOS()
getOS
in interface IPlatformEnvironment
getOS
in class FeatureReferenceModel
null
.public String getWS()
getWS
in interface IPlatformEnvironment
getWS
in class FeatureReferenceModel
null
.public String getOSArch()
getOSArch
in interface IPlatformEnvironment
getOSArch
in class FeatureReferenceModel
null
.public String getNL()
getNL
in interface IPlatformEnvironment
getNL
in class FeatureReferenceModel
null
.public boolean isPatch()
true
if this feature is patching another feature,
false
otherwiseisPatch
in interface IFeatureReference
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.