public class UMLForeignMethods
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.Association> |
getAllAssociations(org.eclipse.uml2.uml.Classifier classifier)
Foreign method for the missing Classifier::getAllAssociations()
method that gets inherited associations as well as those defined by the
specified classifier.
|
static org.eclipse.uml2.uml.NamedElement |
getMember(org.eclipse.uml2.uml.Namespace ns,
java.lang.String name,
org.eclipse.emf.ecore.EClass type)
Foreign method for
Namespace.getMember(String, boolean, EClass)
that accounts for possibility of underscore-escaped names. |
static org.eclipse.uml2.uml.Package |
getNestedPackage(org.eclipse.uml2.uml.Package pkg,
java.lang.String name)
Foreign method for
Package.getNestedPackage(String) that accounts
for possibility of underscore-escaped names. |
static org.eclipse.uml2.uml.Vertex |
getSubvertex(org.eclipse.uml2.uml.Region region,
java.lang.String name)
Foreign method for
Region.getSubvertex(String) that accounts for
possibility of underscore-escaped names. |
static boolean |
isNamed(java.lang.String name,
org.eclipse.uml2.uml.NamedElement element)
Checks whether the specified element has the given name, accounting for
possibility of underscore-escaped names.
|
public static boolean isNamed(java.lang.String name, org.eclipse.uml2.uml.NamedElement element)
name
- a possibly underscore-escaped name of an elementelement
- a named elementpublic static org.eclipse.uml2.uml.Package getNestedPackage(org.eclipse.uml2.uml.Package pkg, java.lang.String name)
Package.getNestedPackage(String)
that accounts
for possibility of underscore-escaped names.pkg
- a packagename
- a possibly underscore-escaped name of a nested packagenull
if nonepublic static org.eclipse.uml2.uml.NamedElement getMember(org.eclipse.uml2.uml.Namespace ns, java.lang.String name, org.eclipse.emf.ecore.EClass type)
Namespace.getMember(String, boolean, EClass)
that accounts for possibility of underscore-escaped names.ns
- a namespacename
- a possibly underscore-escaped name of a membertype
- the type of member to look fornull
if nonepublic static org.eclipse.uml2.uml.Vertex getSubvertex(org.eclipse.uml2.uml.Region region, java.lang.String name)
Region.getSubvertex(String)
that accounts for
possibility of underscore-escaped names.region
- a regionname
- a possibly underscore-escaped name of a vertexnull
if nonepublic static org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.Association> getAllAssociations(org.eclipse.uml2.uml.Classifier classifier)
classifier
- a classifier