public class BIC extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
branch |
static String |
PARTNER_PREFIX
Constant value with which all partner bics start
|
static String |
TEST12
Fake Logical terminal address for testing,
consisting of a fake "test & training" BIC of 12 chars
(including the terminal identification)
|
static String |
TEST8
Fake "test & training" BIC of 8 chars for testing
|
| Constructor and Description |
|---|
BIC()
Default constructor
|
BIC(String bic)
Constructor with BIC code.
|
| Modifier and Type | Method and Description |
|---|---|
String |
country()
Gets the 2 chars country code of the BIC, which are the 5th and 6th characters
|
boolean |
equals(Object obj) |
String |
getBic()
Deprecated.
use getBic8 or getBic11 instead
|
String |
getBic11()
Returns the BIC code with 11 characters composed by the first 8 characters of the BIC code,
plus the branch code, dropping the logical terminal identifier at position 9 if present, and
also padding with a default XXX branch if necessary.
|
String |
getBic8()
Returns the first 8 characters of the BIC code.
|
String |
getBranch()
It returns the last three that conform the branch or null if branch is not present.
|
String |
getInvalidCause()
Get a human readable (english) string that gives information about why the BIC was found invalid.
|
String |
getSubtype() |
int |
hashCode() |
String |
institution()
Gets the first 4 characters of the BIC; corresponding to the institution code
|
boolean |
isLive()
Returns true if the BIC is live (connected and not test & training) on the network.
|
boolean |
isNonLive()
Returns true if the BIC is not live (not connected) on the network.
|
boolean |
isTestAndTraining()
Returns true if the BIC is a Test & Training BIC code.
|
boolean |
isValid()
Validates a BIC structure.
|
protected void |
parse(String bic)
Parse the given string into the corresponding object attributes.
|
void |
setBic(String bic)
Deprecated.
use the constructor passing the string as parameter
|
void |
setSubtype(String subtype) |
public static final transient String TEST8
public static final transient String TEST12
SwiftBlock1.getLogicalTerminal(),
Constant Field Valuespublic static final String PARTNER_PREFIX
protected String branch
public BIC(String bic)
bic - the BIC code to use in this BICsubclass to deal with 12 characters length LT identifierspublic BIC()
protected void parse(String bic)
bic - @Deprecated @ProwideDeprecated(phase4=_2018) public String getBic()
isValid()@Deprecated @ProwideDeprecated(phase4=_2018) public void setBic(String bic)
bic - the BIC codepublic String getInvalidCause()
null if there's no invalid cause setpublic boolean isValid()
true if the BIC is found to be valid and false in other caseIllegalStateException - if BIC is nullpublic String getBranch()
public String getSubtype()
public void setSubtype(String subtype)
public boolean isTestAndTraining()
public boolean isNonLive()
isLive()public boolean isLive()
isNonLive()public String getBic8()
public String getBic11()
public String country()
public String institution()