Uses of Interface
org.faktorips.runtime.IProductComponent
Packages that use IProductComponent
Package
Description
Contains classes that allow access to design time model information about Faktor-IPS objects.
Classes that allow access to design time model information on policy and product component types.
-
Uses of IProductComponent in org.faktorips.runtime
Classes in org.faktorips.runtime with type parameters of type IProductComponentModifier and TypeInterfaceDescriptioninterfaceIProductComponentLink<T extends IProductComponent>This class represents a link between two product components.Methods in org.faktorips.runtime with type parameters of type IProductComponentModifier and TypeMethodDescription<T extends IProductComponent>
List<T>IRuntimeRepository.getAllProductComponents(Class<T> productComponentType) Returns all product components that are instances of the indicated class.Methods in org.faktorips.runtime that return IProductComponentModifier and TypeMethodDescriptionIRuntimeRepository.getExistingProductComponent(String id) Returns the product component identified by the given id.IConfigurableModelObject.getProductComponent()Returns the product component this policy component is based on.IProductComponentGeneration.getProductComponent()Returns the product component this generation belongs to.IRuntimeRepository.getProductComponent(String id) Returns the product component identified by the given id.IRuntimeRepository.getProductComponent(String kindId, String versionId) Returns the product component identified by the given KindId and versionId.protected IProductComponentInMemoryRuntimeRepository.getProductComponentInternal(String id) protected IProductComponentInMemoryRuntimeRepository.getProductComponentInternal(String kindId, String versionId) IProductComponent.getVariedBase()Allows distinguishing variants not only by their product component type but also their varied base.Methods in org.faktorips.runtime that return types with arguments of type IProductComponentModifier and TypeMethodDescriptionICacheFactory.createProductCmptCache(IComputable<String, IProductComponent> computable) IRuntimeRepository.getAllProductComponents()Returns all product components available in this repository.IRuntimeRepository.getAllProductComponents(String kindId) Returns all product components that belong to the indicated product component kind.IProductComponentLink<? extends IProductComponent>IProductComponentLinkSource.getLink(String linkName, IProductComponent target) Returns theIProductComponentLinkfor the association with the given role name to the given product component ornullif no such association exists.List<IProductComponentLink<? extends IProductComponent>>IProductComponentLinkSource.getLinks()Returns aListof all theIProductComponentLinks from this product component generation to other product components.Methods in org.faktorips.runtime with parameters of type IProductComponentModifier and TypeMethodDescriptionIRuntimeRepository.getLatestProductComponentGeneration(IProductComponent productCmpt) Returns the latest product component generation of the provided product component.protected IProductComponentGenerationInMemoryRuntimeRepository.getLatestProductComponentGenerationInternal(IProductComponent productCmpt) IProductComponentLink<? extends IProductComponent>IProductComponentLinkSource.getLink(String linkName, IProductComponent target) Returns theIProductComponentLinkfor the association with the given role name to the given product component ornullif no such association exists.IRuntimeRepository.getModelType(IProductComponent productComponent) Deprecated.intIRuntimeRepository.getNumberOfProductComponentGenerations(IProductComponent productCmpt) Returns the number of product component generations of the provided product component.protected intInMemoryRuntimeRepository.getNumberOfProductComponentGenerationsInternal(IProductComponent productCmpt) voidInMemoryRuntimeRepository.getProductComponentGenerations(IProductComponent productCmpt, List<IProductComponentGeneration> result) IRuntimeRepository.getProductComponentGenerations(IProductComponent productCmpt) Returns all product component generations for the given product component.voidIModifiableRuntimeRepository.putProductComponent(IProductComponent productCmpt) Puts the product component into the repository.voidInMemoryRuntimeRepository.putProductComponent(IProductComponent productCmpt) Puts the product component into the repository.booleanIModifiableRuntimeRepository.removeProductComponent(IProductComponent productCmpt) Removes the product component from the repository.booleanInMemoryRuntimeRepository.removeProductComponent(IProductComponent productCmpt) voidIConfigurableModelObject.setProductComponent(IProductComponent productComponent) Sets the current product component.Method parameters in org.faktorips.runtime with type arguments of type IProductComponentModifier and TypeMethodDescriptionICacheFactory.createProductCmptCache(IComputable<String, IProductComponent> computable) voidInMemoryRuntimeRepository.getAllProductComponents(String kindId, List<IProductComponent> result) voidInMemoryRuntimeRepository.getAllProductComponents(List<IProductComponent> result) Constructors in org.faktorips.runtime with parameters of type IProductComponentModifierConstructorDescriptionFormulaExecutionException(IProductComponent productComponent, String formula, Object... parameters) -
Uses of IProductComponent in org.faktorips.runtime.internal
Classes in org.faktorips.runtime.internal with type parameters of type IProductComponentModifier and TypeClassDescriptionclassProductComponentLink<T extends IProductComponent>Class that represents a link/relation between product components.Classes in org.faktorips.runtime.internal that implement IProductComponentMethods in org.faktorips.runtime.internal with type parameters of type IProductComponentModifier and TypeMethodDescriptionfinal <T extends IProductComponent>
List<T>AbstractRuntimeRepository.getAllProductComponents(Class<T> productCmptClass) protected <T extends IProductComponent>
voidAbstractClassLoadingRuntimeRepository.getAllProductComponentsInternal(Class<T> productCmptClass, List<T> result) Override the default implementation for better performance.protected <T extends IProductComponent>
voidAbstractRuntimeRepository.getAllProductComponentsInternal(Class<T> productCmptClass, List<T> result) Same asAbstractRuntimeRepository.getAllProductComponents(Class)but only searches in own repository not in referenced ones and adding result to parameter resultMethods in org.faktorips.runtime.internal that return IProductComponentModifier and TypeMethodDescriptionprotected abstract IProductComponentAbstractTocBasedRuntimeRepository.createProductCmpt(ProductCmptTocEntry tocEntry) protected IProductComponentAbstractXmlInputStreamRepository.createProductCmpt(ProductCmptTocEntry tocEntry) AbstractRuntimeRepository.getExistingProductComponent(String id) protected abstract IProductComponentAbstractCachingRuntimeRepository.getNotCachedProductComponent(String id) protected IProductComponentAbstractTocBasedRuntimeRepository.getNotCachedProductComponent(String id) final IProductComponentAbstractRuntimeRepository.getProductComponent(String id) final IProductComponentAbstractRuntimeRepository.getProductComponent(String kindId, String versionId) final IProductComponentProductComponentGeneration.getProductComponent()ProductConfiguration.getProductComponent()Returns the product component that configures a policy component.protected IProductComponentAbstractCachingRuntimeRepository.getProductComponentInternal(String id) protected abstract IProductComponentAbstractRuntimeRepository.getProductComponentInternal(String id) Same as getProductComponent(String id) but searches only in this repository and not the ones this repository depends on.protected abstract IProductComponentAbstractRuntimeRepository.getProductComponentInternal(String kindId, String versionId) Same as getProductComponent(String kindId, String versionId) but searches only in this repository and not the ones this repository depends on.protected final IProductComponentAbstractTocBasedRuntimeRepository.getProductComponentInternal(String kindId, String versionId) ProductComponent.getVariedBase()Methods in org.faktorips.runtime.internal that return types with arguments of type IProductComponentModifier and TypeMethodDescriptionAbstractCacheFactory.createProductCmptCache(IComputable<String, IProductComponent> computable) final List<IProductComponent>AbstractRuntimeRepository.getAllProductComponents()final List<IProductComponent>AbstractRuntimeRepository.getAllProductComponents(String kindId) IProductComponentLink<? extends IProductComponent>ProductComponent.getLink(String linkName, IProductComponent target) IProductComponentLink<? extends IProductComponent>ProductComponentGeneration.getLink(String linkName, IProductComponent target) List<IProductComponentLink<? extends IProductComponent>>ProductComponent.getLinks()List<IProductComponentLink<? extends IProductComponent>>ProductComponentGeneration.getLinks()Methods in org.faktorips.runtime.internal with parameters of type IProductComponentModifier and TypeMethodDescriptionAbstractRuntimeRepository.getLatestProductComponentGeneration(IProductComponent productCmpt) protected abstract IProductComponentGenerationAbstractRuntimeRepository.getLatestProductComponentGenerationInternal(IProductComponent productCmpt) protected IProductComponentGenerationAbstractTocBasedRuntimeRepository.getLatestProductComponentGenerationInternal(IProductComponent productCmpt) IProductComponentLink<? extends IProductComponent>ProductComponent.getLink(String linkName, IProductComponent target) IProductComponentLink<? extends IProductComponent>ProductComponentGeneration.getLink(String linkName, IProductComponent target) AbstractRuntimeRepository.getModelType(IProductComponent productComponent) intAbstractRuntimeRepository.getNumberOfProductComponentGenerations(IProductComponent productCmpt) protected abstract intAbstractRuntimeRepository.getNumberOfProductComponentGenerationsInternal(IProductComponent productCmpt) protected intAbstractTocBasedRuntimeRepository.getNumberOfProductComponentGenerationsInternal(IProductComponent productCmpt) final List<IProductComponentGeneration>AbstractRuntimeRepository.getProductComponentGenerations(IProductComponent productCmpt) abstract voidAbstractRuntimeRepository.getProductComponentGenerations(IProductComponent productCmpt, List<IProductComponentGeneration> result) Same as getProductComponentGenerations() but searches only in this repository and not the ones this repository depends on.voidAbstractTocBasedRuntimeRepository.getProductComponentGenerations(IProductComponent productCmpt, List<IProductComponentGeneration> result) voidProductConfiguration.setProductComponent(IProductComponent productCmpt) Sets the new product component.Method parameters in org.faktorips.runtime.internal with type arguments of type IProductComponentModifier and TypeMethodDescriptionAbstractCacheFactory.createProductCmptCache(IComputable<String, IProductComponent> computable) protected abstract voidAbstractRuntimeRepository.getAllProductComponents(String kindId, List<IProductComponent> result) Same as getAllProductComponent(String kindId) but searches only in this repository and not the ones this repository depends on.protected abstract voidAbstractRuntimeRepository.getAllProductComponents(List<IProductComponent> result) Same as getAllProductComponents() but searches only in this repository and not the ones this repository depends on.voidAbstractTocBasedRuntimeRepository.getAllProductComponents(String kindId, List<IProductComponent> result) voidAbstractTocBasedRuntimeRepository.getAllProductComponents(List<IProductComponent> result) Constructors in org.faktorips.runtime.internal with parameters of type IProductComponent -
Uses of IProductComponent in org.faktorips.runtime.model
Methods in org.faktorips.runtime.model with parameters of type IProductComponentModifier and TypeMethodDescriptionstatic ProductCmptTypeIpsModel.getProductCmptType(IProductComponent productComponent) Method parameters in org.faktorips.runtime.model with type arguments of type IProductComponentModifier and TypeMethodDescriptionstatic ProductCmptTypeIpsModel.getProductCmptType(Class<? extends IProductComponent> productModelClass) -
Uses of IProductComponent in org.faktorips.runtime.model.type
Methods in org.faktorips.runtime.model.type with type parameters of type IProductComponentModifier and TypeMethodDescription<S extends IProductComponent>
SProductAssociation.addTargetObject(S source, Calendar effectiveDate, IProductComponent target, CardinalityRange cardinality) Adds the target object with the given cardinality to this association in the source object.<S extends IProductComponent>
SProductAssociation.addTargetObjects(S source, Calendar effectiveDate, Collection<IProductComponent> targets) Adds the target objects to this association in the source object.<S extends IProductComponent>
SProductAssociation.addTargetObjects(S source, Calendar effectiveDate, IProductComponent... targets) Adds the target objects to this association in the source object.<T extends IProductComponent>
Optional<IProductComponentLink<T>>ProductAssociation.getLink(IProductComponent source, IProductComponent target, Calendar effectiveDate) Retrieves thelink- based on this association - from the source product component to the target product component, if one such link exists.<T extends IProductComponent>
Collection<IProductComponentLink<T>>ProductAssociation.getLinks(IProductComponent prodCmpt, Calendar effectiveDate) Retrieves alllinksfor this association from a product component.<S extends IProductComponent>
SProductAssociation.removeTargetObjects(S source, Calendar effectiveDate, List<IProductComponent> targetsToRemove) Removes the target object from this association in the source object.<S extends IProductComponent>
SProductAssociation.removeTargetObjects(S source, Calendar effectiveDate, IProductComponent... targetsToRemove) Removes the target object from this association in the source object.Methods in org.faktorips.runtime.model.type that return types with arguments of type IProductComponentModifier and TypeMethodDescriptionProductAssociation.getTargetObjects(IProductComponent productComponentSource, Calendar effectiveDate) Returns a list of the target(s) of the given product component's association identified by this model type association.Methods in org.faktorips.runtime.model.type with parameters of type IProductComponentModifier and TypeMethodDescription<S extends IProductComponent>
SProductAssociation.addTargetObject(S source, Calendar effectiveDate, IProductComponent target, CardinalityRange cardinality) Adds the target object with the given cardinality to this association in the source object.<S extends IProductComponent>
SProductAssociation.addTargetObjects(S source, Calendar effectiveDate, IProductComponent... targets) Adds the target objects to this association in the source object.ConstantPolicyAttribute.getDefaultValue(IProductComponent source, Calendar effectiveDate) DefaultPolicyAttribute.getDefaultValue(IProductComponent source, Calendar effectiveDate) abstract ObjectPolicyAttribute.getDefaultValue(IProductComponent source, Calendar effectiveDate) Returns the product configured default value of the attribute identified by this model type attribute.Formula.getFormulaText(IProductComponent productComponent, Calendar effectiveDate) Returns the formula text of this formula in the given product component.<T extends IProductComponent>
Optional<IProductComponentLink<T>>ProductAssociation.getLink(IProductComponent source, IProductComponent target, Calendar effectiveDate) Retrieves thelink- based on this association - from the source product component to the target product component, if one such link exists.<T extends IProductComponent>
Collection<IProductComponentLink<T>>ProductAssociation.getLinks(IProductComponent prodCmpt, Calendar effectiveDate) Retrieves alllinksfor this association from a product component.protected IProductObjectAttribute.getRelevantProductObject(IProductComponent productComponent, Calendar effectiveDate) protected static IProductObjectModelElement.getRelevantProductObject(IProductComponent productComponent, Calendar effectiveDate, boolean changingOverTime) If thechangingOverTimeisfalse, the given product component is returned.ITable<?>TableUsage.getTable(IProductComponent productComponent, Calendar effectiveDate) Returns the table the given product component references for this table usage.TableUsage.getTableName(IProductComponent productComponent, Calendar effectiveDate) Returns the name of the table for the given product component that references a table usage.ProductAssociation.getTargetObjects(IProductComponent productComponentSource, Calendar effectiveDate) Returns a list of the target(s) of the given product component's association identified by this model type association.<T> TProductAttribute.getValue(IProductComponent productComponent, Calendar effectiveDate) Returns the value of this attribute in the given product component (or its generation identified by the effectiveDate, if the attribute is changeable over time).org.faktorips.valueset.ValueSet<?>ConstantPolicyAttribute.getValueSet(IProductComponent source, Calendar effectiveDate, IValidationContext context) org.faktorips.valueset.ValueSet<?>DefaultPolicyAttribute.getValueSet(IProductComponent source, Calendar effectiveDate, IValidationContext context) org.faktorips.valueset.ValueSet<?>PolicyAttribute.getValueSet(IProductComponent source, Calendar effectiveDate) Returns the value set of the given model object's attribute identified by this model type attribute.abstract org.faktorips.valueset.ValueSet<?>PolicyAttribute.getValueSet(IProductComponent source, Calendar effectiveDate, IValidationContext context) Returns the value set of the given model object's attribute identified by this model type attribute.<S extends IProductComponent>
SProductAssociation.removeTargetObjects(S source, Calendar effectiveDate, IProductComponent... targetsToRemove) Removes the target object from this association in the source object.voidConstantPolicyAttribute.setDefaultValue(IProductComponent source, Calendar effectiveDate, Object defaultValue) voidDefaultPolicyAttribute.setDefaultValue(IProductComponent source, Calendar effectiveDate, Object defaultValue) abstract voidPolicyAttribute.setDefaultValue(IProductComponent target, Calendar effectiveDate, Object defaultValue) Sets the product configured default value of the attribute identified by this model type attribute.voidFormula.setFormulaText(IProductComponent productComponent, Calendar effectiveDate, String formulaText) Sets the formula text of this formula in the given product component.voidTableUsage.setTableName(String tableName, IProductComponent productComponent, Calendar effectiveDate) Sets the name of the table for the given product component that references a table usage.voidProductAttribute.setValue(IProductComponent productComponent, Calendar effectiveDate, Object value) Sets the value of this attribute in the given product component (or its generation identified by the effectiveDate, if the attribute is changeable over time).voidConstantPolicyAttribute.setValueSet(IProductComponent source, Calendar effectiveDate, org.faktorips.valueset.ValueSet<?> valueSet) voidDefaultPolicyAttribute.setValueSet(IProductComponent source, Calendar effectiveDate, org.faktorips.valueset.ValueSet<?> valueSet) abstract voidPolicyAttribute.setValueSet(IProductComponent target, Calendar effectiveDate, org.faktorips.valueset.ValueSet<?> valueSet) Sets the product configured set of allowed values of the attribute identified by this model type attribute.voidAttribute.validate(MessageList list, IValidationContext context, IProductComponent product, Calendar effectiveDate) Validates this attribute's configuration in the given product against the model.voidDefaultPolicyAttribute.validate(MessageList list, IValidationContext context, IProductComponent product, Calendar effectiveDate) voidFormula.validate(MessageList list, IValidationContext context, IProductComponent productComponent, Calendar effectiveDate) voidProductAssociation.validate(MessageList list, IValidationContext context, IProductComponent source, Calendar effectiveDate) Validates this association's configuration in the given product against the model.voidProductAttribute.validate(MessageList list, IValidationContext context, IProductComponent product, Calendar effectiveDate) voidProductCmptType.validate(IProductComponent productComponent, MessageList messages, IValidationContext context) Validates the given product component against this type, provided it matches.voidTableUsage.validate(MessageList list, IValidationContext context, IProductComponent productComponent, Calendar effectiveDate) voidTypePart.validate(MessageList list, IValidationContext context, IProductComponent product, Calendar effectiveDate) Validates this part's configuration in the given product against the model.Method parameters in org.faktorips.runtime.model.type with type arguments of type IProductComponentModifier and TypeMethodDescription<S extends IProductComponent>
SProductAssociation.addTargetObjects(S source, Calendar effectiveDate, Collection<IProductComponent> targets) Adds the target objects to this association in the source object.<S extends IProductComponent>
SProductAssociation.removeTargetObjects(S source, Calendar effectiveDate, List<IProductComponent> targetsToRemove) Removes the target object from this association in the source object. -
Uses of IProductComponent in org.faktorips.runtime.productswitch
Fields in org.faktorips.runtime.productswitch with type parameters of type IProductComponentModifier and TypeFieldDescriptionstatic final BiPredicate<IProductComponent,IProductComponent> ProductSwitch.BY_KIND_IDThisBiPredicateuses thegetKindId()to find a suitable replacement for a product switch.static final BiPredicate<IProductComponent,IProductComponent> ProductSwitch.BY_KIND_IDThisBiPredicateuses thegetKindId()to find a suitable replacement for a product switch.Methods in org.faktorips.runtime.productswitch that return IProductComponentModifier and TypeMethodDescriptionProductSwitchResults.SuccessfulProductSwitch.getNewProduct()ProductSwitchResults.SuccessfulProductSwitch.getOldProduct()ProductFinderResult.getProductComponent()Returns theIProductComponentfor the replacement.Methods in org.faktorips.runtime.productswitch with parameters of type IProductComponentModifier and TypeMethodDescriptionAdvancedProductFinder.findMatchingProduct(IConfigurableModelObject parent, IProductComponent oldParentProdCmpt, IConfigurableModelObject child, PolicyAssociation parentToChild) This method returns aProductFinderResultobject which contains the correct replacement of anIProductComponentfor the givenIConfigurableModelObject.static ProductFinderResultProductFinderResult.of(IProductComponent productComponent) Constructs a newProductFinderResultwith the specified product component.ProductSwitch.AbstractProductFinderSwitch.to(IProductComponent newProduct) The newIProductComponentthat should be used for the switch.ProductSwitch.ProductSwitchCondition.to(IProductComponent newProduct) The newIProductComponentthat should be used for the switch.Method parameters in org.faktorips.runtime.productswitch with type arguments of type IProductComponentModifier and TypeMethodDescriptionstatic ProductFinderResultProductSwitch.createErrorResult(IConfigurableModelObject modelObject, List<IProductComponent> matchingProductComponents) Creates aProductFinderResultobject with an error message indicating that the switch failed because the specified object has multiple replacements.MatchingProductFinder.findMatchingProduct(IConfigurableModelObject modelObject, List<IProductComponent> oldProducts, List<IProductComponent> newProducts) This method returns aProductFinderResultobject which contains the correct replacement of anIProductComponentfor the givenIConfigurableModelObject.ProductSwitch.ProductSwitchCondition.with(BiPredicate<IProductComponent, IProductComponent> howToMatch) This method will return aProductSwitch.MatchingProductFinderSwitchthat uses the given predicate if more than one suitable replacement is found in the product configuration.ProductSwitch.ProductSwitchCondition.with(BiPredicate<IProductComponent, IProductComponent> howToMatch) This method will return aProductSwitch.MatchingProductFinderSwitchthat uses the given predicate if more than one suitable replacement is found in the product configuration.Constructors in org.faktorips.runtime.productswitch with parameters of type IProductComponentModifierConstructorDescriptionSuccessfulProductSwitch(IProductComponent oldProduct, IProductComponent newProduct) Constructs a newSuccessfulProductSwitchinstance with the given old and new product components. -
Uses of IProductComponent in org.faktorips.runtime.util
Methods in org.faktorips.runtime.util with type parameters of type IProductComponentModifier and TypeMethodDescriptionstatic <T extends IProductComponent>
TProductComponentLinks.getTarget(int index, Map<String, IProductComponentLink<T>> componentLink) Returns value of type IProductComponent at the indicated index.
IpsModel.getProductCmptType(IProductComponent)