DynamicServiceLocator
uses this.@Deprecated
@Removal(version="3.11.0")
public class TradingRelationship
extends java.lang.Object
implements java.lang.Cloneable
Encapsulates a source, destination and type trading relationship. A wild card identifier may be used for any or all of the three components.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
WILD_CARD
Deprecated.
String indicating 'any'. |
Constructor and Description |
---|
TradingRelationship()
Deprecated.
Creates a new instance.
|
TradingRelationship(java.lang.String src,
java.lang.String dst,
java.lang.String typ)
Deprecated.
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Deprecated.
|
boolean |
equals(java.lang.Object obj)
Deprecated.
ServiceId instances are sematically equal if their
component source, destination and type are equal ignoring case. |
java.lang.String |
getDestination()
Deprecated.
Returns the destination identifier.
|
java.lang.String |
getSource()
Deprecated.
Returns the source identifier.
|
java.lang.String |
getType()
Deprecated.
Returns the type identifier.
|
int |
hashCode()
Deprecated.
The
hashCode of an instance of this class is equal to
the hashCode of its component source, destination and type
converted to lower case. |
boolean |
hasWildCards()
Deprecated.
Returns true if any of
source , destination
or type equal the wild card character, otherwise
false. |
void |
setDestination(java.lang.String s)
Deprecated.
Sets the destination identifier.
|
void |
setSource(java.lang.String s)
Deprecated.
Sets the source identifier.
|
void |
setType(java.lang.String s)
Deprecated.
Sets the type identifier.
|
public static final java.lang.String WILD_CARD
String
indicating 'any'. Value is *
.public TradingRelationship()
Creates a new instance. Defaults to WILD_CARD
for source,
destination and type.
public TradingRelationship(java.lang.String src, java.lang.String dst, java.lang.String typ)
Creates a new instance.
src
- the source identifier, may not be null or emptydst
- the destination identifier, may not be null or emptytyp
- the message type identifier, may not be null or emptypublic boolean equals(java.lang.Object obj)
ServiceId
instances are sematically equal if their
component source, destination and type are equal ignoring case.
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
The hashCode
of an instance of this class is equal to
the hashCode
of its component source, destination and type
converted to lower case.
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
Object.clone()
public boolean hasWildCards()
Returns true if any of source
, destination
or type
equal the wild card character, otherwise
false.
source
, destination
or type
equal the wild card character, otherwise
falsepublic java.lang.String getDestination()
Returns the destination identifier.
public void setDestination(java.lang.String s)
Sets the destination identifier. May not be null.
s
- the destination identifierpublic java.lang.String getSource()
Returns the source identifier.
public void setSource(java.lang.String s)
Sets the source identifier. May not be null.
s
- the source identifierpublic java.lang.String getType()
Returns the type identifier.
public void setType(java.lang.String s)
Sets the type identifier. May not be null.
s
- the type identifier