|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.
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.
FeatureReference
Constructor Summary | |
FeatureReferenceModel()
Creates an uninitialized feature reference model object. |
|
FeatureReferenceModel(FeatureReferenceModel ref)
Constructor FeatureReferenceModel. |
Method Summary | |
boolean |
equals(Object object)
Compares 2 feature reference models for equality |
String |
getFeatureIdentifier()
Returns the feature identifier as a string |
String |
getFeatureVersion()
Returns the feature version as a string |
String |
getLabel()
Retrieve the displayable label for the feature reference. |
String |
getLabelNonLocalized()
Retrieve the non-localized displayable label for the feature reference. |
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. |
String |
getPatch()
Returns the patch mode. |
protected String |
getPropertyName()
Method getPropertyName. |
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. |
String |
getWS()
Get optional windowing system specification as a comma-separated string. |
void |
resolve(URL base,
URL bundleURL)
Resolve the model object. |
void |
setArch(String arch)
Sets the system architecture specification. |
void |
setFeatureIdentifier(String featureId)
Sets the feature identifier. |
void |
setFeatureVersion(String featureVersion)
Sets the feature version. |
void |
setLabel(String label)
Sets the label. |
void |
setNL(String nl)
Sets the locale specification. |
void |
setOS(String os)
Sets the operating system specification. |
void |
setPatch(String patch)
Sets the patch mode. |
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. |
void |
setWS(String ws)
Sets the windowing system specification. |
String |
toString()
|
Methods inherited from class org.eclipse.update.core.model.ModelObject |
arrayTypeFor, arrayTypeFor, assertIsWriteable, getResourceBundle, 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()
public FeatureReferenceModel(FeatureReferenceModel ref)
ref
- Method Detail |
public boolean equals(Object 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 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 resolve(URL base, URL bundleURL) throws MalformedURLException
resolve
in class ModelObject
base
- URLbundleURL
- resource bundle URL
MalformedURLException
public String toString()
Object.toString()
protected String getPropertyName()
ModelObject
getPropertyName
in class ModelObject
ModelObject.getPropertyName()
public String getLabel()
null
.public String getLabelNonLocalized()
null
.public void setLabel(String label)
label
- The label to setpublic String getOS()
null
.public String getWS()
null
.public String getOSArch()
null
.public String getNL()
null
.public void setOS(String os)
os
- operating system specification as a comma-separated listpublic void setWS(String ws)
ws
- windowing system specification as a comma-separated listpublic void setNL(String nl)
nl
- locale specification as a comma-separated listpublic void setArch(String arch)
arch
- system architecture specification as a comma-separated listpublic String getPatch()
public void setPatch(String patch)
|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.