java.lang.Object
com.dassault_systemes.modeler.kerml.model.Packages

@OpenApiAll public class Packages extends Object
  • Constructor Details

    • Packages

      public Packages()
  • Method Details

    • isAnonymous

      public static boolean isAnonymous(@CheckForNull Element element)
      Checks whether the given element is an anonymous package. A package is considered anonymous if it is a Package and its owning relationship is not an OwningMembership.
      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 check
      referencingClass - 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 a Package.
      Parameters:
      eClass - the class to check
      Returns:
      true if the class represents a package