|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
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.
VersionedIdentifier
Constructor Summary | |
IncludedFeatureReference(String name,
boolean isOptional)
Deprecated. use other constructor |
|
IncludedFeatureReference(String name,
boolean isOptional,
int matchingRule,
int searchLocation)
Construct a feature options |
Method Summary | |
int |
getMatch()
Returns the matching rule for this included feature. |
String |
getName()
Returns a string representation of the feature identifier. |
int |
getSearchLocation()
Returns the search location for this included feature. |
boolean |
isOptional()
Returns the isOptional |
Methods inherited from class org.eclipse.update.core.FeatureReference |
addCategory, getCategories, getFeature, getFeature, getSite, getVersionedIdentifier, setSite, setURL |
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 |
Methods inherited from class org.eclipse.core.runtime.PlatformObject |
getAdapter |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.update.core.IFeatureReference |
addCategory, getCategories, getFeature, getFeature, getSite, getURL, getVersionedIdentifier, setSite, setURL |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
Constructor Detail |
public IncludedFeatureReference(String name, boolean isOptional)
name
- string representation of the featureisOptional
- true
if the feature is optional, false
otherwise.public IncludedFeatureReference(String name, boolean isOptional, int matchingRule, int searchLocation)
name
- string representation of the featureisOptional
- true
if the feature is optional, false
otherwise.matchingRule
- the matching rulesearchLocation
- the location to search for this feature's updates.Method Detail |
public boolean isOptional()
isOptional
in interface IIncludedFeatureReference
isOptional
in class FeatureReference
public String getName()
getName
in interface IIncludedFeatureReference
getName
in class FeatureReference
null
.public int getMatch()
MATCH_PERFECT
getMatch
in interface IIncludedFeatureReference
getMatch
in class FeatureReference
IUpdateConstants.RULE_PERFECT
,
IUpdateConstants.RULE_EQUIVALENT
,
IUpdateConstants.RULE_COMPATIBLE
,
IUpdateConstants.RULE_GREATER_OR_EQUAL
public int getSearchLocation()
SEARCH_ROOT
getSearchLocation
in interface IIncludedFeatureReference
getSearchLocation
in class FeatureReference
IFeatureReference#SEARCH_ROOT
,
IFeatureReference#SEARCH_SELF
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |