public class LogicalTerminalAddress extends BIC
A sender LT address cannot have 'X' as LT identifier, conversely 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 and with no "X" in the 9th position.
|
int |
hashCode() |
void |
setLTIdentifier(java.lang.Character lTIdentifier) |
asTestBic, country, distinguishedName, getBic11, getBic8, getBranch, getBranchOrDefault, getCountry, getInstitution, getInvalidCause, getLocation, getSubtype, institution, 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.
code
- a full LT address code (12 characters) or a BIC8 or BIC11public java.lang.Character getLTIdentifier()
public void setLTIdentifier(java.lang.Character lTIdentifier)
public java.lang.String getSenderLogicalTerminalAddress()
If the terminal identifier is not set or if it is set to "X", then the default identifier "A" 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.