public class ModelExtensionParser
extends java.lang.Object
Copyright Micro Focus GmbH.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT_TYPE_MODEL_EXTENSION_ID
The model extension ID for the AWM element type extension property
|
static java.lang.String |
END_MODEL_REFERENCE_QUALIFIER
The qualifier used in the model extension to indicate the end of a model
object reference
|
static java.lang.String |
MODEL_EXTENSION_EXT_POINT_ID
Extension point ID for AWM Model Extensions.
|
static java.lang.String |
START_MODEL_REFERENCE_QUALIFIER
The qualifier used in the model extension to indicate the start of a
model object reference.
|
static java.lang.String |
TOOL_EXECUTOR_EXT_POINT_ID
Deprecated.
Old tool type extension point. The extension point
"com.microfocus.awm.model.extension" should be used
instead.
|
| Constructor and Description |
|---|
ModelExtensionParser() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<FunctionPackageExtension> |
getFunctionPackageExtensions()
Lazy gets a list of all registered model extensions.
|
static java.util.List<FunctionPackageExtension> |
getFunctionPackageExtensions(TaurusPackage pPackage)
Lazy gets a list of all registered model extensions.
|
static java.util.List<java.lang.Throwable> |
getModelExtensionPointErrors()
Gets a list of errors which occurred while model extensions were parsed.
|
static java.util.List<org.eclipse.core.runtime.IStatus> |
getModelExtensionPointMessages()
Gets a list of
IStatuses which occurred while model extensions
were parsed. |
static java.net.URL |
getResource(org.eclipse.core.runtime.IConfigurationElement pExtension,
java.lang.String pResourcePath)
Gets an URL from a resource configuration element.
|
static java.net.URL |
getResourceFromAttribute(org.eclipse.core.runtime.IConfigurationElement pExtension,
java.lang.String pAttributeName)
Gets an URL from a resource configuration element attribute.
|
static java.util.List<org.eclipse.core.runtime.IConfigurationElement> |
getToolExecutorExtensions()
Deprecated.
Old tool type extension point. The extension point
"com.microfocus.awm.model.extension" should be used
instead.
|
static java.util.List<ToolTypeExtension> |
getToolTypes()
Gets a list of available tool type extensions.
|
static java.lang.String[] |
parseMultiValueAttribute(java.lang.String pAttribute,
java.lang.String pSeparator)
Parses an attribute of an extension which has several separated values.
|
public static final java.lang.String MODEL_EXTENSION_EXT_POINT_ID
public static final java.lang.String ELEMENT_TYPE_MODEL_EXTENSION_ID
public static final java.lang.String START_MODEL_REFERENCE_QUALIFIER
public static final java.lang.String END_MODEL_REFERENCE_QUALIFIER
@Deprecated public static final java.lang.String TOOL_EXECUTOR_EXT_POINT_ID
public static java.util.List<FunctionPackageExtension> getFunctionPackageExtensions()
public static java.util.List<FunctionPackageExtension> getFunctionPackageExtensions(TaurusPackage pPackage)
pPackage - the TaurusPackage instance.@Deprecated public static java.util.List<org.eclipse.core.runtime.IConfigurationElement> getToolExecutorExtensions()
getToolTypes()public static java.util.List<ToolTypeExtension> getToolTypes()
getToolExecutorExtensions()public static java.lang.String[] parseMultiValueAttribute(java.lang.String pAttribute,
java.lang.String pSeparator)
pAttribute - the attribute which contains several valuespSeparator - the separatorpublic static java.net.URL getResourceFromAttribute(org.eclipse.core.runtime.IConfigurationElement pExtension,
java.lang.String pAttributeName)
pExtension - a configuration elementpAttributeName - name of the attribute which contains a resourcenull if the resource could not
be found or if this bundle is a fragment bundle or if the caller
does not have the appropriate AdminPermission[this,RESOURCE], and
the Java Runtime Environment supports permissions.getResource(IConfigurationElement, String),
Bundle.getResource(String)public static java.net.URL getResource(org.eclipse.core.runtime.IConfigurationElement pExtension,
java.lang.String pResourcePath)
pExtension - a configuration elementpResourcePath - the resource path in the bundlenull if the resource could not
be found or if this bundle is a fragment bundle or if the caller
does not have the appropriate AdminPermission[this,RESOURCE], and
the Java Runtime Environment supports permissions.getResourceFromAttribute(IConfigurationElement, String),
Bundle.getResource(String)public static java.util.List<java.lang.Throwable> getModelExtensionPointErrors()
public static java.util.List<org.eclipse.core.runtime.IStatus> getModelExtensionPointMessages()
IStatuses which occurred while model extensions
were parsed. Only contains statuses which were explicitly cached and
added to the list.IStatus.WARNING or
IStatus.INFO). Can be empty.Copyright © 2015 Micro Focus GmbH. All rights reserved.