org.kuali.kfs.sys.businessobject
Class SufficientFundsItem

java.lang.Object
  extended by org.kuali.kfs.sys.businessobject.SufficientFundsItem
All Implemented Interfaces:
Serializable, Comparable

public class SufficientFundsItem
extends Object
implements Serializable, Comparable

Represents a sufficient fund item which is used to show if a document has sufficient funds

See Also:
Serialized Form

Constructor Summary
SufficientFundsItem()
           
SufficientFundsItem(SystemOptions universityFiscalYear, AccountingLine accountLine, String sufficientFundsObjectCode)
          Constructs a SufficientFundsItem.java.
SufficientFundsItem(SystemOptions universityFiscalYear, Transaction tran, String sufficientFundsObjectCode)
          Constructs a SufficientFundsItem.java.
 
Method Summary
 void add(AccountingLine a)
          Adds an accounting line's amount to this sufficient funds item
 void add(Transaction t)
          Adds a transactions amount to this sufficient funds item
 int compareTo(Object arg0)
          Compare to other sufficient funds item based on key
 Account getAccount()
           
 String getAccountSufficientFundsCode()
           
 org.kuali.rice.kns.util.KualiDecimal getAmount()
           
 BalanceType getBalanceTyp()
           
 String getDocumentTypeCode()
           
 ObjectCode getFinancialObject()
           
 ObjectType getFinancialObjectType()
           
 String getKey()
          Returns string to uniquely represent this sufficient funds item
 String getSufficientFundsObjectCode()
           
 SystemOptions getYear()
           
 void setAccount(Account account)
           
 void setAmount(org.kuali.rice.kns.util.KualiDecimal amount)
           
 void setBalanceTyp(BalanceType balanceTyp)
           
 void setDocumentTypeCode(String documentTypeCode)
           
 void setFinancialObject(ObjectCode financialObject)
           
 void setFinancialObjectType(ObjectType financialObjectType)
           
 void setSufficientFundsObjectCode(String sufficientFundsObjectCode)
           
 void setYear(SystemOptions year)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SufficientFundsItem

public SufficientFundsItem()

SufficientFundsItem

public SufficientFundsItem(SystemOptions universityFiscalYear,
                           Transaction tran,
                           String sufficientFundsObjectCode)
Constructs a SufficientFundsItem.java.

Parameters:
universityFiscalYear -
tran -
sufficientFundsObjectCode -

SufficientFundsItem

public SufficientFundsItem(SystemOptions universityFiscalYear,
                           AccountingLine accountLine,
                           String sufficientFundsObjectCode)
Constructs a SufficientFundsItem.java.

Parameters:
universityFiscalYear -
accountLine -
sufficientFundsObjectCode -
Method Detail

getBalanceTyp

public BalanceType getBalanceTyp()

setBalanceTyp

public void setBalanceTyp(BalanceType balanceTyp)

add

public void add(AccountingLine a)
Adds an accounting line's amount to this sufficient funds item

Parameters:
a - accounting line

add

public void add(Transaction t)
Adds a transactions amount to this sufficient funds item

Parameters:
t - transactions

compareTo

public int compareTo(Object arg0)
Compare to other sufficient funds item based on key

Specified by:
compareTo in interface Comparable
See Also:
Comparable.compareTo(java.lang.Object)

getKey

public String getKey()
Returns string to uniquely represent this sufficient funds item

Returns:
string with the following concatenated: fiscal year, chart of accounts code, account number, financial object type code, sufficient funds object code and balance type code

getDocumentTypeCode

public String getDocumentTypeCode()

setDocumentTypeCode

public void setDocumentTypeCode(String documentTypeCode)

getAccountSufficientFundsCode

public String getAccountSufficientFundsCode()

getFinancialObjectType

public ObjectType getFinancialObjectType()

setFinancialObjectType

public void setFinancialObjectType(ObjectType financialObjectType)

toString

public String toString()
Overrides:
toString in class Object

getAccount

public Account getAccount()

setAccount

public void setAccount(Account account)

getAmount

public org.kuali.rice.kns.util.KualiDecimal getAmount()

setAmount

public void setAmount(org.kuali.rice.kns.util.KualiDecimal amount)

getFinancialObject

public ObjectCode getFinancialObject()

setFinancialObject

public void setFinancialObject(ObjectCode financialObject)

getSufficientFundsObjectCode

public String getSufficientFundsObjectCode()

setSufficientFundsObjectCode

public void setSufficientFundsObjectCode(String sufficientFundsObjectCode)

getYear

public SystemOptions getYear()

setYear

public void setYear(SystemOptions year)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.