net.sf.plausj.bank.german
Class BankAccount

java.lang.Object
  extended by net.sf.plausj.bank.german.BankAccount

public class BankAccount
extends java.lang.Object

This is a german bank account object.

Author:
ninan

Field Summary
static int AMBIGUOUS1
          Some strategies said this bank account is valid, some said it is invalid
static int AMBIGUOUS2
          Some strategies said this bank account is valid, some said they are not responsible
static int AMBIGUOUS3
          Some strategies said this bank account is invalid, some said they are not responsible
static int AMBIGUOUS4
          Some strategies said this bank account is valid, some said it is invalid and some said they are not responsible
static int BANK_CODE_NOT_FOUND
          Used to signal that the bank code was not found
static int INVALID
          All strategies said this bank account is invalid
static int NOCHECK
          No strategy is responsible for this bank account
static int NOT_IMPLEMENTED
          Used to signal that the strategy referenced by the bank code is not implemented
static int VALID
          All strategies said this bank account is valid
 
Constructor Summary
BankAccount(BankCode bankCode, AccountCode accountCode)
          The default CTOR for a bank account.
BankAccount(java.lang.String bankCode, java.lang.String accountCode)
          An comfort CTOR using strings instead of objects for bank code and account code
 
Method Summary
 AccountCode getAccountCode()
           
 BankCode getBankCode()
           
 int getValidity()
          Returns the validity of this bank account.
 java.lang.String getValidityAsString()
          Return the validity as string constant
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NOCHECK

public static final int NOCHECK
No strategy is responsible for this bank account

See Also:
Constant Field Values

VALID

public static final int VALID
All strategies said this bank account is valid

See Also:
Constant Field Values

INVALID

public static final int INVALID
All strategies said this bank account is invalid

See Also:
Constant Field Values

BANK_CODE_NOT_FOUND

public static final int BANK_CODE_NOT_FOUND
Used to signal that the bank code was not found

See Also:
Constant Field Values

NOT_IMPLEMENTED

public static final int NOT_IMPLEMENTED
Used to signal that the strategy referenced by the bank code is not implemented

See Also:
Constant Field Values

AMBIGUOUS1

public static final int AMBIGUOUS1
Some strategies said this bank account is valid, some said it is invalid

See Also:
Constant Field Values

AMBIGUOUS2

public static final int AMBIGUOUS2
Some strategies said this bank account is valid, some said they are not responsible

See Also:
Constant Field Values

AMBIGUOUS3

public static final int AMBIGUOUS3
Some strategies said this bank account is invalid, some said they are not responsible

See Also:
Constant Field Values

AMBIGUOUS4

public static final int AMBIGUOUS4
Some strategies said this bank account is valid, some said it is invalid and some said they are not responsible

See Also:
Constant Field Values
Constructor Detail

BankAccount

public BankAccount(BankCode bankCode,
                   AccountCode accountCode)
            throws java.lang.IllegalArgumentException
The default CTOR for a bank account.

Parameters:
bankCode - The bank code of the account
accountCode - The account code
Throws:
java.lang.IllegalArgumentException - If bank account or bank code are invalid this exception is thrown

BankAccount

public BankAccount(java.lang.String bankCode,
                   java.lang.String accountCode)
            throws java.lang.IllegalArgumentException
An comfort CTOR using strings instead of objects for bank code and account code

Parameters:
bankCode - The bank code of the account
accountCode - The account code
Throws:
java.lang.IllegalArgumentException - If bank account or bank code are invalid this exception is thrown
Method Detail

getValidity

public int getValidity()
Returns the validity of this bank account. It returns an integer from the range of the MAGICs in this class

Returns:
The validity of the bank account
See Also:
NOCHECK, VALID, INVALID, BankAccount#BLZ_NOT_FOUND, NOT_IMPLEMENTED, AMBIGUOUS1, AMBIGUOUS2, AMBIGUOUS3, AMBIGUOUS4

getValidityAsString

public java.lang.String getValidityAsString()
Return the validity as string constant

Returns:
The validity as string

getAccountCode

public AccountCode getAccountCode()
Returns:
Returns the accountCode.

getBankCode

public BankCode getBankCode()
Returns:
Returns the bankCode.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2005-2007 null. All Rights Reserved.