jgnash.engine
Class AccountUtils

java.lang.Object
  extended by jgnash.engine.AccountUtils

public class AccountUtils
extends java.lang.Object

Static account utilities

Version:
$Id$
Author:
Craig Cavanaugh

Constructor Summary
private AccountUtils()
           
 
Method Summary
protected static Account searchTree(Account root, java.lang.String name, AccountType type, int depth)
          Searches an account tree given the supplied parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountUtils

private AccountUtils()
Method Detail

searchTree

protected static Account searchTree(Account root,
                                    java.lang.String name,
                                    AccountType type,
                                    int depth)
Searches an account tree given the supplied parameters

Parameters:
root - Base account
name - Account name
type - Account type
depth - Account depth
Returns:
matched account if it exists