org.opencrx.kernel.product1.jmi1
Interface AbstractProductPrice

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

public interface AbstractProductPrice
extends AbstractProductPrice, RefObject_1_0

Abstract class AbstractProductPrice


Method Summary
 Uom getUom()
          Retrieves the value for the reference uom.
 List<Short> getUsage()
          Retrieves a list containing all the elements for the attribute usage.
 void setUom(Uom uom)
          Sets a new value for the reference uom.
 void setUsage(List<Short> usage)
          Clears usage and adds the members of the given List.
 
Methods inherited from interface org.opencrx.kernel.product1.cci2.AbstractProductPrice
getDescription, getDiscount, getPrice, getPriceCurrency, getPriceLevel, getQuantityFrom, getQuantityTo, isDiscountIsPercentage, setDescription, setDiscount, setDiscountIsPercentage, setPrice, setPriceCurrency, setQuantityFrom, setQuantityTo, setUsage
 
Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefObject_1_0
refDefaultFetchGroup, refDelegate, refGetPath, refGetValue, refInitialize, refInitialize, refSetValue
 
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

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

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

Specified by:
getUsage in interface AbstractProductPrice
Returns:
A list containing all elements for this attribute.

setUsage

void setUsage(List<Short> usage)
Clears usage and adds the members of the given List.

This method is equivalent to

   list.clear();
   list.addAll(usage);
 
Note: This is an extension to the JMI 1 standard.
In order to remain standard compliant you should use the equivalent code.

Parameters:
usage - collection to be copied.


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