|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.examples.bo.account.AccountValidator
public class AccountValidator
This class validates the attributes of the Account Entity.
Constructor Summary | |
---|---|
AccountValidator()
Default constructor. |
Method Summary | |
---|---|
void |
validateAccountName(String accountName)
This method validates the account name. |
void |
validateAccountNumber(String accountNumber)
This method validates the account number. |
void |
validateAmend(String accountName)
|
void |
validateCardNumber(String cardNumber)
This method validates a card number. |
void |
validateCreate(String cardNumber,
String accountNumber,
String accountName)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccountValidator()
Method Detail |
---|
public void validateAccountName(String accountName) throws ValidationException
accountName
- the account name to validate
ValidationException
- if the address line is bady formattedpublic void validateAccountNumber(String accountNumber) throws ValidationException
accountNumber
-
ValidationException
- if the account number is bady formattedpublic void validateAmend(String accountName) throws ValidationException
accountName
-
ValidationException
- if the address line is bady formattedpublic void validateCardNumber(String cardNumber) throws ValidationException
cardNumber
-
ValidationException
- if the card number is bady formattedpublic void validateCreate(String cardNumber, String accountNumber, String accountName) throws ValidationException
cardNumber
- accountNumber
- accountName
-
ValidationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |