|
Eclipse eRCP Release 1.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.update.core.model.SiteModelFactory
Default site model factory.
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
Field Summary | |
---|---|
URL |
url
|
Constructor Summary | |
---|---|
SiteModelFactory()
Creates a default site factory. |
Method Summary | |
---|---|
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,
URL url)
Creates and populates a default site from stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public URL url
Constructor Detail |
public SiteModelFactory()
Method Detail |
public boolean canParseSiteType(String type)
type
- site type identifier
true
if the type can be handled, otherwise false
public SiteModel parseSite(InputStream stream, URL url) throws CoreException, InvalidSiteTypeException
stream
- site stream
CoreException
InvalidSiteTypeException
public SiteModel createSiteMapModel()
SiteModel
public SiteFeatureReferenceModel createFeatureReferenceModel()
SiteFeatureReferenceModel
public ArchiveReferenceModel createArchiveReferenceModel()
ArchiveReferenceModel
public URLEntryModel createURLEntryModel()
URLEntryModel
public CategoryModel createSiteCategoryModel()
CategoryModel
|
Eclipse eRCP Release 1.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |