|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.uml.internal.UMLForeignMethods
public class UMLForeignMethods
A collection of Foreign Methods for the UML API.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 element
public 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 package
null
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 for
null
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 vertex
null
if nonepublic static org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.Association> getAllAssociations(org.eclipse.uml2.uml.Classifier classifier)
classifier
- a classifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |