org.opencrx.kernel.product1.cci2
Interface AbstractProductPrice

All Known Subinterfaces:
AbstractProductPrice, PriceListEntry, PriceListEntry, ProductBasePrice, ProductBasePrice
All Known Implementing Classes:
PriceListEntry, ProductBasePrice

public interface AbstractProductPrice

Abstract class AbstractProductPrice


Method Summary
 String getDescription()
          Retrieves the possibly null value for the optional attribute description.
 BigDecimal getDiscount()
          Retrieves the possibly null value for the optional attribute discount.
 BigDecimal getPrice()
          Retrieves the possibly null value for the optional attribute price.
 short getPriceCurrency()
          Retrieves the value for the attribute priceCurrency.
<T extends AbstractPriceLevel>
List<T>
getPriceLevel()
          Retrieves the Collection of objects referenced by priceLevel.
 BigDecimal getQuantityFrom()
          Retrieves the possibly null value for the optional attribute quantityFrom.
 BigDecimal getQuantityTo()
          Retrieves the possibly null value for the optional attribute quantityTo.
 Uom getUom()
          Retrieves the value for the reference uom.
 List<Short> getUsage()
          Retrieves a list containing all the elements for the attribute usage.
 Boolean isDiscountIsPercentage()
          Retrieves the possibly null value for the optional attribute discountIsPercentage.
 void setDescription(String description)
          Sets a new value for the attribute description.
 void setDiscount(BigDecimal discount)
          Sets a new value for the attribute discount.
 void setDiscountIsPercentage(Boolean discountIsPercentage)
          Sets a new value for the attribute discountIsPercentage.
 void setPrice(BigDecimal price)
          Sets a new value for the attribute price.
 void setPriceCurrency(short priceCurrency)
          Sets a new value for the attribute priceCurrency.
 void setQuantityFrom(BigDecimal quantityFrom)
          Sets a new value for the attribute quantityFrom.
 void setQuantityTo(BigDecimal quantityTo)
          Sets a new value for the attribute quantityTo.
 void setUom(Uom uom)
          Sets a new value for the reference uom.
 void setUsage(short... usage)
          Clears usage and adds the given value(s).
 

Method Detail

getDescription

String getDescription()
Retrieves the possibly null value for the optional attribute description.

Returns:
The possibly null value for attribute description.

setDescription

void setDescription(String description)
Sets a new value for the attribute description.

Parameters:
description - The possibly null new value for attribute description.

getDiscount

BigDecimal getDiscount()
Retrieves the possibly null value for the optional attribute discount.

Returns:
The possibly null value for attribute discount.

setDiscount

void setDiscount(BigDecimal discount)
Sets a new value for the attribute discount.

Parameters:
discount - The possibly null new value for attribute discount.

isDiscountIsPercentage

Boolean isDiscountIsPercentage()
Retrieves the possibly null value for the optional attribute discountIsPercentage.

Returns:
The possibly null value for attribute discountIsPercentage.

setDiscountIsPercentage

void setDiscountIsPercentage(Boolean discountIsPercentage)
Sets a new value for the attribute discountIsPercentage.

Parameters:
discountIsPercentage - The possibly null new value for attribute discountIsPercentage.

getPrice

BigDecimal getPrice()
Retrieves the possibly null value for the optional attribute price.

Returns:
The possibly null value for attribute price.

setPrice

void setPrice(BigDecimal price)
Sets a new value for the attribute price.

Parameters:
price - The possibly null new value for attribute price.

getPriceCurrency

short getPriceCurrency()
Retrieves the value for the attribute priceCurrency.

Returns:
The non-null value for attribute priceCurrency.

setPriceCurrency

void setPriceCurrency(short priceCurrency)
Sets a new value for the attribute priceCurrency.

Parameters:
priceCurrency - The non-null new value for attribute priceCurrency.

getPriceLevel

<T extends AbstractPriceLevel> List<T> getPriceLevel()
Retrieves the Collection of objects referenced by priceLevel.

Returns:
The Collection of referenced objects.

getQuantityFrom

BigDecimal getQuantityFrom()
Retrieves the possibly null value for the optional attribute quantityFrom.

Returns:
The possibly null value for attribute quantityFrom.

setQuantityFrom

void setQuantityFrom(BigDecimal quantityFrom)
Sets a new value for the attribute quantityFrom.

Parameters:
quantityFrom - The possibly null new value for attribute quantityFrom.

getQuantityTo

BigDecimal getQuantityTo()
Retrieves the possibly null value for the optional attribute quantityTo.

Returns:
The possibly null value for attribute quantityTo.

setQuantityTo

void setQuantityTo(BigDecimal quantityTo)
Sets a new value for the attribute quantityTo.

Parameters:
quantityTo - The possibly null new value for attribute quantityTo.

getUom

Uom getUom()
Retrieves the value for the reference uom.

Returns:
The non-null value for this reference.

setUom

void setUom(Uom uom)
Sets a new value for the reference uom.

Parameters:
uom - The non-null new value for this reference.

getUsage

List<Short> getUsage()
Retrieves a list containing all the elements for the attribute usage.

Returns:
A list containing all elements for this attribute.

setUsage

void setUsage(short... usage)
Clears usage and adds the given value(s).

This method is equivalent to

   list.clear();
   for(short e : attributeName){
     list.add(e);
   }
 

Parameters:
usage - value(s) to be added to usage


This software is published under the BSD license. Copyright © 2003-2008, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.