Class DependencyEntry
- java.lang.Object
-
- com.nomagic.magicdraw.dependencymatrix.datamodel.cell.DependencyEntry
-
@OpenApiAll public class DependencyEntry extends java.lang.Object
Represents single dependency entry inside Dependency Matrix
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<Element>
cause
Element or chain of elements, which are responsible that expression evaluated onsource
givestarget
as a resultprivate DependencyDirection
direction
Direction of the dependencyprivate java.lang.String
mDescription
description of the dependency for tooltip
-
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 boolean
equals(java.lang.Object o)
java.util.List<Element>
getCause()
Elements causing this dependency to existjava.lang.String
getDescription()
String description of the dependencyDependencyDirection
getDirection()
Direction of the dependencyjava.lang.String
getName()
Representative text for the dependencyDependencyStyle
getStyle()
java.lang.String
getType()
Returns dependency type which may represent the cell dependencies.int
hashCode()
void
setDescription(java.lang.String description)
String description of the dependency
-
-
-
Field Detail
-
mDescription
private java.lang.String mDescription
description of the dependency for tooltip
-
cause
protected java.util.List<Element> cause
Element or chain of elements, which are responsible that expression evaluated onsource
givestarget
as a result
-
direction
private final DependencyDirection direction
Direction of the dependency
-
-
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 depencency
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getStyle
public DependencyStyle getStyle()
-
-