jgnash.engine
Class AccountTreeXMLFactory.AccountImport

java.lang.Object
  extended by jgnash.engine.AccountTreeXMLFactory.AccountImport
Enclosing class:
AccountTreeXMLFactory

private static class AccountTreeXMLFactory.AccountImport
extends java.lang.Object


Field Summary
private  java.util.Map<Account,Account> mergeMap
           
 
Constructor Summary
private AccountTreeXMLFactory.AccountImport()
           
 
Method Summary
private  void fixCurrencies(Engine engine, Account account)
          Ensures that duplicate currencies are not created when the accounts are merged
private  void forceCurrency(Engine engine, Account account)
          Ensures that duplicate currencies are not created when the accounts are merged
private  void importAccountTree(Engine engine, RootAccount root)
           
private  void importChildren(Engine engine, Account account)
           
private  void mergeAccountTree(Engine engine, RootAccount root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mergeMap

private java.util.Map<Account,Account> mergeMap
Constructor Detail

AccountTreeXMLFactory.AccountImport

private AccountTreeXMLFactory.AccountImport()
Method Detail

importAccountTree

private void importAccountTree(Engine engine,
                               RootAccount root)

mergeAccountTree

private void mergeAccountTree(Engine engine,
                              RootAccount root)

fixCurrencies

private void fixCurrencies(Engine engine,
                           Account account)
Ensures that duplicate currencies are not created when the accounts are merged

Parameters:
engine - Engine with existing currencies
account - account to correct

forceCurrency

private void forceCurrency(Engine engine,
                           Account account)
Ensures that duplicate currencies are not created when the accounts are merged

Parameters:
engine - Engine with existing currencies
account - account to correct

importChildren

private void importChildren(Engine engine,
                            Account account)