Class ProductConfiguration

java.lang.Object
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:
  • Constructor Details

    • ProductConfiguration

      public ProductConfiguration()
    • ProductConfiguration

      public ProductConfiguration(IProductComponent productCmpt)
  • Method Details

    • 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