Package org.faktorips.runtime.internal
Class ProductConfiguration
java.lang.Object
org.faktorips.runtime.internal.ProductConfiguration
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy(ProductConfiguration otherObject) Copies the product component and product component generation from the other object.getProductCmptGeneration(Calendar effectiveFrom) Returns the product component generation that configures a policy component.Returns the product component that configures a policy component.voidinitFromXml(Element objectEl, IRuntimeRepository productRepository) Loads the product component thisProductConfigurationmanages.voidSets the product component generation null.voidsetProductCmptGeneration(IProductComponentGeneration newGeneration) Sets the new product component generation.voidsetProductComponent(IProductComponent productCmpt) Sets the new product component.
-
Constructor Details
-
ProductConfiguration
public ProductConfiguration() -
ProductConfiguration
-
-
Method Details
-
setProductComponent
Sets the new product component. -
resetProductCmptGeneration
public void resetProductCmptGeneration()Sets the product component generation null. -
getProductComponent
Returns the product component that configures a policy component. -
getProductCmptGeneration
Returns the product component generation that configures a policy component. -
setProductCmptGeneration
Sets the new product component generation. Also changes the product component. If the argument isnullhowever, both product component and product component generation are set tonull. -
copy
Copies the product component and product component generation from the other object. -
initFromXml
Loads the product component thisProductConfigurationmanages. 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 nameproductRepository- theIRuntimeRepositoryto load the product component from
-