1 /*
2  * @(#) $Id: BankIntf.java,v 1.2 2003/07/08 08:13:53 pankaj Exp $
3  *
4  * Copyright (c) 2002-03 by Pankaj Kumar (http://www.pankaj-k.net). 
5  * All rights reserved.
6  *
7  * The license governing the use of this file can be found in the 
8  * root directory of the containing software.
9  */
10package org.jstk.example.bank;
11
12import java.math.BigDecimal;
13import java.util.Iterator;
14
15
16public interface BankIntf {
17    public AccountIntf openAccount(BigDecimal initialDeposit);
18    public void closeAccount(String acctNo)
19            throws Exceptions.AccountNotFound, Exceptions.AccountClosed;
20    public AccountIntf getAccount(String acctNo) throws Exceptions.AccountNotFound;
21    public Iterator accounts();
22}