Package org.faktorips.runtime.internal
Class ProductConfiguration
- java.lang.Object
-
- org.faktorips.runtime.internal.ProductConfiguration
-
- All Implemented Interfaces:
java.io.Serializable
public class ProductConfiguration extends java.lang.Object implements java.io.SerializableManages 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
Constructors Constructor Description ProductConfiguration()ProductConfiguration(IProductComponent productCmpt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopy(ProductConfiguration otherObject)Copies the product component and product component generation from the other object.IProductComponentGenerationgetProductCmptGeneration(java.util.Calendar effectiveFrom)Returns the product component generation that configures a policy component.IProductComponentgetProductComponent()Returns the product component that configures a policy component.voidinitFromXml(org.w3c.dom.Element objectEl, IRuntimeRepository productRepository)Loads the product component thisProductConfigurationmanages.voidresetProductCmptGeneration()Sets the product component generation null.voidsetProductCmptGeneration(IProductComponentGeneration newGeneration)Sets the new product component generation.voidsetProductComponent(IProductComponent productCmpt)Sets the new product component.
-
-
-
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 isnullhowever, both product component and product component generation are set tonull.
-
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 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
-
-