public class CallGraphLink
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
id
The unique ID of this link.
|
private java.lang.Integer |
parentId
If present, it represents the ID of a parent program-to-program link.
|
private java.lang.String |
source
Graph-unique id for the source node.
|
private java.lang.String |
target
Graph-unique id for the target node.
|
private java.lang.String |
text
Descriptive text for the link.
|
Constructor and Description |
---|
CallGraphLink(int id,
int parentId,
java.lang.String source,
java.lang.String target,
java.lang.String text)
Construct an instance.
|
CallGraphLink(int id,
java.lang.String source,
java.lang.String target,
java.lang.String text)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getId()
Get the
id of this link. |
java.lang.Integer |
getParentId()
Get the
parentId of this link. |
java.lang.String |
getSource()
Obtain the unique id of the source node.
|
java.lang.String |
getTarget()
Obtain the unique id of the target node.
|
java.lang.String |
getText()
Obtain the descriptive text for the link.
|
int |
hashCode()
|
void |
setId(int id)
Set the
id of this link |
void |
setParentId(java.lang.Integer parentId)
Set the
parentId of this link |
void |
setSource(java.lang.String source)
Set the unique id of the source node.
|
void |
setTarget(java.lang.String target)
Set the unique id of the target node.
|
void |
setText(java.lang.String text)
Set the descriptive text for the link.
|
private java.lang.String source
private java.lang.String target
private java.lang.String text
private int id
private java.lang.Integer parentId
public CallGraphLink(int id, java.lang.String source, java.lang.String target, java.lang.String text)
id
- The link's unique ID.source
- Graph-unique id for the source node.target
- Graph-unique id for the target node.text
- Descriptive text for the link.public CallGraphLink(int id, int parentId, java.lang.String source, java.lang.String target, java.lang.String text)
id
- The link's unique ID.parentId
- The link's associated program-to-program link ID.source
- Graph-unique id for the source node.target
- Graph-unique id for the target node.text
- Descriptive text for the link.public java.lang.String getSource()
public void setSource(java.lang.String source)
source
- The new source node id to assign.public java.lang.String getTarget()
public void setTarget(java.lang.String target)
target
- The new target node id to assign.public java.lang.String getText()
public void setText(java.lang.String text)
text
- The new descriptive text to assign.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The instance to compare.public int getId()
id
of this link.public void setId(int id)
id
of this linkid
- The unique ID of this link.public java.lang.Integer getParentId()
parentId
of this link. Will be null
, if this is an intra-program
or a link with a non-program, external, resource.public void setParentId(java.lang.Integer parentId)
parentId
of this linkparentId
- The ID of this link's program-to-program associated link.