Bank{ void print() to * (PrintVisitor); void display() to * (DisplayVisitor); public void viewUnits() {{ get_businessunit_list().viewUnits(); }} }//end Bank BusinessUnit_List{ public void viewUnits() {{ /* This function will print all of the business units in the list, skipping over the party information */ BusinessUnit tempUnit; java.util.Enumeration en = this.elements(); System.out.println(Main.divider); while (en.hasMoreElements()){ tempUnit = (BusinessUnit) en.nextElement(); tempUnit.viewUnit(); } }} }//end Bank BusinessUnit{ void viewUnit() bypassing Party_List to * (PrintVisitor); //void print() to * (PrintVisitor); public void viewParties() {{ get_party_list().viewParties(); }} }//end Business Unit Party_List{ public void viewParties() {{ /* This function will print all of the parties in the list, skipping over the agreement information */ Party tempParty; java.util.Enumeration en = this.elements(); System.out.println(Main.divider); while (en.hasMoreElements()){ tempParty = (Party) en.nextElement(); tempParty.viewParty(); } }} }//end Party List Party{ //void print() to * (PrintVisitor); void viewParty() bypassing Agreement to * (PrintVisitor); }//end Party Agreement{ private void viewContracts(){{ get_contract_list().viewContracts();}} }//end Agreement Contract_List { public void viewContracts() {{ /* This function will print all of the contracts in the list, skipping over the portfolio information */ Contract tempContract; java.util.Enumeration en = this.elements(); System.out.println(Main.divider); while (en.hasMoreElements()){ tempContract = (Contract) en.nextElement(); tempContract.viewContract(); } }} } //end Contract_List Contract{ //public void print() to * (PrintVisitor); public void viewContract() bypassing Portfolio_List to * (PrintVisitor); private void viewPortfolios(){{ get_portfolios().viewPortfolios();}} } Portfolio_List{ public void viewPortfolios() {{ /* This function will print all of the portfolios in the list, skipping over the account information */ Portfolio tempPortfolio; java.util.Enumeration en = this.elements(); System.out.println(Main.divider); while (en.hasMoreElements()){ tempPortfolio = (Portfolio) en.nextElement(); tempPortfolio.viewPortfolio(); } }} }//end Portfolio List Portfolio{ public void viewPortfolio() bypassing Account_List to * (PrintVisitor); //public void print() to * (PrintVisitor); private void viewAccounts(){{get_accounts().viewAccounts();}} }//end Portfolio Account_List{ void viewAccounts() {{ /* This function will print all of the accounts in the list, skipping over the posting information */ Account tempAccount; java.util.Enumeration en = this.elements(); System.out.println(Main.divider); while (en.hasMoreElements()){ tempAccount = (Account) en.nextElement(); tempAccount.viewAccount(); } }} }//end Account List Account{ //void print() to * (PrintVisitor); void viewAccount() bypassing Posting_List to * (PrintVisitor); void viewPostings() {{get_postings().viewPostings();}} } Posting_List{ void viewPostings() {{ /* This function will print all of the postings in the list */ Posting tempPosting; java.util.Enumeration en = this.elements(); System.out.println(Main.divider); while (en.hasMoreElements()){ tempPosting = (Posting) en.nextElement(); tempPosting.viewPosting(); } }} }//end Posting List Posting{ void viewPosting() to * (PrintVisitor); }