public class SiteFeature
extends java.lang.Object
| Constructor and Description |
|---|
SiteFeature()
Creates an uninitialized feature reference model object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCategoryName(java.lang.String categoryName)
Adds the name of a category this feature belongs to.
|
boolean |
equals(java.lang.Object object)
Compares 2 feature reference models for equality
|
java.lang.String[] |
getCategoryNames()
Returns the names of categories the referenced feature belongs to.
|
java.lang.String |
getFeatureIdentifier()
Returns the feature identifier as a string
|
java.lang.String |
getFeatureVersion()
Returns the feature version as a string
|
java.lang.String |
getLabel()
Retrieve the displayable label for the feature reference.
|
java.lang.String |
getLabelNonLocalized()
Retrieve the non-localized displayable label for the feature reference.
|
java.lang.String |
getNL()
Get optional locale specification as a comma-separated string.
|
java.lang.String |
getOS()
Get optional operating system specification as a comma-separated string.
|
java.lang.String |
getOSArch()
Get optional system architecture specification as a comma-separated string.
|
java.lang.String |
getPatch()
Returns the patch mode.
|
SiteModel |
getSiteModel()
Returns the site model for the reference.
|
java.lang.String |
getType()
Returns the referenced feature type.
|
java.net.URL |
getURL()
Returns the resolved URL for the feature reference.
|
java.lang.String |
getURLString()
Returns the unresolved URL string for the reference.
|
java.lang.String |
getWS()
Get optional windowing system specification as a comma-separated string.
|
int |
hashCode() |
void |
resolve(java.net.URL resolveBase,
java.net.URL bundleURL)
Resolve the model object.
|
static boolean |
sameURL(java.net.URL url1,
java.net.URL url2) |
void |
setArch(java.lang.String arch)
Sets the system architecture specification.
|
void |
setCategoryNames(java.lang.String[] categoryNames)
Sets the names of categories this feature belongs to.
|
void |
setFeatureIdentifier(java.lang.String featureId)
Sets the feature identifier.
|
void |
setFeatureVersion(java.lang.String featureVersion)
Sets the feature version.
|
void |
setLabel(java.lang.String label)
Sets the label.
|
void |
setNL(java.lang.String nl)
Sets the locale specification.
|
void |
setOS(java.lang.String os)
Sets the operating system specification.
|
void |
setPatch(java.lang.String patch)
Sets the patch mode.
|
void |
setSiteModel(SiteModel site)
Sets the site for the referenced.
|
void |
setType(java.lang.String type)
Sets the referenced feature type.
|
void |
setURLString(java.lang.String urlString)
Sets the unresolved URL for the feature reference.
|
void |
setWS(java.lang.String ws)
Sets the windowing system specification.
|
java.lang.String |
toString() |
public SiteFeature()
public static boolean sameURL(java.net.URL url1,
java.net.URL url2)
public void addCategoryName(java.lang.String categoryName)
categoryName - category namepublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - feature reference model to compare withtrue if the two models are equal, false
otherwisepublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String[] getCategoryNames()
public java.lang.String getFeatureIdentifier()
public java.lang.String getFeatureVersion()
public java.lang.String getLabel()
null.public java.lang.String getLabelNonLocalized()
null.public java.lang.String getNL()
null.public java.lang.String getOS()
null.public java.lang.String getOSArch()
null.public java.lang.String getPatch()
public SiteModel getSiteModel()
public java.lang.String getType()
null representing the default feature
type for the sitepublic java.net.URL getURL()
public java.lang.String getURLString()
public java.lang.String getWS()
null.public void resolve(java.net.URL resolveBase,
java.net.URL bundleURL)
throws java.net.MalformedURLException
resolveBase - URLbundleURL - resource bundle URLjava.net.MalformedURLExceptionpublic void setArch(java.lang.String arch)
arch - system architecture specification as a comma-separated listpublic void setCategoryNames(java.lang.String[] categoryNames)
categoryNames - an array of category namespublic void setFeatureIdentifier(java.lang.String featureId)
featureId - feature identifierpublic void setFeatureVersion(java.lang.String featureVersion)
featureVersion - feature versionpublic void setLabel(java.lang.String label)
label - The label to setpublic void setNL(java.lang.String nl)
nl - locale specification as a comma-separated listpublic void setOS(java.lang.String os)
os - operating system specification as a comma-separated listpublic void setPatch(java.lang.String patch)
public void setSiteModel(SiteModel site)
site - site for the referencepublic void setType(java.lang.String type)
type - referenced feature typepublic void setURLString(java.lang.String urlString)
urlString - unresolved URL stringpublic void setWS(java.lang.String ws)
ws - windowing system specification as a comma-separated listpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()