Class Dependencies
java.lang.Object
com.dassault_systemes.modeler.kerml.model.Dependencies
Utility class to work with
Dependency-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisBinary(Dependency dependency) Checks whether the dependency is binary, meaning it has at most one client and at most one supplier.static booleanisDependency(org.eclipse.emf.ecore.EClass eClass) Checks whether the given EClass represents aDependency.static booleanisNary(Dependency dependency) Checks whether the dependency is n‑ary, meaning it has more than one client or more than one supplier.static Stream<Dependency> streamOfOwnedOutgoingDependencies(Element context) Returns a stream of all outgoing dependencies owned by the given context element.Returns a stream of all supplier elements of outgoing dependencies owned by the given context element.
-
Constructor Details
-
Dependencies
public Dependencies()
-
-
Method Details
-
isBinary
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
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 aDependency.- Parameters:
eClass- the class to check- Returns:
- true if the class is a dependency
-
streamOfSuppliersOfOwnedOutgoingDependencies
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
Returns a stream of all outgoing dependencies owned by the given context element. Outgoing dependencies are those directly contained inElement.getOwnedElement().- Parameters:
context- the element whose outgoing dependencies are examined- Returns:
- stream of owned outgoing dependencies
-