org.broadleafcommerce.core.order.domain
Class TaxDetailImpl

java.lang.Object
  extended by org.broadleafcommerce.core.order.domain.TaxDetailImpl
All Implemented Interfaces:
Serializable, TaxDetail

@Entity
public class TaxDetailImpl
extends Object
implements TaxDetail

See Also:
Serialized Form

Field Summary
protected  BigDecimal amount
           
protected  Long id
           
protected  BigDecimal rate
           
protected  String type
           
 
Constructor Summary
TaxDetailImpl()
           
TaxDetailImpl(TaxType type, Money amount, BigDecimal rate)
           
 
Method Summary
 Money getAmount()
          Gets the tax amount
 Long getId()
          Gets the id.
 BigDecimal getRate()
          Gets the tax rate
 TaxType getType()
          Gets the tax type
 void setAmount(Money amount)
          Sets the tax amount
 void setId(Long id)
          Sets the id.
 void setRate(BigDecimal rate)
          Sets the tax rate.
 void setType(TaxType type)
          Sets the tax type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

type

protected String type

amount

protected BigDecimal amount

rate

protected BigDecimal rate
Constructor Detail

TaxDetailImpl

public TaxDetailImpl()

TaxDetailImpl

public TaxDetailImpl(TaxType type,
                     Money amount,
                     BigDecimal rate)
Method Detail

getId

public Long getId()
Description copied from interface: TaxDetail
Gets the id.

Specified by:
getId in interface TaxDetail
Returns:
the id

setId

public void setId(Long id)
Description copied from interface: TaxDetail
Sets the id.

Specified by:
setId in interface TaxDetail
Parameters:
id - the new id

getType

public TaxType getType()
Description copied from interface: TaxDetail
Gets the tax type

Specified by:
getType in interface TaxDetail
Returns:
the tax type

setType

public void setType(TaxType type)
Description copied from interface: TaxDetail
Sets the tax type

Specified by:
setType in interface TaxDetail
Parameters:
type - the tax type

getAmount

public Money getAmount()
Description copied from interface: TaxDetail
Gets the tax amount

Specified by:
getAmount in interface TaxDetail
Returns:
the tax amount

setAmount

public void setAmount(Money amount)
Description copied from interface: TaxDetail
Sets the tax amount

Specified by:
setAmount in interface TaxDetail
Parameters:
amount - the tax amount

getRate

public BigDecimal getRate()
Description copied from interface: TaxDetail
Gets the tax rate

Specified by:
getRate in interface TaxDetail
Returns:
the rate

setRate

public void setRate(BigDecimal rate)
Description copied from interface: TaxDetail
Sets the tax rate.

Specified by:
setRate in interface TaxDetail


Copyright © 2012. All Rights Reserved.