public class BIC extends Object
Modifier and Type | Field and Description |
---|---|
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 |
getInvalidCause()
Get a human readable (english) string that gives information about why the BIC was found invalid.
|
String |
getSubtype() |
int |
hashCode() |
boolean |
isLive()
Returns true if the BIC is live on the network.
|
boolean |
isNonLive()
Returns true if the BIC is not live on the network.
|
boolean |
isTestAndTraining()
Returns true if the BIC is a Test & Training BIC code.
|
boolean |
isValid()
Validates a BIC structure.
|
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 BIC(String bic)
bic
- the BIC code to use in this BICpublic BIC()
@Deprecated public String getBic()
isValid()
@Deprecated 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 null
public String getSubtype()
public void setSubtype(String subtype)
public boolean isTestAndTraining()
public boolean isNonLive()
public boolean isLive()
public String getBic8()
public String getBic11()
public String country()