Package org.eclipse.pde.core.plugin
Interface IFragment
- 
- All Superinterfaces:
- IAdaptable,- IExtensions,- IIdentifiable,- IPluginBase,- IPluginObject,- IWritable
 
 public interface IFragment extends IPluginBase A model object that represents the content of the fragment.xml file.- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringP_PLUGIN_IDA property that will be used to notify that a plugin id has changed.static StringP_PLUGIN_VERSIONA property that will be used to notify that a plugin version has changed.static StringP_RULEA property that will be used to notify that a plugin version match rule has changed.- 
Fields inherited from interface org.eclipse.pde.core.plugin.IExtensionsP_EXTENSION_ORDER
 - 
Fields inherited from interface org.eclipse.pde.core.IIdentifiableP_ID
 - 
Fields inherited from interface org.eclipse.pde.core.plugin.IPluginBaseP_IMPORT_ORDER, P_LIBRARY_ORDER, P_PROVIDER, P_SCHEMA_VERSION, P_VERSION
 - 
Fields inherited from interface org.eclipse.pde.core.plugin.IPluginObjectP_NAME
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetPluginId()Returns the id of the fragment host.StringgetPluginVersion()Returns the version of the fragment host.intgetRule()Returns an optional version match rule as defined in IMatchRule interface.voidsetPluginId(String id)Sets the id of the plug-in that will be the target of this fragment.voidsetPluginVersion(String version)Sets the version of the plug-in that will be the target of this fragment.'voidsetRule(int rule)Sets the optional version match rule as defined in IMatchRules.- 
Methods inherited from interface org.eclipse.core.runtime.IAdaptablegetAdapter
 - 
Methods inherited from interface org.eclipse.pde.core.plugin.IExtensionsadd, add, getExtensionPoints, getExtensions, getIndexOf, remove, remove, swap
 - 
Methods inherited from interface org.eclipse.pde.core.IIdentifiablegetId, setId
 - 
Methods inherited from interface org.eclipse.pde.core.plugin.IPluginBaseadd, add, getImports, getLibraries, getProviderName, getSchemaVersion, getVersion, remove, remove, setProviderName, setSchemaVersion, setVersion, swap, swap
 - 
Methods inherited from interface org.eclipse.pde.core.plugin.IPluginObjectgetModel, getName, getParent, getPluginBase, getPluginModel, getResourceString, getTranslatedName, isInTheModel, isValid, setInTheModel, setName
 
- 
 
- 
- 
- 
Field Detail- 
P_PLUGIN_IDstatic final String P_PLUGIN_ID A property that will be used to notify that a plugin id has changed.- See Also:
- Constant Field Values
 
 - 
P_PLUGIN_VERSIONstatic final String P_PLUGIN_VERSION A property that will be used to notify that a plugin version has changed.- See Also:
- Constant Field Values
 
 - 
P_RULEstatic final String P_RULE A property that will be used to notify that a plugin version match rule has changed.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getPluginIdString getPluginId() Returns the id of the fragment host.- Returns:
- the host id
 
 - 
getPluginVersionString getPluginVersion() Returns the version of the fragment host.- Returns:
- the host version
 
 - 
getRuleint getRule() Returns an optional version match rule as defined in IMatchRule interface.- Returns:
- the match rule
 
 - 
setPluginIdvoid setPluginId(String id) throws CoreException Sets the id of the plug-in that will be the target of this fragment.- Parameters:
- id- the id of the referenced plug-in.
- Throws:
- CoreException- attempts to modify a read-only fragment will result in an exception
 
 - 
setPluginVersionvoid setPluginVersion(String version) throws CoreException Sets the version of the plug-in that will be the target of this fragment.'- Parameters:
- version- the version of the referenced version.
- Throws:
- CoreException- attempts to modify a read-only fragment will result in an exception
 
 - 
setRulevoid setRule(int rule) throws CoreExceptionSets the optional version match rule as defined in IMatchRules. This rule will be used when attempting to match the referenced plug-in version.- Parameters:
- rule- the match rule to be used when locating the referenced the plug-in.
- Throws:
- CoreException- attempts to modify a read-only fragment will result in an exception
 
 
- 
 
-