public class ModelExtensionUtilities
extends java.lang.Object
Copyright Micro Focus GmbH.
| Constructor and Description |
|---|
ModelExtensionUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static ComplexAttributeExtension |
getComplexAttribute(ComplexAttributeBase pCab)
Gets the
ComplexAttributeExtension for the given
ComplexAttributeBase. |
static java.lang.String |
getFullQualifiedID(ModelExtensionObject pExtensionObject,
java.lang.String pLastQualifier)
Returns a full qualified ID using the ID of the given model extension
object and appending the given last qualifier.
|
static FunctionPackage |
getFunctionPackage(FunctionPackageExtension pFpe,
TAURUSConfiguration pModel)
Gets the function package for the given extension from the model.
|
static FunctionPackageExtension |
getFunctionPackage(ToolDescriptor pTd)
Gets the function package of the given tool descriptor.
|
static FunctionPackageExtension |
getFunctionPackageExtension(FunctionPackage pPackage)
Gets the function package extension of a modelled function package.
|
static FunctionPackageExtension |
getFunctionPackageExtension(java.lang.String pPackageId)
Gets the function package extension with the given ID.
|
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 IconExtension |
getIconExtension(java.lang.String pFunctionPackageIconID)
Gets the icon extension for the given ID.
|
static java.util.List<IconExtension> |
getIconExtensions()
Gets a list of all available icon extensions.
|
static LinkedElementTypeExtension |
getLinkedElementTypeExtension(java.lang.String pLinkedElementTypeID)
Gets the linked element type extension with the given ID.
|
static java.util.Collection<LinkedElementTypeExtension> |
getLinkedElementTypeExtensions()
Gets all registered linked element type extensions.
|
static ModelExtensionObject |
getModelExtensionObject(DynamicObject pDynObj)
Gets the model extension object for a dynamic EObject.
|
static ModelExtensionObject |
getModelExtensionObject(java.lang.String pExtensionID)
Gets the model extension object for an ID.
|
static ModelExtensionWithAttributes |
getModelExtensionWithAttributes(org.eclipse.emf.ecore.EObject pDynamicObject)
Gets the
ModelExtensionWithAttributes for the given
DynamicObject. |
static java.util.Collection<PreDefinedModelExtensionObject> |
getPreDefinedObjectExtensions(org.eclipse.emf.ecore.EClass pEClass)
Gets all available
PreDefinedModelExtensionObjects for the
desired EClass. |
static java.util.Collection<PreDefinedModelExtensionObject> |
getPreDefinedObjectExtensions(org.eclipse.emf.ecore.EClass pEClass,
java.util.List<FunctionPackage> pDesiredFunctionPackages)
Gets all available
PreDefinedModelExtensionObjects for the
desired EClass and function packages. |
static java.util.List<PropertyProviderExtension> |
getPropertyProviderExtensions()
Gets a list of all available property provider extensions.
|
static ToolTypeExtension |
getToolType(ToolDescriptor pTd)
Gets the
ToolTypeExtension of the given tool descriptor. |
static ToolTypeParameter |
getToolTypeParameter(RToolParameter pTp)
Gets the
ToolTypeParameter of the given tool type parameter. |
static java.util.List<ToolTypeExtension> |
getToolTypes()
Gets a list of available tool type extensions.
|
public static ToolTypeExtension getToolType(ToolDescriptor pTd)
ToolTypeExtension of the given tool descriptor. Returns
null if it cannot be found.pTd - a tool descriptornullpublic static ToolTypeParameter getToolTypeParameter(RToolParameter pTp)
ToolTypeParameter of the given tool type parameter.
Returns null if it cannot be found.pTp - a RToolParameternullpublic static ComplexAttributeExtension getComplexAttribute(ComplexAttributeBase pCab)
ComplexAttributeExtension for the given
ComplexAttributeBase.pCab - the complex attribute base (model editor object)nullpublic static ModelExtensionWithAttributes getModelExtensionWithAttributes(org.eclipse.emf.ecore.EObject pDynamicObject)
ModelExtensionWithAttributes for the given
DynamicObject.pDynamicObject - the DynamicObjectnullpublic static FunctionPackageExtension getFunctionPackageExtension(FunctionPackage pPackage)
pPackage - the package from the modelnullpublic static ModelExtensionObject getModelExtensionObject(DynamicObject pDynObj)
pDynObj - the dynamic objectnullpublic static FunctionPackageExtension getFunctionPackage(ToolDescriptor pTd)
pTd - the tool descriptornullpublic static java.lang.String getFullQualifiedID(ModelExtensionObject pExtensionObject, java.lang.String pLastQualifier)
pExtensionObject - the model extension objectpLastQualifier - the last ID qualifierpublic static java.util.List<FunctionPackageExtension> getFunctionPackageExtensions()
ModelExtensionParser.getFunctionPackageExtensions()public static java.util.List<FunctionPackageExtension> getFunctionPackageExtensions(TaurusPackage pPackage)
pPackage - the TaurusPackage instanceModelExtensionParser.getFunctionPackageExtensions()public static FunctionPackage getFunctionPackage(FunctionPackageExtension pFpe, TAURUSConfiguration pModel)
null if the function package is not defined in the model.pFpe - the function package extensionpModel - the model to search the package innull if it doesn't exist in
the modelpublic static java.util.List<ToolTypeExtension> getToolTypes()
ModelExtensionParser.getToolExecutorExtensions(),
ModelExtensionParser.getToolTypes()public static java.util.List<PropertyProviderExtension> getPropertyProviderExtensions()
public static LinkedElementTypeExtension getLinkedElementTypeExtension(java.lang.String pLinkedElementTypeID)
pLinkedElementTypeID - the ID of a linked element type extensionnull if it does
not existpublic static java.util.Collection<LinkedElementTypeExtension> getLinkedElementTypeExtensions()
public static FunctionPackageExtension getFunctionPackageExtension(java.lang.String pPackageId)
pPackageId - the ID of the function package extensionnull if no
extension with the given ID existspublic static java.util.List<IconExtension> getIconExtensions()
public static IconExtension getIconExtension(java.lang.String pFunctionPackageIconID)
pFunctionPackageIconID - the full qualified icon extension IDnullpublic static ModelExtensionObject getModelExtensionObject(java.lang.String pExtensionID)
pExtensionID - the ID of the model extension objectnullpublic static java.util.Collection<PreDefinedModelExtensionObject> getPreDefinedObjectExtensions(org.eclipse.emf.ecore.EClass pEClass)
PreDefinedModelExtensionObjects for the
desired EClass.
Same as calling getPreDefinedObjectExtensions(EClass, null).
pEClass - the desired EClasspublic static java.util.Collection<PreDefinedModelExtensionObject> getPreDefinedObjectExtensions(org.eclipse.emf.ecore.EClass pEClass, java.util.List<FunctionPackage> pDesiredFunctionPackages)
PreDefinedModelExtensionObjects for the
desired EClass and function packages.pEClass - the desired EClasspDesiredFunctionPackages - a collection of desired function packages. Extensions of other
function packages will be ignored. Can be null to
not filter for function packages and return all applicable
extensions.Copyright © 2015 Micro Focus GmbH. All rights reserved.