public final class LinkConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static char |
DYNAMIC_DELIMITER
The delimiter between the dynamic port targets.
|
Constructor and Description |
---|
LinkConfiguration(java.lang.String sourceComponent,
java.lang.String sourcePort,
java.lang.String targetComponent,
java.lang.String targetPort)
Creates a new link between the source and the target ports.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether this link equals another object.
|
java.lang.String |
getSourceComponent()
Returns the name of the source component that emits events.
|
java.lang.String |
getSourcePort()
Returns the source port that emits events.
|
java.lang.String |
getSourcePrefix()
Returns the port prefix for a dynamic source port
or null if the source port is not a dynamic link.
|
java.lang.String |
getSourceSuffix()
Returns the port suffix for a dynamic source port
or null if the source port is not a dynamic link.
|
java.lang.String |
getTargetComponent()
Returns the name of the target component that receives events.
|
java.lang.String |
getTargetPort()
Returns the target port that receives events.
|
java.lang.String |
getTargetPrefix()
Returns the port prefix for a dynamic target port
or null if the target port is not a dynamic link.
|
java.lang.String |
getTargetSuffix()
Returns the port suffix for a dynamic target port
or null if the target port is not a dynamic link.
|
int |
hashCode()
Computes a hash code for the object based on the values of the fields.
|
boolean |
isSourceDynamic()
Determines whether the source port refers to a dynamic
port.
|
boolean |
isTargetDynamic()
Determines whether the target port refers to a dynamic
port.
|
java.lang.String |
toString()
Returns a human readable string representation.
|
public static final char DYNAMIC_DELIMITER
public LinkConfiguration(java.lang.String sourceComponent, java.lang.String sourcePort, java.lang.String targetComponent, java.lang.String targetPort)
sourceComponent
- The source component name.targetComponent
- The target component name.sourcePort
- The source port name that emits events.targetPort
- The target port name that receives events.java.lang.NullPointerException
- Thrown if the source port or component or
target port or component are null.public java.lang.String getSourceComponent()
public java.lang.String getTargetComponent()
public java.lang.String getSourcePort()
public java.lang.String getTargetPort()
public java.lang.String getSourcePrefix()
public java.lang.String getSourceSuffix()
public java.lang.String getTargetPrefix()
public java.lang.String getTargetSuffix()
public boolean isTargetDynamic()
public boolean isSourceDynamic()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The object to match.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object