Uses of Class
org.davesag.generica.core.Money

Packages that use Money
org.davesag.generica.core The core package contains well thought out JavaBeans useful for most web applications. 
org.davesag.generica.util The util package contains common, or garden variety, utility code for making hashcodes, sending email, generating passwords, converting currencies, parsing parameters and so forth. 
 

Uses of Money in org.davesag.generica.core
 

Fields in org.davesag.generica.core declared as Money
protected  Money ShoppingOrder.theComputedSubtotal
          The total price of the order.
protected  Money ShoppingOrder.theSubtotal
          The total price of the order less discounts and tax.
protected  Money ShoppingOrder.theGrandTotal
          The total price of the order to be paid by the user.
protected  Money ShoppingOrder.theDiscount
          The discount of the order.
protected  Money ShoppingOrder.theComputedDiscountSubtotal
          The computer total discount value of the order.
protected  Money ShoppingOrder.theComputedTaxSubtotal
          The total price of the order.
protected  Money ShoppingOrder.theTaxPaid
          The total tax of the item.
protected  Money ShoppingItem.theDiscount
          The discount of the item.
protected  Money ShoppingItem.thePrice
          The total price of the item.
protected  Money ShoppingItem.theUnitPrice
          The individual price of an item.
protected  Money ShoppingItem.theTax
          The total tax of the item.
 

Methods in org.davesag.generica.core that return Money
 Money ShoppingOrder.getDiscount()
          Returns the discount.
 Money ShoppingOrder.getComputedDiscountSubtotal()
          Returns the computed discount.
 Money ShoppingOrder.getTaxPaid()
          Returns the total tax.
 Money ShoppingOrder.getComputedTaxSubtotal()
          Returns the computed discount.
 Money ShoppingOrder.getSubtotal()
          Returns the subtotal.
 Money ShoppingOrder.getComputedSubtotal()
          Returns the computed subtotal.
 Money ShoppingOrder.getGrandTotal()
          Returns the grand total.
 Money ShoppingItem.getPrice()
          Returns the unit price times the quanitity.
 Money ShoppingItem.getUnitPrice()
          Returns the unit price.
 Money ShoppingItem.getDiscount()
          Returns the discount.
 Money ShoppingItem.getTax()
          Returns the total tax.
 Money Money.add(Money addto)
          Adds the supplied money to this money, and converts the currency as needed.
 Money Money.subtract(Money subfrom)
          Subtracts the supplied money from this money, and converts the currency as needed.
 Money Money.multiply(int timesby)
          Multiplies the supplied number by this money's amount.
 Money Money.multiply(Long timesby)
          Multiplies the supplied number by this money's amount.
 

Methods in org.davesag.generica.core with parameters of type Money
 void ShoppingOrder.setDiscount(Money dis)
          Set the discount of this ShoppingOrder.
 void ShoppingOrder.setTaxPaid(Money tax)
          Set the tax of this ShoppingOrder.
 void ShoppingOrder.setSubtotal(Money sub)
          Set the subtotal of this ShoppingOrder.
 void ShoppingOrder.setGrandTotal(Money sub)
          Set the grand total of this ShoppingOrder.
 void ShoppingItem.setUnitPrice(Money price)
          Set the unit price of this ShoppingItem.
 void ShoppingItem.setDiscount(Money price)
          Set the discount of this ShoppingItem.
 void ShoppingItem.setTax(Money tax)
          Set the tax of this ShoppingItem.
 Money Money.add(Money addto)
          Adds the supplied money to this money, and converts the currency as needed.
 Money Money.subtract(Money subfrom)
          Subtracts the supplied money from this money, and converts the currency as needed.
static BigDecimal Money.valueOf(Money m)
          Money is stored as a whole number of 'cents' The actual value depends on the number of decimal places in the currency, but 'cents' is a useful generic term.
 

Constructors in org.davesag.generica.core with parameters of type Money
ShoppingItem(String description, Money unitprice, Money discount, Money tax, String taxnote)
          constructor with default quantity of 1.
 

Uses of Money in org.davesag.generica.util
 

Methods in org.davesag.generica.util that return Money
 Money CurrencyConverter.convertToEuro(Money money)
          Utility class to convert one Money to EURO denominated Money.
 Money CurrencyConverter.convertFromEuro(Money money, Currency currency)
          Utility class to converto a Money to an equivalent value in a different currency.
 Money CurrencyConverter.convert(Money from, Currency tocurrency)
          Utility class to converto a Money to an equivalent value in a different currency.
 

Methods in org.davesag.generica.util with parameters of type Money
 Money CurrencyConverter.convertToEuro(Money money)
          Utility class to convert one Money to EURO denominated Money.
 Money CurrencyConverter.convertFromEuro(Money money, Currency currency)
          Utility class to converto a Money to an equivalent value in a different currency.
 Money CurrencyConverter.convert(Money from, Currency tocurrency)
          Utility class to converto a Money to an equivalent value in a different currency.
 



Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.