Class ProductConfiguration

  • All Implemented Interfaces:
    java.io.Serializable

    public class ProductConfiguration
    extends java.lang.Object
    implements java.io.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 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​(java.util.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​(org.w3c.dom.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