public abstract class BaseSiteFactory extends SiteModelFactory implements ISiteFactory
This class must be subclassed by clients.
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.
ISiteFactory,
SiteModelFactory| Constructor and Description |
|---|
BaseSiteFactory() |
| Modifier and Type | Method and Description |
|---|---|
ArchiveReferenceModel |
createArchiveReferenceModel()
Create a concrete implementation of archive reference model.
|
SiteFeatureReferenceModel |
createFeatureReferenceModel()
Create a concrete implementation of feature reference model.
|
abstract ISite |
createSite(URL url)
Create site.
|
CategoryModel |
createSiteCategoryModel()
Create a concrete implementation of category model.
|
SiteModel |
createSiteMapModel()
Create a concrete implementation of site model.
|
URLEntryModel |
createURLEntryModel()
Create a concrete implementation of annotated URL model.
|
protected ResourceBundle |
getResourceBundle(URL url)
Helper method to access resouce bundle for site.
|
protected InputStream |
openStream(URL resolvedURL)
Open a stream on a URL.
|
canParseSiteType, parseSitepublic abstract ISite createSite(URL url) throws CoreException, InvalidSiteTypeException
createSite in interface ISiteFactoryurl - URL interpreted by the siteCoreExceptionInvalidSiteTypeException - the referenced site type is
not a supported type for this factoryISiteFactory.createSite(URL)protected ResourceBundle getResourceBundle(URL url)
url - base URL used to load the resource bundle.null.public SiteModel createSiteMapModel()
createSiteMapModel in class SiteModelFactorySitepublic SiteFeatureReferenceModel createFeatureReferenceModel()
createFeatureReferenceModel in class SiteModelFactoryFeatureReferencepublic ArchiveReferenceModel createArchiveReferenceModel()
createArchiveReferenceModel in class SiteModelFactoryArchiveReferencepublic URLEntryModel createURLEntryModel()
createURLEntryModel in class SiteModelFactoryURLEntrypublic CategoryModel createSiteCategoryModel()
createSiteCategoryModel in class SiteModelFactoryCategoryprotected InputStream openStream(URL resolvedURL) throws IOException
resolvedURL - IOExceptionGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.