org.eclipse.update.core
Class IncludedFeatureReference
java.lang.Object
|
+--org.eclipse.core.runtime.PlatformObject
|
+--org.eclipse.update.core.model.ModelObject
|
+--org.eclipse.update.core.model.FeatureReferenceModel
|
+--org.eclipse.update.core.FeatureReference
|
+--org.eclipse.update.core.IncludedFeatureReference
- All Implemented Interfaces:
- IAdaptable, IFeatureReference, IIncludedFeatureReference
- public class IncludedFeatureReference
- extends FeatureReference
- implements IIncludedFeatureReference
This is a utility class representing the options of a nested feature.
Feature will include other features. This class will represent the options of the inclusion.
Clients may instantiate; not intended to be subclassed by clients.
- Since:
- 2.0
- See Also:
VersionedIdentifier
Constructor Summary |
IncludedFeatureReference(String name,
boolean isOptional)
Construct a feature options from a string and a boolean
The string is the representation of the name. |
Method Summary |
String |
getName()
Returns a string representation of the feature identifier. |
boolean |
isOptional()
Returns the isOptional |
Methods inherited from class org.eclipse.update.core.model.FeatureReferenceModel |
addCategoryName, equals, getCategoryNames, getFeatureIdentifier, getFeatureVersion, getOptions, getSiteModel, getType, getURL, getURLString, removeCategoryName, resolve, setCategoryNames, setFeatureIdentifier, setFeatureVersion, setOptions, setSiteModel, setType, setURLString, toString |
Methods inherited from class org.eclipse.update.core.model.ModelObject |
arrayTypeFor, arrayTypeFor, assertIsWriteable, isReadOnly, markListReferenceReadOnly, markReadOnly, markReferenceReadOnly, resolveListReference, resolveNLString, resolveReference, resolveURL |
IncludedFeatureReference
public IncludedFeatureReference(String name,
boolean isOptional)
- Construct a feature options from a string and a boolean
The string is the representation of the name.
The boolean is the representation of the optionality of the nested feature.
- Parameters:
name
- string representation of the featureisOptional
- true
if the feature is optional, false
otherwise.- Since:
- 2.0.1
isOptional
public boolean isOptional()
- Returns the isOptional
- Specified by:
isOptional
in interface IIncludedFeatureReference
- Overrides:
isOptional
in class FeatureReference
- Returns:
- isOptional
- Since:
- 2.0.1
getName
public String getName()
- Returns a string representation of the feature identifier.
- Specified by:
getName
in interface IIncludedFeatureReference
- Overrides:
getName
in class FeatureReference
- Returns:
- string representation of feature identifier or
null
. - Since:
- 2.0.1
Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.