Class Dependencies

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

@OpenApiAll public class Dependencies extends Object
Utility class to work with Dependency
  • Constructor Details

    • Dependencies

      public Dependencies()
  • Method Details

    • isBinary

      public static boolean isBinary(Dependency dependency)
      Checks whether the dependency is binary, meaning it has at most one client and at most one supplier.
      Parameters:
      dependency - the dependency
      Returns:
      true if the dependency is binary
    • isNary

      public static boolean isNary(Dependency dependency)
      Checks whether the dependency is n‑ary, meaning it has more than one client or more than one supplier.
      Parameters:
      dependency - the dependency
      Returns:
      true if the dependency is n‑ary
    • isDependency

      public static boolean isDependency(org.eclipse.emf.ecore.EClass eClass)
      Checks whether the given EClass represents a Dependency.
      Parameters:
      eClass - the class to check
      Returns:
      true if the class is a dependency
    • streamOfSuppliersOfOwnedOutgoingDependencies

      public static Stream<Element> streamOfSuppliersOfOwnedOutgoingDependencies(Element context)
      Returns a stream of all supplier elements of outgoing dependencies owned by the given context element.
      Parameters:
      context - the element whose outgoing dependencies are examined
      Returns:
      stream of supplier elements
    • streamOfOwnedOutgoingDependencies

      public static Stream<Dependency> streamOfOwnedOutgoingDependencies(Element context)
      Returns a stream of all outgoing dependencies owned by the given context element. Outgoing dependencies are those directly contained in Element.getOwnedElement().
      Parameters:
      context - the element whose outgoing dependencies are examined
      Returns:
      stream of owned outgoing dependencies