public class SiteBundle
extends java.lang.Object
| Constructor and Description |
|---|
SiteBundle()
Creates an uninitialized bundle reference model object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCategoryName(java.lang.String categoryName)
Adds the name of a category this bundle belongs to.
|
boolean |
equals(java.lang.Object object)
Compares 2 bundle reference models for equality
|
java.lang.String |
getBundleIdentifier()
Returns the bundle identifier as a string
|
java.lang.String |
getBundleVersion()
Returns the bundle version as a string
|
java.lang.String[] |
getCategoryNames()
Returns the names of categories the referenced bundle belongs to.
|
java.lang.String |
getLabel()
Retrieve the displayable label for the bundle reference.
|
java.lang.String |
getLabelNonLocalized()
Retrieve the non-localized displayable label for the bundle 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 bundle type.
|
java.net.URL |
getURL()
Returns the resolved URL for the bundle 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 |
setBundleIdentifier(java.lang.String bundleId)
Sets the bundle identifier.
|
void |
setBundleVersion(java.lang.String bundleVersion)
Sets the bundle version.
|
void |
setCategoryNames(java.lang.String[] categoryNames)
Sets the names of categories this bundle belongs to.
|
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 bundle type.
|
void |
setURLString(java.lang.String urlString)
Sets the unresolved URL for the bundle reference.
|
void |
setWS(java.lang.String ws)
Sets the windowing system specification.
|
java.lang.String |
toString() |
public SiteBundle()
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 - bundle 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 getBundleIdentifier()
public java.lang.String getBundleVersion()
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
bundle 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 setBundleIdentifier(java.lang.String bundleId)
bundleId - bundle identifierpublic void setBundleVersion(java.lang.String bundleVersion)
bundleVersion - bundle 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 bundle 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()