Class DependencyEntry
- java.lang.Object
-
- com.nomagic.magicdraw.dependencymatrix.datamodel.cell.DependencyEntry
-
@OpenApiAll public class DependencyEntry extends java.lang.ObjectRepresents single dependency entry inside Dependency Matrix
-
-
Constructor Summary
Constructors Constructor Description DependencyEntry(DependencyDirection direction, java.util.List<Element> cause)Creates relation chain with all required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.List<Element>getCause()Elements causing this dependency to existjava.lang.StringgetDescription()String description of the dependencyDependencyDirectiongetDirection()Direction of the dependencyjava.lang.StringgetName()Representative text for the dependencyDependencyStylegetStyle()java.lang.StringgetType()Returns dependency type which may represent the cell dependencies.inthashCode()voidsetDescription(java.lang.String description)String description of the dependency
-
-
-
Field Detail
-
cause
protected java.util.List<Element> cause
Element or chain of elements, which are responsible that expression evaluated onsourcegivestargetas a result
-
-
Constructor Detail
-
DependencyEntry
public DependencyEntry(DependencyDirection direction, java.util.List<Element> cause)
Creates relation chain with all required properties. All have to be set (no null values)- Parameters:
direction- relationship directioncause- Dependency causing elements
-
-
Method Detail
-
getDirection
public DependencyDirection getDirection()
Direction of the dependency- Returns:
- Direction
-
getCause
public java.util.List<Element> getCause()
Elements causing this dependency to exist- Returns:
- elements causing this dependency
-
getType
public java.lang.String getType()
Returns dependency type which may represent the cell dependencies. In simple case it returns first dependency cause element class type- Returns:
- type of the dependency
-
getName
public java.lang.String getName()
Representative text for the dependency- Returns:
- name of the dependency entry
-
getDescription
public java.lang.String getDescription()
String description of the dependency- Returns:
- short representative description of the dependency
-
setDescription
public void setDescription(java.lang.String description)
String description of the dependency- Parameters:
description- hort representative description of the dependency
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getStyle
public DependencyStyle getStyle()
-
-