public class LogicalTerminalAddress extends BIC
branch, PARTNER_PREFIX, TEST12, TEST8
Constructor and Description |
---|
LogicalTerminalAddress(String code)
Creates an LT address from its string value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Character |
getLTIdentifier() |
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.
The branch code is padded with "XXX" if not present. |
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.
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. |
int |
hashCode() |
void |
setBranch(String branch) |
void |
setLTIdentifier(Character lTIdentifier) |
country, distinguishedName, getBic, getBic11, getBic8, getBranch, getInvalidCause, getSubtype, institution, isLive, isNonLive, isTestAndTraining, isValid, parse, setBic, setSubtype, toString
public LogicalTerminalAddress(String code)
code
- a 12 characters string containing the full LT address codepublic Character getLTIdentifier()
public void setLTIdentifier(Character lTIdentifier)
public void setBranch(String branch)
public String getSenderLogicalTerminalAddress()
public String getReceiverLogicalTerminalAddress()