public class DhxOrganisation
extends java.lang.Object
Constructor and Description |
---|
DhxOrganisation(InternalXroadMember member,
java.lang.String dhxSubsystemPrefix)
DhxOrganisation consctructor.
|
DhxOrganisation(java.lang.String code,
java.lang.String system,
java.lang.String dhxSubsystemPrefix)
DhxOrganisation consctructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
equalsToCapsuleOrganisation(java.lang.String capsuleRecipient)
Function to check capsule recipient.
|
java.lang.String |
getCode()
Returns the code.
|
java.lang.String |
getCodeUpper()
Returns code in upper case.
|
java.lang.String |
getDhxSubsystemPrefix()
Returns the dhxSubsystemPrefix.
|
java.lang.String |
getSystem()
Returns the system.
|
void |
setCode(java.lang.String code)
Returns the code.
|
void |
setDhxSubsystemPrefix(java.lang.String dhxSubsystemPrefix)
Sets the dhxSubsystemPrefix.
|
void |
setSystem(java.lang.String system)
Sets the system.
|
java.lang.String |
toString() |
public DhxOrganisation(InternalXroadMember member, java.lang.String dhxSubsystemPrefix)
member
- the member to create DhxOrganisation fromdhxSubsystemPrefix
- DHX subsystem prefix to use when creating DhxOrganisationpublic DhxOrganisation(java.lang.String code, java.lang.String system, java.lang.String dhxSubsystemPrefix)
code
- code of the reciepint. might be either X-road memberCode or representees codesystem
- system of the recipient. migth be either X-road subSystemCode or representees
systemdhxSubsystemPrefix
- DHX system default prefix. used to define if two systems are euqal
even if one of them presented without prefix.public java.lang.String getCodeUpper()
public java.lang.String getCode()
public java.lang.String getSystem()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.Boolean equalsToCapsuleOrganisation(java.lang.String capsuleRecipient)
capsuleRecipient
- - recipient from capsulepublic java.lang.String getDhxSubsystemPrefix()
public void setDhxSubsystemPrefix(java.lang.String dhxSubsystemPrefix)
dhxSubsystemPrefix
- the dhxSubsystemPrefix to setpublic void setCode(java.lang.String code)
code
- the code to setpublic void setSystem(java.lang.String system)
system
- the system to setpublic java.lang.String toString()
toString
in class java.lang.Object