public class FeatureReferenceModel extends ModelObject
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 and Description |
---|
FeatureReferenceModel()
Creates an uninitialized feature reference model object.
|
FeatureReferenceModel(FeatureReferenceModel ref)
Constructor FeatureReferenceModel.
|
Modifier and Type | Method and Description |
---|---|
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() |
arrayTypeFor, arrayTypeFor, assertIsWriteable, getResourceBundle, isReadOnly, markListReferenceReadOnly, markReadOnly, markReferenceReadOnly, resolveListReference, resolveNLString, resolveReference, resolveURL
getAdapter
public FeatureReferenceModel()
public FeatureReferenceModel(FeatureReferenceModel ref)
ref
- public boolean equals(Object object)
public 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 URLMalformedURLException
public String toString()
toString
in class Object
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)
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.