@NotThreadSafe @ProviderType public class WireConfiguration extends java.lang.Object
WireConfiguration
represents a wiring configuration between a Wire
Emitter and a Wire Receiver. In a Wire Graph in Kura Wires, the connection that
connect two different Wire Components is known as WireConfiguration
.
WireConfiguration
s with equal Emitter PID
and Receiver PID
are considered to be equal WireConfiguration
instances and it is validated through
its equals(Object)
and hashCode()
methods' contract and hence, it is suitable to be used with hash based collections.Wire
Constructor and Description |
---|
WireConfiguration(java.lang.String emitterPid,
java.lang.String receiverPid)
Instantiates a new
WireConfiguration . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEmitterPid()
Gets the Wire Emitter PID.
|
java.lang.String |
getFilter()
Gets the associated filter.
|
java.lang.String |
getReceiverPid()
Gets the Wire Receiver PID.
|
org.osgi.service.wireadmin.Wire |
getWire()
Gets the associated
WireAdmin ' Wire instance. |
int |
hashCode() |
void |
setFilter(java.lang.String filter)
Sets the filter for this
WireConfiguration |
void |
setWire(org.osgi.service.wireadmin.Wire wire)
Sets the
Wire instance. |
java.lang.String |
toString() |
public WireConfiguration(java.lang.String emitterPid, java.lang.String receiverPid)
WireConfiguration
.emitterPid
- the Wire Emitter PIDreceiverPid
- the Wire Receiver PIDjava.lang.NullPointerException
- if any of the arguments is nullpublic java.lang.String getEmitterPid()
public java.lang.String getFilter()
public java.lang.String getReceiverPid()
public org.osgi.service.wireadmin.Wire getWire()
WireAdmin
' Wire
instance.Wire
instancepublic void setFilter(java.lang.String filter)
WireConfiguration
filter
- the new filterpublic void setWire(org.osgi.service.wireadmin.Wire wire)
Wire
instance.wire
- the new Wire
instancepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object