public class SiteModelFactory extends Object
This class may be instantiated or subclassed by clients. However, in most cases clients should instead subclass the provided base implementation of this factory.
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.
BaseSiteFactory
Constructor and Description |
---|
SiteModelFactory()
Creates a default site factory.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canParseSiteType(String type)
Indicates whether this factory can handle the specified site type.
|
ArchiveReferenceModel |
createArchiveReferenceModel()
Create a default archive reference model.
|
SiteFeatureReferenceModel |
createFeatureReferenceModel()
Create a default site feature reference model.
|
CategoryModel |
createSiteCategoryModel()
Create a default category model.
|
SiteModel |
createSiteMapModel()
Create a default site model.
|
URLEntryModel |
createURLEntryModel()
Create a default annotated URL model.
|
SiteModel |
parseSite(InputStream stream)
Creates and populates a default site from stream.
|
public SiteModelFactory()
public boolean canParseSiteType(String type)
type
- site type identifiertrue
if the type can be handled, otherwise false
public SiteModel parseSite(InputStream stream) throws CoreException, InvalidSiteTypeException
stream
- site streamCoreException
InvalidSiteTypeException
public SiteModel createSiteMapModel()
SiteModel
public SiteFeatureReferenceModel createFeatureReferenceModel()
SiteFeatureReferenceModel
public ArchiveReferenceModel createArchiveReferenceModel()
ArchiveReferenceModel
public URLEntryModel createURLEntryModel()
URLEntryModel
public CategoryModel createSiteCategoryModel()
CategoryModel
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.