Eclipse Platform
2.0

org.eclipse.core.runtime.model
Class Factory

java.lang.Object
  |
  +--org.eclipse.core.runtime.model.Factory

public class Factory
extends Object

An object which can create plug-in related model objects (typically when parsing plug-in manifest files).

This class may be instantiated, or further subclassed.


Constructor Summary
Factory(MultiStatus status)
          Creates a factory which can be used to create plug-in model objects.
 
Method Summary
 ConfigurationElementModel createConfigurationElement()
          Returns a new configuration element model which is not initialized.
 ConfigurationPropertyModel createConfigurationProperty()
          Returns a new configuration property model which is not initialized.
 ExtensionModel createExtension()
          Returns a new extension model which is not initialized.
 ExtensionPointModel createExtensionPoint()
          Returns a new extension point model which is not initialized.
 LibraryModel createLibrary()
          Returns a new library model which is initialized to not export any of its code.
 PluginDescriptorModel createPluginDescriptor()
          Returns a new plug-in descriptor model which is not initialized.
 PluginFragmentModel createPluginFragment()
          Returns a new plug-in fragment model which is not initialized.
 PluginPrerequisiteModel createPluginPrerequisite()
          Returns a new plug-in prerequisite model which is initialized to not export its code and to not require an exact match.
 PluginRegistryModel createPluginRegistry()
          Returns a new plug-in registry model with an empty plug-in table.
 URLModel createURL()
          Returns a new URL model which is not initialized.
 void error(IStatus error)
          Handles an error state specified by the status.
 MultiStatus getStatus()
          Returns all of the status objects logged thus far by this factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Factory

public Factory(MultiStatus status)
Creates a factory which can be used to create plug-in model objects. Errors and warnings during parsing etc. can be logged to the given status via the error method.

Parameters:
status - the status to which errors should be logged
Method Detail

createConfigurationElement

public ConfigurationElementModel createConfigurationElement()
Returns a new configuration element model which is not initialized.

Returns:
a new configuration element model

createConfigurationProperty

public ConfigurationPropertyModel createConfigurationProperty()
Returns a new configuration property model which is not initialized.

Returns:
a new configuration property model

createExtension

public ExtensionModel createExtension()
Returns a new extension model which is not initialized.

Returns:
a new extension model

createExtensionPoint

public ExtensionPointModel createExtensionPoint()
Returns a new extension point model which is not initialized.

Returns:
a new extension point model

createLibrary

public LibraryModel createLibrary()
Returns a new library model which is initialized to not export any of its code.

Returns:
a new library model

createPluginDescriptor

public PluginDescriptorModel createPluginDescriptor()
Returns a new plug-in descriptor model which is not initialized.

Returns:
a new plug-in descriptor model

createPluginFragment

public PluginFragmentModel createPluginFragment()
Returns a new plug-in fragment model which is not initialized.

Returns:
a new plug-in fragment model

createPluginPrerequisite

public PluginPrerequisiteModel createPluginPrerequisite()
Returns a new plug-in prerequisite model which is initialized to not export its code and to not require an exact match.

Returns:
a new plug-in prerequisite model

createPluginRegistry

public PluginRegistryModel createPluginRegistry()
Returns a new plug-in registry model with an empty plug-in table.

Returns:
a new plug-in registry model

createURL

public URLModel createURL()
Returns a new URL model which is not initialized.

Returns:
a new URL model

error

public void error(IStatus error)
Handles an error state specified by the status. The collection of all logged status objects can be accessed using getStatus().

Parameters:
error - a status detailing the error condition

getStatus

public MultiStatus getStatus()
Returns all of the status objects logged thus far by this factory.

Returns:
a multi-status containing all of the logged status objects

Eclipse Platform
2.0

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