|
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
Feature reference model object.
This class may be instantiated or subclassed by clients. However, in most cases clients should instead instantiate or subclass the provided concrete implementation of this model.
FeatureReference
Constructor Summary | |
FeatureReferenceModel()
Creates an uninitialized feature reference model object. |
Method Summary | |
void |
addCategoryName(String categoryName)
Adds the name of a category this feature belongs to. |
boolean |
equals(Object object)
Compares 2 feature reference models for equality |
String[] |
getCategoryNames()
Returns the names of categories the referenced feature belongs to. |
String |
getFeatureIdentifier()
Returns the feature identifier as a string |
String |
getFeatureVersion()
Returns the feature version as a string |
SiteModel |
getSiteModel()
Returns the site model for the reference. |
String |
getType()
Returns the referenced feature type. |
URL |
getURL()
Returns the resolved URL for the feature reference. |
String |
getURLString()
Returns the unresolved URL string for the reference. |
void |
removeCategoryName(String categoryName)
Removes the name of a categorys this feature belongs to. |
void |
resolve(URL base,
ResourceBundle bundle)
Resolve the model object. |
void |
setCategoryNames(String[] categoryNames)
Sets the names of categories this feature belongs to. |
void |
setFeatureIdentifier(String featureId)
Sets the feature identifier. |
void |
setFeatureVersion(String featureVersion)
Sets the feature version. |
void |
setSiteModel(SiteModel site)
Sets the site for the referenced. |
void |
setType(String type)
Sets the referenced feature type. |
void |
setURLString(String urlString)
Sets the unresolved URL for the feature reference. |
String |
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 |
Constructor Detail |
public FeatureReferenceModel()
Method Detail |
public boolean equals(Object object)
equals
in class Object
object
- feature reference model to compare with
true
if the two models are equal,
false
otherwisepublic String getType()
null
representing the default
feature type for the sitepublic SiteModel getSiteModel()
public String getURLString()
public URL getURL()
public String[] getCategoryNames()
public String getFeatureIdentifier()
IFeatureReference.getVersionedIdentifier()
public String getFeatureVersion()
IFeatureReference.getVersionedIdentifier()
public void setType(String type)
type
- referenced feature typepublic void setSiteModel(SiteModel site)
site
- site for the referencepublic void setURLString(String urlString)
urlString
- unresolved URL stringpublic void setFeatureIdentifier(String featureId)
featureId
- feature identifierpublic void setFeatureVersion(String featureVersion)
featureVersion
- feature versionpublic void setCategoryNames(String[] categoryNames)
categoryNames
- an array of category namespublic void addCategoryName(String categoryName)
categoryName
- category namepublic void removeCategoryName(String categoryName)
categoryName
- category namepublic void resolve(URL base, ResourceBundle bundle) throws MalformedURLException
resolve
in class ModelObject
base
- URLbundle
- resource bundle
MalformedURLException
public String toString()
toString
in class Object
Object.toString()
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |