Eclipse Platform
2.0

org.eclipse.update.core.model
Class FeatureModelFactory

java.lang.Object
  |
  +--org.eclipse.update.core.model.FeatureModelFactory
Direct Known Subclasses:
BaseFeatureFactory

public class FeatureModelFactory
extends Object

Default feature 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.

Since:
2.0
See Also:
BaseFeatureFactory

Constructor Summary
FeatureModelFactory()
          Creates a default model factory.
 
Method Summary
 FeatureModel createFeatureModel()
          Create a default feature model.
 ImportModel createImportModel()
          Create a default import dependency model.
 InstallHandlerEntryModel createInstallHandlerEntryModel()
          Create a default install handler model.
 NonPluginEntryModel createNonPluginEntryModel()
          Create a default non-plug-in entry model.
 PluginEntryModel createPluginEntryModel()
          Create a default plug-in entry model.
 URLEntryModel createURLEntryModel()
          Create a default annotated URL model.
 FeatureModel parseFeature(InputStream stream)
          Creates and populates a default feature from stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureModelFactory

public FeatureModelFactory()
Creates a default model factory.

Since:
2.0
Method Detail

parseFeature

public FeatureModel parseFeature(InputStream stream)
                          throws CoreException,
                                 org.xml.sax.SAXException
Creates and populates a default feature from stream. The parser assumes the stream contains a default feature manifest (feature.xml) as documented by the platform.

Parameters:
stream - feature stream
Returns:
populated feature model
Throws:
ParsingException
IOException
org.xml.sax.SAXException
CoreException
Since:
2.0

createFeatureModel

public FeatureModel createFeatureModel()
Create a default feature model.

Returns:
feature model
Since:
2.0
See Also:
FeatureModel

createInstallHandlerEntryModel

public InstallHandlerEntryModel createInstallHandlerEntryModel()
Create a default install handler model.

Returns:
install handler entry model
Since:
2.0
See Also:
InstallHandlerEntryModel

createImportModel

public ImportModel createImportModel()
Create a default import dependency model.

Returns:
import dependency model
Since:
2.0
See Also:
ImportModel

createPluginEntryModel

public PluginEntryModel createPluginEntryModel()
Create a default plug-in entry model.

Returns:
plug-in entry model
Since:
2.0
See Also:
PluginEntryModel

createNonPluginEntryModel

public NonPluginEntryModel createNonPluginEntryModel()
Create a default non-plug-in entry model.

Returns:
non-plug-in entry model
Since:
2.0
See Also:
NonPluginEntryModel

createURLEntryModel

public URLEntryModel createURLEntryModel()
Create a default annotated URL model.

Returns:
annotated URL model
Since:
2.0
See Also:
URLEntryModel

Eclipse Platform
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.