org.faktorips.runtime.internal
Class ProductConfiguration

java.lang.Object
  extended by org.faktorips.runtime.internal.ProductConfiguration
All Implemented Interfaces:
Serializable

public class ProductConfiguration
extends Object
implements Serializable

Manages a product component and the corresponding generation for use with configurable model objects. Used by all configurable policy component classes to manage their product configuration.

See Also:
Serialized Form

Constructor Summary
ProductConfiguration()
           
ProductConfiguration(IProductComponent productCmpt)
           
 
Method Summary
 void copy(ProductConfiguration otherObject)
          Copies the product component and product component generation from the other object.
 IProductComponentGeneration getProductCmptGeneration(Calendar effectiveFrom)
          Returns the product component generation that configures a policy component.
 IProductComponent getProductComponent()
          Returns the product component that configures a policy component.
 void initFromXml(Element objectEl, IRuntimeRepository productRepository)
          Loads the product component this ProductConfiguration manages.
 void resetProductCmptGeneration()
          Sets the product component generation null.
 void setProductCmptGeneration(IProductComponentGeneration newGeneration)
          Sets the new product component generation.
 void setProductComponent(IProductComponent productCmpt)
          Sets the new product component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductConfiguration

public ProductConfiguration()

ProductConfiguration

public ProductConfiguration(IProductComponent productCmpt)
Method Detail

setProductComponent

public void setProductComponent(IProductComponent productCmpt)
Sets the new product component.


resetProductCmptGeneration

public void resetProductCmptGeneration()
Sets the product component generation null.


getProductComponent

public IProductComponent getProductComponent()
Returns the product component that configures a policy component.


getProductCmptGeneration

public IProductComponentGeneration getProductCmptGeneration(Calendar effectiveFrom)
Returns the product component generation that configures a policy component.


setProductCmptGeneration

public void setProductCmptGeneration(IProductComponentGeneration newGeneration)
Sets the new product component generation. Also changes the product component. If the argument is null however, both product component and product component generation are set to null.


copy

public void copy(ProductConfiguration otherObject)
Copies the product component and product component generation from the other object.


initFromXml

public void initFromXml(Element objectEl,
                        IRuntimeRepository productRepository)
Loads the product component this ProductConfiguration manages. Does nothing, if no product component qualified name can be found in the XML element.

Parameters:
objectEl - the XML element containing the product component qualified name
productRepository - the IRuntimeRepository to load the product component from


Copyright © 2015. All rights reserved.