org.opencrx.kernel.product1.jmi1
Interface AbstractProductPrice

All Superinterfaces:
AbstractProductPrice, RefBaseObject, RefFeatured, RefObject
All Known Subinterfaces:
PriceListEntry, ProductBasePrice

public interface AbstractProductPrice
extends AbstractProductPrice, RefObject

Abstract class AbstractProductPrice


Method Summary
 void addPriceLevel(int index, PriceLevel newValue)
          
 void addPriceLevel(PriceLevel newValue)
          
 Uom getUom()
          Retrieves the value for the reference uom.
 short getUsage(int index)
           
 void removePriceLevel(int index)
          
 void setUom(Uom uom)
          Sets a new value for the reference uom.
 void setUsage(List<Short> usage)
           This method is equivalent to
 
Methods inherited from interface org.opencrx.kernel.product1.cci2.AbstractProductPrice
getDescription, getDiscount, getPrice, getPriceCurrency, getPriceLevel, getQuantityFrom, getQuantityTo, getUsage, isDiscountIsPercentage, setDescription, setDiscount, setDiscountIsPercentage, setPrice, setPriceCurrency, setQuantityFrom, setQuantityTo, setUsage
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

addPriceLevel

void addPriceLevel(int index,
                   PriceLevel newValue)

Parameters:
index - The qualifier attribute value that qualifies the reference to get the element to be appended.
newValue - The element to be appended.

addPriceLevel

void addPriceLevel(PriceLevel newValue)

Parameters:
newValue - The element to be appended.

removePriceLevel

void removePriceLevel(int index)


getUom

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

Specified by:
getUom in interface AbstractProductPrice
Returns:
The non-null value for this reference.

setUom

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

Specified by:
setUom in interface AbstractProductPrice
Parameters:
uom - The non-null new value for this reference.

getUsage

short getUsage(int index)
Returns:
An element of this attribute.

setUsage

void setUsage(List<Short> usage)

This method is equivalent to

   list.clear();
   list.addAll(usage);
 

Parameters:
usage - collection to be copied.


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