|
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.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.
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.
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(SiteFeatureReferenceModel 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. |
org.eclipse.update.internal.model.ConfiguredSiteModel |
getConfiguredSiteModel()
|
URLEntryModel |
getDescriptionModel()
Returns the site description. |
SiteFeatureReferenceModel[] |
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. |
protected String |
getPropertyName()
Method getPropertyName. |
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,
URL bundleURL)
Resolve the model object. |
void |
setArchiveReferenceModels(ArchiveReferenceModel[] archiveReferences)
Sets the archive references for this site. |
void |
setCategoryModels(CategoryModel[] categories)
Sets the site categories. |
void |
setConfiguredSiteModel(org.eclipse.update.internal.model.ConfiguredSiteModel configuredSiteModel)
|
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, getResourceBundle, 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 SiteFeatureReferenceModel[] 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(SiteFeatureReferenceModel 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, URL bundleURL) throws MalformedURLException
resolve
in class ModelObject
base
- URLbundleURL
- resource bundle URL
MalformedURLException
public org.eclipse.update.internal.model.ConfiguredSiteModel getConfiguredSiteModel()
public void setConfiguredSiteModel(org.eclipse.update.internal.model.ConfiguredSiteModel configuredSiteModel)
protected String getPropertyName()
ModelObject
getPropertyName
in class ModelObject
ModelObject.getPropertyName()
|
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.