org.opencrx.kernel.product1.jmi1
Interface ConfiguredProduct

All Superinterfaces:
ConfiguredProduct, ProductConfigurationSet, ProductDescriptor, RefBaseObject, RefFeatured, RefObject
All Known Subinterfaces:
AbstractBundledProduct, BundledProduct, BundledProductType, InventoryItem, InvoiceBundledProductPosition, InvoicePosition, OpportunityBundledProductPosition, OpportunityPosition, ProductReference, QuoteBundledProductPosition, QuotePosition, RemovedBundledProductPosition, RemovedPosition, SalesOrderBundledProductPosition, SalesOrderPosition

public interface ConfiguredProduct
extends ConfiguredProduct, ProductConfigurationSet, ProductDescriptor

Abstract class ConfiguredProduct


Method Summary
 void addConfiguration(ProductConfiguration newValue)
          
 void addConfiguration(String id, ProductConfiguration newValue)
          
 ProductConfigurationTypeSet getConfigType()
          Retrieves the value for the reference configType.
<T extends ProductConfiguration>
List<T>
getConfiguration(ProductConfigurationQuery query)
          Retrieves the value for the reference configuration for the specified query.
 ProductConfiguration getCurrentConfig()
          Retrieves the value for the reference currentConfig.
 Product getProduct()
          Retrieves the value for the reference product.
 Set<String> getProductSerialNumber()
           
 void removeConfiguration(String id)
          
 void removeCurrentConfig()
          Removes the value for the optional reference currentConfig.
 void removeProduct()
          Removes the value for the optional reference product.
 void setCurrentConfig(ProductConfiguration currentConfig)
          Sets a new value for the reference currentConfig.
 void setProduct(Product product)
          Sets a new value for the reference product.
 void setProductSerialNumber(Set<String> productSerialNumber)
           This method is equivalent to
 
Methods inherited from interface org.opencrx.kernel.product1.cci2.ConfiguredProduct
setProductSerialNumber
 
Methods inherited from interface org.opencrx.kernel.product1.jmi1.ProductConfigurationSet
unsetConfigurationType
 
Methods inherited from interface org.opencrx.kernel.product1.cci2.ProductConfigurationSet
getConfiguration, unsetConfigurationType
 
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

getCurrentConfig

ProductConfiguration getCurrentConfig()
Retrieves the value for the reference currentConfig.

Specified by:
getCurrentConfig in interface ConfiguredProduct
Returns:
The – possibly null – value for this reference.

setCurrentConfig

void setCurrentConfig(ProductConfiguration currentConfig)
Sets a new value for the reference currentConfig.

Specified by:
setCurrentConfig in interface ConfiguredProduct
Parameters:
currentConfig - The non-null new value for this reference.

removeCurrentConfig

void removeCurrentConfig()
Removes the value for the optional reference currentConfig.


getProductSerialNumber

Set<String> getProductSerialNumber()
Specified by:
getProductSerialNumber in interface ConfiguredProduct
Returns:
A set containing all elements for this attribute.

setProductSerialNumber

void setProductSerialNumber(Set<String> productSerialNumber)

This method is equivalent to

   set.clear();
   set.addAll(productSerialNumber);
 

Parameters:
productSerialNumber - collection to be copied.

getConfigType

ProductConfigurationTypeSet getConfigType()
Retrieves the value for the reference configType.

Specified by:
getConfigType in interface ProductConfigurationSet
Returns:
The – possibly null – value for this reference.

getConfiguration

<T extends ProductConfiguration> List<T> getConfiguration(ProductConfigurationQuery query)
Retrieves the value for the reference configuration for the specified query.

Parameters:
query - predicate which is applied to the set of referenced objects.
Returns:
The objects for which the predicate evaluates to true.

addConfiguration

void addConfiguration(String id,
                      ProductConfiguration newValue)

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

addConfiguration

void addConfiguration(ProductConfiguration newValue)

Parameters:
newValue - The element to be appended.

removeConfiguration

void removeConfiguration(String id)


getProduct

Product getProduct()
Retrieves the value for the reference product.

Specified by:
getProduct in interface ProductDescriptor
Returns:
The – possibly null – value for this reference.

setProduct

void setProduct(Product product)
Sets a new value for the reference product.

Specified by:
setProduct in interface ProductDescriptor
Parameters:
product - The non-null new value for this reference.

removeProduct

void removeProduct()
Removes the value for the optional reference product.



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