org.broadleafcommerce.core.pricing.service.module
Class SimpleTaxModule

java.lang.Object
  extended by org.broadleafcommerce.core.pricing.service.module.SimpleTaxModule
All Implemented Interfaces:
TaxModule

public class SimpleTaxModule
extends Object
implements TaxModule

Simple factor-based tax module. Not really useful for anything other than demonstration.

Author:
jfischer

Field Summary
protected  Double factor
           
static String MODULENAME
           
protected  String name
           
 
Constructor Summary
SimpleTaxModule()
           
 
Method Summary
 Order calculateTaxForOrder(Order order)
           
 Double getFactor()
           
 String getName()
           
 void setFactor(Double factor)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODULENAME

public static final String MODULENAME
See Also:
Constant Field Values

name

protected String name

factor

protected Double factor
Constructor Detail

SimpleTaxModule

public SimpleTaxModule()
Method Detail

calculateTaxForOrder

public Order calculateTaxForOrder(Order order)
                           throws TaxException
Specified by:
calculateTaxForOrder in interface TaxModule
Throws:
TaxException

getName

public String getName()
Specified by:
getName in interface TaxModule

setName

public void setName(String name)
Specified by:
setName in interface TaxModule

getFactor

public Double getFactor()
Returns:
the factor

setFactor

public void setFactor(Double factor)
Parameters:
factor - the factor to set


Copyright © 2012. All Rights Reserved.