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 |
---|---|
boolean |
equals(Object obj) |
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 |
isTestAndTraining()
Returns true if the BIC is a Test & Training BIC code.
|
boolean |
isValid()
Validates a BIC structure.
|
void |
setSubtype(String subtype) |
public static final transient String TEST12
SwiftBlock1.getLogicalTerminal()
,
Constant Field Valuespublic static final transient String TEST8
public BIC()
public BIC(String bic)
bic
- the BIC code to use in this BICpublic String getBic11()
public String getBic8()
public String getInvalidCause()
null
if there's no invalid cause setpublic String getSubtype()
public boolean isTestAndTraining()
public boolean isValid()
true
if the BIC is found to be valid and false
in other caseIllegalStateException
- if BIC is null
public void setSubtype(String subtype)