public class EcoreForeignMethods extends Object
Modifier and Type | Method and Description |
---|---|
static EClassifier |
getEClassifier(EPackage pkg,
String name)
Foreign method for
EPackage#getEClassifier(String)
that accounts for possibility of underscore-escaped names. |
static EPackage |
getESubpackage(EPackage pkg,
String name)
Foreign method for
EPackage#getESubpackages() that searches by
name and accounts for possibility of underscore-escaped names. |
static boolean |
isNamed(String name,
ENamedElement element)
Checks whether the specified element has the given name, accounting for
possibility of underscore-escaped names.
|
public static boolean isNamed(String name, ENamedElement element)
name
- a possibly underscore-escaped name of an elementelement
- a named elementpublic static EClassifier getEClassifier(EPackage pkg, String name)
EPackage#getEClassifier(String)
that accounts for possibility of underscore-escaped names.pkg
- a packagename
- a possibly underscore-escaped name of a nested classifiernull
if nonepublic static EPackage getESubpackage(EPackage pkg, String name)
EPackage#getESubpackages()
that searches by
name and accounts for possibility of underscore-escaped names.pkg
- a packagename
- a possibly underscore-escaped name of a nested packagenull
if noneCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.