public class UMLForeignMethods extends Object
| Modifier and Type | Method and Description |
|---|---|
static <any> |
getAllAssociations(Classifier classifier)
Foreign method for the missing Classifier::getAllAssociations()
method that gets inherited associations as well as those defined by the
specified classifier.
|
static NamedElement |
getMember(Namespace ns,
String name,
EClass type)
Foreign method for
Namespace#getMember(String, boolean, EClass)
that accounts for possibility of underscore-escaped names. |
static Package |
getNestedPackage(Package pkg,
String name)
Foreign method for
Package#getNestedPackage(String) that accounts
for possibility of underscore-escaped names. |
static Vertex |
getSubvertex(Region region,
String name)
Foreign method for
Region#getSubvertex(String) that accounts for
possibility of underscore-escaped names. |
static boolean |
isNamed(String name,
NamedElement element)
Checks whether the specified element has the given name, accounting for
possibility of underscore-escaped names.
|
public static boolean isNamed(String name, NamedElement element)
name - a possibly underscore-escaped name of an elementelement - a named elementpublic static Package getNestedPackage(Package pkg, 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 NamedElement getMember(Namespace ns,
String name,
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 Vertex getSubvertex(Region region,
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 <any> getAllAssociations(Classifier classifier)
classifier - a classifierCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.