public static class UMLUtil.StereotypeApplicationHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static UMLUtil.StereotypeApplicationHelper |
INSTANCE
Deprecated.
Since the 5.1 release, direct reliance on this shared
helper instance is deprecated. Instead, use the
getInstance(Notifier) method to obtain a helper
specific to the particular model context |
Constructor and Description |
---|
StereotypeApplicationHelper() |
Modifier and Type | Method and Description |
---|---|
boolean |
addToContainmentList(Element element,
org.eclipse.emf.ecore.EObject stereotypeApplication)
Deprecated.
|
boolean |
addToContainmentList(Element element,
org.eclipse.emf.ecore.EObject stereotypeApplication,
Stereotype stereotype) |
org.eclipse.emf.ecore.EObject |
applyStereotype(Element element,
org.eclipse.emf.ecore.EClass definition)
Deprecated.
|
org.eclipse.emf.ecore.EObject |
applyStereotype(Element element,
org.eclipse.emf.ecore.EClass definition,
Stereotype stereotype) |
protected org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> |
getContainmentList(Element element,
org.eclipse.emf.ecore.EClass definition)
Deprecated.
|
protected org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> |
getContainmentList(Element element,
org.eclipse.emf.ecore.EClass definition,
Stereotype stereotype) |
static UMLUtil.StereotypeApplicationHelper |
getInstance(org.eclipse.emf.common.notify.Notifier context)
Obtains the most appropriate
UMLUtil.StereotypeApplicationHelper
instance for managing stereotype applications in the given
context . |
boolean |
removeFromContainmentList(Element element,
org.eclipse.emf.ecore.EObject stereotypeApplication)
Deprecated.
|
boolean |
removeFromContainmentList(Element element,
org.eclipse.emf.ecore.EObject stereotypeApplication,
Stereotype stereotype) |
static UMLUtil.StereotypeApplicationHelper |
setInstance(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
UMLUtil.StereotypeApplicationHelper instance)
Assigns a particular helper
instance for management of
stereotype applications in the scope of a resource set. |
@Deprecated public static final UMLUtil.StereotypeApplicationHelper INSTANCE
getInstance(Notifier)
method to obtain a helper
specific to the particular model contextpublic static UMLUtil.StereotypeApplicationHelper getInstance(org.eclipse.emf.common.notify.Notifier context)
UMLUtil.StereotypeApplicationHelper
instance for managing stereotype applications in the given
context
. This helper should always be preferred over using
the default INSTANCE
.context
- a ResourceSet
, Resource
, or
EObject
in the context of which the caller is
working with stereotype applicationsResourceSet
if
there is such reachable from the context
, or else the
default INSTANCE
. The result is never null
public static UMLUtil.StereotypeApplicationHelper setInstance(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, UMLUtil.StereotypeApplicationHelper instance)
instance
for management of
stereotype applications in the scope of a resource set. This
supersedes the default INSTANCE
for all stereotype
operations on model elements in the resource set.resourceSet
- a resource set. Must not be null
instance
- a stereotype application helper to assign. Must not be
null
. May be the default INSTANCE
INSTANCE
if no
specific helper was assignedprotected org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getContainmentList(Element element, org.eclipse.emf.ecore.EClass definition, Stereotype stereotype)
@Deprecated protected org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getContainmentList(Element element, org.eclipse.emf.ecore.EClass definition)
public boolean addToContainmentList(Element element, org.eclipse.emf.ecore.EObject stereotypeApplication, Stereotype stereotype)
@Deprecated public boolean addToContainmentList(Element element, org.eclipse.emf.ecore.EObject stereotypeApplication)
public boolean removeFromContainmentList(Element element, org.eclipse.emf.ecore.EObject stereotypeApplication, Stereotype stereotype)
@Deprecated public boolean removeFromContainmentList(Element element, org.eclipse.emf.ecore.EObject stereotypeApplication)
public org.eclipse.emf.ecore.EObject applyStereotype(Element element, org.eclipse.emf.ecore.EClass definition, Stereotype stereotype)
@Deprecated public org.eclipse.emf.ecore.EObject applyStereotype(Element element, org.eclipse.emf.ecore.EClass definition)