public class Cause
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
origin
The id.
|
protected java.lang.String |
sourceid
The source id.
|
protected java.lang.String |
targetid
The target id.
|
Constructor and Description |
---|
Cause()
Create a new cause.
|
Cause(Cause other)
Create a new cause as clone of the other.
|
Cause(Cause old,
java.lang.String targetname)
Create a new cause rolling old one.
|
Cause(java.lang.String sourcename,
java.lang.String targetname)
Create a new cause.
|
Cause(java.lang.String sourceid,
java.lang.String targetid,
java.lang.String sourcename,
java.lang.String targetname)
Create a new cause.
|
Cause(java.lang.String chainid,
java.lang.String sourceid,
java.lang.String targetid,
java.lang.String sourcename,
java.lang.String targetname)
Create a new cause.
|
Modifier and Type | Method and Description |
---|---|
Cause |
createNext()
Create the next cause.
|
java.lang.String |
createUniqueId()
Create a unique id.
|
protected java.lang.String |
createUniqueId(int len)
Create a unique id.
|
boolean |
equals(java.lang.Object obj)
Test for equality.
|
java.lang.String |
getOrigin()
Get the chain id.
|
java.lang.String |
getSourceId()
Get the sourceId.
|
java.lang.String |
getTargetId()
Get the targetId.
|
int |
hashCode()
Get the hash code.
|
void |
setOrigin(java.lang.String callid)
Set the chain id.
|
void |
setSourceId(java.lang.String sourceid)
Set the sourceId.
|
void |
setTargetId(java.lang.String targetid)
Set the targetId.
|
java.lang.String |
toString()
Get the string representation.
|
protected java.lang.String origin
protected java.lang.String sourceid
protected java.lang.String targetid
public Cause()
public Cause(java.lang.String sourcename, java.lang.String targetname)
public Cause(java.lang.String sourceid, java.lang.String targetid, java.lang.String sourcename, java.lang.String targetname)
public Cause(java.lang.String chainid, java.lang.String sourceid, java.lang.String targetid, java.lang.String sourcename, java.lang.String targetname)
public Cause(Cause old, java.lang.String targetname)
public Cause(Cause other)
public Cause createNext()
targetname
- The new target name.public java.lang.String createUniqueId()
protected java.lang.String createUniqueId(int len)
public java.lang.String getOrigin()
public void setOrigin(java.lang.String callid)
origin
- The chainid to set.public java.lang.String getSourceId()
public void setSourceId(java.lang.String sourceid)
sourceid
- The sourceId to set.public java.lang.String getTargetId()
public void setTargetId(java.lang.String targetid)
targetid
- The targetId to set.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object