|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.datatools.connectivity.oda.util.manifest.ManifestExplorer
The Manifest Explorer is the entry point to explore and access
the manifest of all the ODA plug-ins extensions that implement the
org.eclipse.datatools.connectivity.oda.dataSource extension point.
The ManifestExplorer singleton instance is retrieved
using the getInstance() method.
| Method Summary | |
java.util.Properties |
getDataSourceIdentifiers()
Returns a collection of identifiers of all ODA data source extensions. |
int |
getDefaultOdaDataTypeCode(int nativeTypeCode,
java.lang.String odaDataSourceId,
java.lang.String dataSetType)
Converts the specified native data type code to its default ODA data type code, based on the data type mapping defined by the specified ODA data source and data set types. |
ExtensionManifest |
getExtensionManifest(java.lang.String dataSourceId)
Returns the extension configuration information found in the plugin manifest file of the data source extension that contains the specified data source element and implements the DTP ODA run-time extension point - org.eclipse.datatools.connectivity.oda.dataSource. |
ExtensionManifest |
getExtensionManifest(java.lang.String dataSourceId,
java.lang.String extensionPoint)
Returns the extension configuration information found in the plugin manifest file of the data source extension that contains the specified data source element and implements the specified ODA extension point. |
ExtensionManifest[] |
getExtensionManifests()
Returns an array of DTP ODA dataSource extension configuration information found in the plugin manifest file. |
ExtensionManifest[] |
getExtensionManifests(boolean includesAllExtensions)
Returns an array of DTP ODA dataSource extension configuration information found in the plugin manifest file. |
ExtensionManifest[] |
getExtensionManifests(java.lang.String extensionPoint)
Returns an array of ODA dataSource extension configuration information of those extensions that implement the specified extension point. |
ExtensionManifest[] |
getExtensionManifests(java.lang.String extensionPoint,
boolean includesAllExtensions)
Returns an array of ODA dataSource extension configuration information of those extensions that implement the specified extension point. |
static IExtension[] |
getExtensions(java.lang.String extPoint)
|
static ManifestExplorer |
getInstance()
Gets the ManifestExplorer instance to
explore the manifest of the data source extensions. |
static IConfigurationElement |
getNamedElement(IExtension extension,
java.lang.String elementName)
Returns the configuration element of the given extension and element name. |
static IConfigurationElement[] |
getNamedElements(IExtension extension,
java.lang.String elementName)
Returns a collection of configuration elements with the given name in the given extension. |
static IConfigurationElement[] |
getNamedElements(IExtension extension,
java.lang.String elementName,
java.lang.String requiredAttributeName)
Returns a collection of configuration elements with the given name in the given extension. |
void |
refresh()
Refresh the manifest explorer, and allows it to get the latest ODA Design UI extension manifests. |
static void |
releaseInstance()
Singleton instance release method. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static ManifestExplorer getInstance()
ManifestExplorer instance to
explore the manifest of the data source extensions.
ManifestExplorer instance.public static void releaseInstance()
public void refresh()
public java.util.Properties getDataSourceIdentifiers()
Properties if there are
no data source extensions found.
Properties containing the id
and display name of all data source extensions.
public ExtensionManifest getExtensionManifest(java.lang.String dataSourceId)
throws OdaException
dataSourceId - the unique id of the data source element
in a data source extension.
OdaException - if the extension manifest is invalid.
java.lang.IllegalArgumentException - if no extension is found.
public ExtensionManifest getExtensionManifest(java.lang.String dataSourceId,
java.lang.String extensionPoint)
throws OdaException
dataSourceId - the unique id of the data source element
in a data source extension.extensionPoint - the id of the extension point to search
OdaException - if the extension manifest is invalid.public ExtensionManifest[] getExtensionManifests()
ExtensionManifest array containing
the definition of all matching ODA data source extensions.public ExtensionManifest[] getExtensionManifests(boolean includesAllExtensions)
includesAllExtensions - true to include all matching extensions;
false to include only those matching extensions
with at least one valid dataSet element defined
ExtensionManifest array containing
the definition of all matching ODA data source extensions.public ExtensionManifest[] getExtensionManifests(java.lang.String extensionPoint)
extensionPoint - name of an ODA data source extension point
ExtensionManifest array containing
the definition of all matching ODA data source extensions.
public ExtensionManifest[] getExtensionManifests(java.lang.String extensionPoint,
boolean includesAllExtensions)
extensionPoint - name of an ODA data source extension pointincludesAllExtensions - true to include all matching extensions;
false to include only those matching extensions
with at least one valid dataSet element defined
ExtensionManifest array containing
the definition of all matching ODA data source extensions.public static IExtension[] getExtensions(java.lang.String extPoint)
public static IConfigurationElement getNamedElement(IExtension extension,
java.lang.String elementName)
throws OdaException
OdaException
public static IConfigurationElement[] getNamedElements(IExtension extension,
java.lang.String elementName)
throws OdaException
OdaException
public static IConfigurationElement[] getNamedElements(IExtension extension,
java.lang.String elementName,
java.lang.String requiredAttributeName)
throws OdaException
OdaException
public int getDefaultOdaDataTypeCode(int nativeTypeCode,
java.lang.String odaDataSourceId,
java.lang.String dataSetType)
nativeTypeCode - native type code specific to the ODA data sourceodaDataSourceId - the ODA data source element iddataSetType - the type of data set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||