Class Packages
java.lang.Object
com.dassault_systemes.modeler.kerml.model.Packages
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAnonymous(Element element) Checks whether the given element is an anonymous package.static booleanisAnonymousPackageOwnedByReferencingClass(Element element, Class referencingClass) Checks whether the given element is an anonymous package owned by a specific referencing relationship class.static booleanisPackage(org.eclipse.emf.ecore.EClass eClass) Checks whether the given EClass represents aPackage.
-
Constructor Details
-
Packages
public Packages()
-
-
Method Details
-
isAnonymous
Checks whether the given element is an anonymous package. A package is considered anonymous if it is aPackageand its owning relationship is not anOwningMembership.- Parameters:
element- the element to check- Returns:
- true if the element is an anonymous package
-
isAnonymousPackageOwnedByReferencingClass
public static boolean isAnonymousPackageOwnedByReferencingClass(@CheckForNull Element element, Class referencingClass) Checks whether the given element is an anonymous package owned by a specific referencing relationship class.- Parameters:
element- the element to checkreferencingClass- the expected owning relationship class- Returns:
- true if the element is an anonymous package owned by that class
-
isPackage
public static boolean isPackage(org.eclipse.emf.ecore.EClass eClass) Checks whether the given EClass represents aPackage.- Parameters:
eClass- the class to check- Returns:
- true if the class represents a package
-