Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.birt.core.framework
Interface IExtensionRegistry

    public interface IExtensionRegistry

This interface is the same as the Eclipse platform `IExtensionRegistry` interface.

The extension registry holds the master list of all discovered namespaces, extension points and extensions.

The extension registry can be queried, by name, for extension points and extensions.

Extensions and extension points are declared by generic entities called namespaces. The only fact known about namespaces is that they have unique string-based identifiers. One example of a namespace is a plug-in, for which the namespace id is the plug-in id.

This interface is not intended to be implemented by clients.

Since:
  3.0

Method Summary
`IConfigurationElement[]` | `getConfigurationElementsFor(java.lang.String extensionPointId)` Returns all configuration elements from all extensions configured into the identified extension point.
`IConfigurationElement[]` | `getConfigurationElementsFor(java.lang.String namespace, java.lang.String extensionPointName)` Returns all configuration elements from all extensions configured into the identified extension point.
`IConfigurationElement[]` | `getConfigurationElementsFor(java.lang.String namespace, java.lang.String extensionPointName, java.lang.String extensionId)` Returns all configuration elements from the identified extension.
`IExtension` | `getExtension(java.lang.String extensionId)` Returns the specified extension in this extension registry, or `null` if there is no such extension.
`IExtension` | `getExtension(java.lang.String extensionPointId, java.lang.String extensionId)` Returns the specified extension in this extension registry, or `null` if there is no such extension.
`IExtension` | `getExtension(java.lang.String namespace, java.lang.String extensionPointName, java.lang.String extensionId)` Returns the specified extension in this extension registry, or `null` if there is no such extension.
`IExtensionPoint` | `getExtensionPoint(java.lang.String extensionPointId)` Returns the extension point with the given extension point identifier in this extension registry, or `null` if there is no such extension point.
`IExtensionPoint` | `getExtensionPoint(java.lang.String namespace, java.lang.String extensionPointName)` Returns the extension point in this extension registry with the given namespace and extension point simple identifier, or `null` if there is no such extension point.
`IExtensionPoint[]` | `getExtensionPoints()` Returns all extension points known to this extension registry.
`IExtensionPoint[]` | `getExtensionPoints(java.lang.String namespace)` Returns all extension points declared in the given namespace.
`IExtension[]` | `getExtensions(java.lang.String namespace)` Returns all extensions declared in the given namespace.
`java.lang.String[]` | `getNamespaces()` Returns all namespaces where extensions and/or extension points.

Method Detail

### getConfigurationElementsFor

    IConfigurationElement[] getConfigurationElementsFor(java.lang.String extensionPointId)

  Returns all configuration elements from all extensions configured into the identified extension point. Returns an empty array if the extension point does not exist, has no extensions configured, or none of the extensions contain configuration elements.

  Parameters:
    `extensionPointId` - the unique identifier of the extension point (e.g. `"org.eclipse.core.resources.builders"`)
  Returns:
    the configuration elements

### getConfigurationElementsFor

    IConfigurationElement[] getConfigurationElementsFor(java.lang.String namespace,
                                                        java.lang.String extensionPointName)

  Returns all configuration elements from all extensions configured into the identified extension point. Returns an empty array if the extension point does not exist, has no extensions configured, or none of the extensions contain configuration elements.

  Parameters:
    `namespace` - the namespace for the extension point (e.g. `"org.eclipse.core.resources"`)
    `extensionPointName` - the simple identifier of the extension point (e.g. `"builders"`)
  Returns:
    the configuration elements

### getConfigurationElementsFor

    IConfigurationElement[] getConfigurationElementsFor(java.lang.String namespace,
                                                        java.lang.String extensionPointName,
                                                        java.lang.String extensionId)

  Returns all configuration elements from the identified extension. Returns an empty array if the extension does not exist or contains no configuration elements.

  Parameters:
    `namespace` - the namespace for the extension point (e.g. `"org.eclipse.core.resources"`)
    `extensionPointName` - the simple identifier of the extension point (e.g. `"builders"`)
    `extensionId` - the unique identifier of the extension (e.g. `"com.example.acme.coolbuilder`)
  Returns:
    the configuration elements

### getExtension

    IExtension getExtension(java.lang.String extensionId)

  Returns the specified extension in this extension registry, or `null` if there is no such extension.

  Parameters:
    `extensionId` - the unique identifier of the extension (e.g. `"com.example.acme.coolbuilder"`)
  Returns:
    the extension, or `null`

### getExtension

    IExtension getExtension(java.lang.String extensionPointId,
                            java.lang.String extensionId)

  Returns the specified extension in this extension registry, or `null` if there is no such extension. The first parameter identifies the extension point, and the second parameter identifies an extension plugged in to that extension point.

  Parameters:
    `extensionPointId` - the unique identifier of the extension point (e.g. `"org.eclipse.core.resources.builders"`)
    `extensionId` - the unique identifier of the extension (e.g. `"com.example.acme.coolbuilder"`)
  Returns:
    the extension, or `null`

### getExtension

    IExtension getExtension(java.lang.String namespace,
                            java.lang.String extensionPointName,
                            java.lang.String extensionId)

  Returns the specified extension in this extension registry, or `null` if there is no such extension. The first two parameters identify the extension point, and the third parameter identifies an extension plugged in to that extension point.

  Parameters:
    `namespace` - the namespace for the extension point (e.g. `"org.eclipse.core.resources"`)
    `extensionPointName` - the simple identifier of the extension point (e.g. `"builders"`)
    `extensionId` - the unique identifier of the extension (e.g. `"com.example.acme.coolbuilder"`)
  Returns:
    the extension, or `null`

### getExtensionPoint

    IExtensionPoint getExtensionPoint(java.lang.String extensionPointId)

  Returns the extension point with the given extension point identifier in this extension registry, or `null` if there is no such extension point.

  Parameters:
    `extensionPointId` - the unique identifier of the extension point (e.g., `"org.eclipse.core.resources.builders"`)
  Returns:
    the extension point, or `null`

### getExtensionPoint

    IExtensionPoint getExtensionPoint(java.lang.String namespace,
                                      java.lang.String extensionPointName)

  Returns the extension point in this extension registry with the given namespace and extension point simple identifier, or `null` if there is no such extension point.

  Parameters:
    `namespace` - the namespace for the given extension point (e.g. `"org.eclipse.core.resources"`)
    `extensionPointName` - the simple identifier of the extension point (e.g. `" builders"`)
  Returns:
    the extension point, or `null`

### getExtensionPoints

    IExtensionPoint[] getExtensionPoints()

  Returns all extension points known to this extension registry. Returns an empty array if there are no extension points.

  Returns:
    the extension points known to this extension registry

### getExtensionPoints

    IExtensionPoint[] getExtensionPoints(java.lang.String namespace)

  Returns all extension points declared in the given namespace. Returns an empty array if there are no extension points declared in the namespace.

  Parameters:
    `namespace` - the namespace for the extension points (e.g. `"org.eclipse.core.resources"`)
  Returns:
    the extension points in this registry declared in the given namespace

### getExtensions

    IExtension[] getExtensions(java.lang.String namespace)

  Returns all extensions declared in the given namespace. Returns an empty array if no extensions are declared in the namespace.

  Parameters:
    `namespace` - the namespace for the extensions (e.g. `"org.eclipse.core.resources"`)
  Returns:
    the extensions in this registry declared in the given namespace

### getNamespaces

    java.lang.String[] getNamespaces()

  Returns all namespaces where extensions and/or extension points. Returns an empty array if there are no known extensions/extension points in this registry.

  Returns:
    all namespaces known to this registry
  Since:
    3.0

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008 Actuate Corp. All rights reserved.