public class LogicalTerminalAddress extends BIC
A sender LT address cannot have 'X' as LT identifier as it is a reserved character for LT wildcard. SWIFT NAK the messages with H10 error when messages sent to their network. However, messages to Messaging Interface can have 'X' as Sender LT Identifier that will be used as wild card to load balance the LTs and replaced by Messaging Interface before sending to SWIFT to the corresponding LT Value. A receiver LT address must have an 'X' as LT identifier.
branch, PARTNER_PREFIX, TEST12, TEST8
Constructor and Description |
---|
LogicalTerminalAddress(java.lang.String code)
Creates an LT address from its string value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Character |
getLTIdentifier() |
java.lang.String |
getReceiverLogicalTerminalAddress()
Returns a proper LT address for the receiver of a message, assuring
the returned code has 12 characters and with a fixed "X" in the 9th position.
|
java.lang.String |
getSenderLogicalTerminalAddress()
Returns a proper LT address for the sender of a message, assuring
the returned code has 12 characters.
|
int |
hashCode() |
void |
setLTIdentifier(java.lang.Character _lTIdentifier) |
asTestBic, distinguishedName, distinguishedName, getBic11, getBic8, getBranch, getBranchOrDefault, getCountry, getInstitution, getLocation, getSubtype, isLive, isNonLive, isTestAndTraining, isValid, parse, setBranch, setCountry, setInstitution, setLocation, setSubtype, toString, validate
public LogicalTerminalAddress(java.lang.String code)
If the string contains a BIC8 or BIC11 the LT identifier will be set with a default value. If the BIC has 12 characters, then the LT and branch is extracted from the parameter code. Finally if the BIC has a special size of 9 characters, that is parsed as the BIC8 plus the LT identifier, letting the branch with default.
code
- a full LT address code (12 characters) or a BIC8, BIC11 or BIC8 plus LT identifierpublic java.lang.Character getLTIdentifier()
public void setLTIdentifier(java.lang.Character _lTIdentifier)
public java.lang.String getSenderLogicalTerminalAddress()
If the terminal identifier is not set, then the wildcard LT identifier "X" will be used.
The branch code is padded with "XXX" if not present.
public java.lang.String getReceiverLogicalTerminalAddress()
The branch code is padded with "XXX" if not present.