|
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.SiteModel
Site 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.
Site
Constructor Summary | |
SiteModel()
Creates an uninitialized site model object. |
Method Summary | |
void |
addArchiveReferenceModel(ArchiveReferenceModel archiveReference)
Adds an archive reference model to site. |
void |
addCategoryModel(CategoryModel category)
Adds a category model to site. |
void |
addFeatureReferenceModel(FeatureReferenceModel featureReference)
Adds a feature reference model to site. |
ArchiveReferenceModel[] |
getArchiveReferenceModels()
Returns an array of plug-in and non-plug-in archive reference models on this site |
CategoryModel[] |
getCategoryModels()
Returns an array of category models for this site. |
URLEntryModel |
getDescriptionModel()
Returns the site description. |
FeatureReferenceModel[] |
getFeatureReferenceModels()
Returns an array of feature reference models on this site. |
URL |
getLocationURL()
Returns the resolved URL for the site. |
String |
getLocationURLString()
Returns the unresolved URL string for the site. |
String |
getType()
Returns the site type. |
void |
markReadOnly()
Marks the model object as read-only. |
void |
removeArchiveReferenceModel(ArchiveReferenceModel archiveReference)
Removes an archive reference model from site. |
void |
removeCategoryModel(CategoryModel category)
Removes a category model from site. |
void |
removeFeatureReferenceModel(FeatureReferenceModel featureReference)
Removes a feature reference model from site. |
void |
resolve(URL base,
ResourceBundle bundle)
Resolve the model object. |
void |
setArchiveReferenceModels(ArchiveReferenceModel[] archiveReferences)
Sets the archive references for this site. |
void |
setCategoryModels(CategoryModel[] categories)
Sets the site categories. |
void |
setDescriptionModel(URLEntryModel description)
Sets the site description. |
void |
setFeatureReferenceModels(FeatureReferenceModel[] featureReferences)
Sets the feature references for this site. |
void |
setLocationURLString(String locationURLString)
Sets the unresolved URL for the site. |
void |
setType(String type)
Sets the site type. |
Methods inherited from class org.eclipse.update.core.model.ModelObject |
arrayTypeFor, arrayTypeFor, assertIsWriteable, isReadOnly, markListReferenceReadOnly, markReferenceReadOnly, resolveListReference, resolveNLString, resolveReference, resolveURL |
Methods inherited from class org.eclipse.core.runtime.PlatformObject |
getAdapter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SiteModel()
Method Detail |
public String getType()
null
.public URLEntryModel getDescriptionModel()
null
.public FeatureReferenceModel[] getFeatureReferenceModels()
public ArchiveReferenceModel[] getArchiveReferenceModels()
public CategoryModel[] getCategoryModels()
public String getLocationURLString()
null
public URL getLocationURL()
null
public void setType(String type)
type
- site typepublic void setDescriptionModel(URLEntryModel description)
description
- site descriptionpublic void setFeatureReferenceModels(FeatureReferenceModel[] featureReferences)
featureReferences
- an array of feature reference modelspublic void setArchiveReferenceModels(ArchiveReferenceModel[] archiveReferences)
archiveReferences
- an array of archive reference modelspublic void setCategoryModels(CategoryModel[] categories)
categories
- an array of category modelspublic void setLocationURLString(String locationURLString)
locationURLString
- url for the site (as a string)public void addFeatureReferenceModel(FeatureReferenceModel featureReference)
featureReference
- feature reference modelpublic void addArchiveReferenceModel(ArchiveReferenceModel archiveReference)
archiveReference
- archive reference modelpublic void addCategoryModel(CategoryModel category)
category
- category modelpublic void removeFeatureReferenceModel(FeatureReferenceModel featureReference)
featureReference
- feature reference modelpublic void removeArchiveReferenceModel(ArchiveReferenceModel archiveReference)
archiveReference
- archive reference modelpublic void removeCategoryModel(CategoryModel category)
category
- category modelpublic void markReadOnly()
markReadOnly
in class ModelObject
ModelObject.isReadOnly()
public void resolve(URL base, ResourceBundle bundle) throws MalformedURLException
resolve
in class ModelObject
base
- URLbundle
- resource bundle
MalformedURLException
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |