Uses of Interface
org.faktorips.runtime.IModelObject
Packages that use IModelObject
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.
Validation of model objects.
-
Uses of IModelObject in org.faktorips.runtime
Subinterfaces of IModelObject in org.faktorips.runtimeModifier and TypeInterfaceDescriptioninterfaceBase interface for all model objects that are configurable by a product component.interfaceBase interface for all model objects that are configurable by a product component with the ability to change over time via product component generations.Methods in org.faktorips.runtime that return IModelObjectModifier and TypeMethodDescriptionIModelObjectDelta.getOriginalObject()The model object this delta is computed for.IDependantObject.getParentModelObject()Returns the parent this object belongs to.IModelObjectDelta.getReferenceObject()The model object that is taken as a reference to which the orginal model object is compared to.ICopySupport.newCopy()Creates and returns new copy of this object.Methods in org.faktorips.runtime with parameters of type IModelObjectModifier and TypeMethodDescriptionIDeltaSupport.computeDelta(IModelObject otherObject, IDeltaComputationOptions options) Computes a delta between this object and the given other object.IRuntimeRepository.getModelType(IModelObject modelObject) Deprecated.booleanDeltaComputationOptionsByPosition.isSame(IModelObject object1, IModelObject object2) Returnstrueif the specified object references are identical.booleanIDeltaComputationOptions.isSame(IModelObject object1, IModelObject object2) Returnstrueif the two objects represent the same conceptual object, otherwisefalse.static IVisitorSupportIVisitorSupport.orGenericVisitorSupport(IModelObject modelObject) Returns the given model object if it implementsIVisitorSupportotherwise aGenericVisitorSupportwrapping it.booleanIModelObjectVisitor.visit(IModelObject modelObject) Visits the given model object.Constructors in org.faktorips.runtime with parameters of type IModelObject -
Uses of IModelObject in org.faktorips.runtime.formula
Classes in org.faktorips.runtime.formula with type parameters of type IModelObjectModifier and TypeClassDescriptionstatic classFormulaEvaluatorUtil.AssociationTo1Helper<S extends IModelObject,T extends IModelObject> Helper class for navigating 1-to-1 associations from a list of source objects of type<S>to target objects of type<T>.static classFormulaEvaluatorUtil.AssociationTo1Helper<S extends IModelObject,T extends IModelObject> Helper class for navigating 1-to-1 associations from a list of source objects of type<S>to target objects of type<T>.static classFormulaEvaluatorUtil.AssociationToManyHelper<S extends IModelObject,T extends IModelObject> Helper class for navigating 1-to-many associations from a list of source objects of type<S>to target objects of type<T>.static classFormulaEvaluatorUtil.AssociationToManyHelper<S extends IModelObject,T extends IModelObject> Helper class for navigating 1-to-many associations from a list of source objects of type<S>to target objects of type<T>.static classFormulaEvaluatorUtil.AttributeAccessorHelper<S extends IModelObject,E> Helper class to get the values from a list of source objects of type<S>to target type<E>.Methods in org.faktorips.runtime.formula with type parameters of type IModelObjectModifier and TypeMethodDescriptionstatic <T extends IModelObject,R extends T>
List<? extends R>FormulaEvaluatorUtil.getListModelObjectById(List<? extends T> modelObjects, String id) Returns allIConfigurableModelObjectin the list that is configured by aIProductComponentwith the given ID, the list is empty if no such object is found in the list.static <T extends IModelObject,R extends T>
RFormulaEvaluatorUtil.getModelObjectById(List<? extends T> modelObjects, String id) Returns the (first)IConfigurableModelObjectin the list that is configured by aIProductComponentwith the given ID,nullif no such object is found in the list.static <T extends IModelObject,R extends T>
RFormulaEvaluatorUtil.getModelObjectById(T modelObject, String id) Returns theIModelObjectif it is aIConfigurableModelObjectconfigured by aIProductComponentwith the given ID,nullotherwise. -
Uses of IModelObject in org.faktorips.runtime.internal
Classes in org.faktorips.runtime.internal that implement IModelObjectModifier and TypeClassDescriptionclassAbstract base class for policy component types enabled for JAXB persistence.classAbstract base class for all policy component types.Methods in org.faktorips.runtime.internal that return IModelObjectModifier and TypeMethodDescriptionModelObjectDelta.getOriginalObject()ModelObjectDelta.getReferenceObject()Methods in org.faktorips.runtime.internal with parameters of type IModelObjectModifier and TypeMethodDescriptionstatic final voidModelObjectDelta.createAssociatedChildDeltas(ModelObjectDelta delta, IModelObject original, IModelObject refObject, String association, IDeltaComputationOptions options) static final voidModelObjectDelta.createChildDeltas(ModelObjectDelta delta, IModelObject original, IModelObject refObject, String association, IDeltaComputationOptions options) AbstractRuntimeRepository.getModelType(IModelObject modelObject) voidXmlCallback.initProperties(String pathFromAggregateRoot, IModelObject modelObject, Map<String, String> propMap) Callback method will be called for each node element inside the XML structure.static final ModelObjectDeltaModelObjectDelta.newAddDelta(IModelObject addedObject, String association, IDeltaComputationOptions options) Deprecated.since 19.12.static final ModelObjectDeltaModelObjectDelta.newAddDelta(IModelObject addedObject, String association, AssociationKind associationKind, IDeltaComputationOptions options) static final ModelObjectDeltaModelObjectDelta.newChangeDelta(IModelObject original, IModelObject refObject, int kindOfChange) static final ModelObjectDeltaModelObjectDelta.newDelta(IModelObject object, IModelObject refObject, IDeltaComputationOptions options) static final ModelObjectDeltaModelObjectDelta.newDifferentObjectAtPositionChangedDelta(IModelObject original, IModelObject refObject, String association) Deprecated.since 19.12.static final ModelObjectDeltaModelObjectDelta.newDifferentObjectAtPositionChangedDelta(IModelObject original, IModelObject refObject, String association, AssociationKind associationKind) static final ModelObjectDeltaModelObjectDelta.newEmptyDelta(IModelObject object, IModelObject refObject) static final ModelObjectDeltaModelObjectDelta.newRemoveDelta(IModelObject removedObject, String association, IDeltaComputationOptions options) Deprecated.since 19.12.static final ModelObjectDeltaModelObjectDelta.newRemoveDelta(IModelObject removedObject, String association, AssociationKind associationKind, IDeltaComputationOptions options) voidAbstractModelObject.removeChildModelObjectInternal(IModelObject child) Removes the given child object from this object.Method parameters in org.faktorips.runtime.internal with type arguments of type IModelObjectModifier and TypeMethodDescriptionstatic final voidModelObjectDelta.createAssociatedChildDeltas(ModelObjectDelta delta, List<? extends IModelObject> originals, List<? extends IModelObject> refObjects, String association, IDeltaComputationOptions options) static final voidModelObjectDelta.createChildDeltas(ModelObjectDelta delta, List<? extends IModelObject> originals, List<? extends IModelObject> refObjects, String association, IDeltaComputationOptions options) -
Uses of IModelObject in org.faktorips.runtime.internal.delta
Methods in org.faktorips.runtime.internal.delta with parameters of type IModelObjectModifier and TypeMethodDescriptionvoidChildDeltaCreator.createChildDeltas(ModelObjectDelta delta, IModelObject original, IModelObject refObject) Create and add a child delta for the comparison of original and reference model object.Method parameters in org.faktorips.runtime.internal.delta with type arguments of type IModelObjectModifier and TypeMethodDescriptionvoidChildDeltaCreator.createChildDeltas(ModelObjectDelta delta, List<? extends IModelObject> originals, List<? extends IModelObject> refObjects) Create and add all child deltas for the list of associated objects. -
Uses of IModelObject in org.faktorips.runtime.model
Methods in org.faktorips.runtime.model with parameters of type IModelObjectModifier and TypeMethodDescriptionstatic PolicyCmptTypeIpsModel.getPolicyCmptType(IModelObject modelObject) Method parameters in org.faktorips.runtime.model with type arguments of type IModelObjectModifier and TypeMethodDescriptionstatic PolicyCmptTypeIpsModel.getPolicyCmptType(Class<? extends IModelObject> policyModelClass) -
Uses of IModelObject in org.faktorips.runtime.model.type
Methods in org.faktorips.runtime.model.type with type parameters of type IModelObjectModifier and TypeMethodDescription<S extends IModelObject>
SPolicyAssociation.addTargetObjects(S source, Collection<IModelObject> targets) Adds the target objects to this association in the source object.<S extends IModelObject>
SPolicyAssociation.addTargetObjects(S source, IModelObject... targets) Adds the target objects to this association in the source object.<S extends IModelObject>
SPolicyAssociation.removeTargetObjects(S source, List<IModelObject> targetsToRemove) Removes the target object from this association in the source object.<S extends IModelObject>
SPolicyAssociation.removeTargetObjects(S source, IModelObject... targetsToRemove) Removes the target objects from this association in the source object.Methods in org.faktorips.runtime.model.type that return IModelObjectMethods in org.faktorips.runtime.model.type that return types with arguments of type IModelObjectModifier and TypeMethodDescriptionPolicyAssociation.getTargetObjects(IModelObject source) Returns a list of the target(s) of the given model object's association identified by this model type association.Methods in org.faktorips.runtime.model.type with parameters of type IModelObjectModifier and TypeMethodDescription<S extends IModelObject>
SPolicyAssociation.addTargetObjects(S source, IModelObject... targets) Adds the target objects to this association in the source object.ConstantPolicyAttribute.getDefaultValue(IModelObject modelObject) DefaultPolicyAttribute.getDefaultValue(IModelObject modelObject) abstract ObjectPolicyAttribute.getDefaultValue(IModelObject modelObject) Returns the (product configured) default value of the attribute identified by this model type attribute.PolicyCmptType.getModelObjectAttributes(IModelObject modelObject) Returns a list withModelObjectAttributeswith allPolicyCmptType.getAttributes()of thisPolicyCmptTypePolicyAssociation.getTargetObjects(IModelObject source) Returns a list of the target(s) of the given model object's association identified by this model type association.ConstantPolicyAttribute.getValue(IModelObject modelObject) DefaultPolicyAttribute.getValue(IModelObject modelObject) abstract ObjectPolicyAttribute.getValue(IModelObject modelObject) Returns the value of the given model object's attribute identified by this model type attribute.org.faktorips.valueset.ValueSet<?>ConstantPolicyAttribute.getValueSet(IModelObject modelObject, IValidationContext context) org.faktorips.valueset.ValueSet<?>DefaultPolicyAttribute.getValueSet(IModelObject modelObject, IValidationContext context) org.faktorips.valueset.ValueSet<?>PolicyAttribute.getValueSet(IModelObject modelObject) Returns the value set of the given model object's attribute identified by this model type attribute.abstract org.faktorips.valueset.ValueSet<?>PolicyAttribute.getValueSet(IModelObject modelObject, IValidationContext context) Returns the value set of the given model object's attribute identified by this model type attribute.booleanPolicyAttribute.isEmpty(IModelObject modelObject) Checks whether this attribute is empty on the given model object.booleanPolicyAttribute.isValuePresent(IModelObject modelObject) Checks whether this attribute has a non-empty value on the given model object.static final ModelObjectAttributeModelObjectAttribute.of(IModelObject modelObject, String attributeName) Creates aModelObjectAttributefor the given model object and policy attribute.static final ModelObjectAttributeModelObjectAttribute.of(IModelObject modelObject, PolicyAttribute policyAttribute) Creates aModelObjectAttributefor the given model object and policy attribute.static List<ModelObjectAttribute>ModelObjectAttributes.of(IModelObject modelObject) Collects allModelObjectAttributesof the given model object.static List<ModelObjectAttribute>ModelObjectAttributes.ofIncludingChildren(IModelObject modelObject) Collects allModelObjectAttributesof the given model object and its children.<S extends IModelObject>
SPolicyAssociation.removeTargetObjects(S source, IModelObject... targetsToRemove) Removes the target objects from this association in the source object.voidConstantPolicyAttribute.removeValue(IModelObject modelObject) voidDefaultPolicyAttribute.removeValue(IModelObject modelObject) abstract voidPolicyAttribute.removeValue(IModelObject modelObject) Sets the given model object's attribute identified by this model type attribute to its null-value (nullfor most datatypes, aNullObjectfor theNullObjectSupport-datatypesDecimalandMoney, and an empty string for the datatypeString) This only works for changeable attributes.static List<ModelObjectAttribute>ModelObjectAttributes.resetAttributes(IModelObject modelObject, Predicate<ModelObjectAttribute> shouldReset) Clears attributes of aIModelObjectand its dependent model-objects that match the givenPredicate.static List<ModelObjectAttribute>ModelObjectAttributes.resetIrrelevantAttributes(IModelObject modelObject) Clearsirrelevantattributes of aIModelObjectand its dependent model-objects.voidConstantPolicyAttribute.setValue(IModelObject modelObject, Object value) voidDefaultPolicyAttribute.setValue(IModelObject modelObject, Object value) abstract voidPolicyAttribute.setValue(IModelObject modelObject, Object value) Sets the given model object's attribute identified by this model type attribute to the given value.Method parameters in org.faktorips.runtime.model.type with type arguments of type IModelObjectModifier and TypeMethodDescription<S extends IModelObject>
SPolicyAssociation.addTargetObjects(S source, Collection<IModelObject> targets) Adds the target objects to this association in the source object.<S extends IModelObject>
SPolicyAssociation.removeTargetObjects(S source, List<IModelObject> targetsToRemove) Removes the target object from this association in the source object. -
Uses of IModelObject in org.faktorips.runtime.test
Methods in org.faktorips.runtime.test with parameters of type IModelObjectModifier and TypeMethodDescriptionprotected voidIpsTestCase2.addExtensionAttribute(IModelObject modelObject, String attributeName, Object value) Adds a extension attribute value identified by the attribute name and the test object the attribute is related to.IpsTestCase2.getExtensionAttributeValue(IModelObject modelObject, String attributeName) Returns the value of the given extension attribute identified by the attribute name and the model object the attribute is related to. -
Uses of IModelObject in org.faktorips.runtime.validation
Methods in org.faktorips.runtime.validation with parameters of type IModelObjectModifier and TypeMethodDescription<T> org.faktorips.valueset.ValueSet<T>Relevance.asValueSetFor(IModelObject modelObject, String property) Returns aValueSetfor the given model object's attribute identified by the given property name that matches thisRelevance.<T> org.faktorips.valueset.ValueSet<T>Relevance.asValueSetFor(IModelObject modelObject, String property, Collection<T> values) Returns aValueSetfor the given model object's attribute that matches thisRelevance.<T> org.faktorips.valueset.ValueSet<T>Relevance.asValueSetFor(IModelObject modelObject, String property, org.faktorips.valueset.ValueSet<T> values) Returns aValueSetfor the given model object's attribute identified by the given property name that matches thisRelevance.<T> org.faktorips.valueset.ValueSet<T>Relevance.asValueSetFor(IModelObject modelObject, PolicyAttribute policyAttribute) Returns aValueSetfor the given model object's attribute that matches thisRelevance.<T> org.faktorips.valueset.ValueSet<T>Relevance.asValueSetFor(IModelObject modelObject, PolicyAttribute policyAttribute, Collection<T> values) Returns aValueSetfor the given model object's attribute that matches thisRelevance.abstract <T> org.faktorips.valueset.ValueSet<T>Relevance.asValueSetFor(IModelObject modelObject, PolicyAttribute policyAttribute, org.faktorips.valueset.ValueSet<T> values) Returns aValueSetfor the given model object's attribute that matches thisRelevance.protected Message.BuilderDefaultGenericAttributeValidationConfiguration.builderForErrorMessage(PolicyAttribute policyAttribute, IModelObject modelObject, GenericRelevanceValidation.Error error, Class<? extends IModelObject> definingModelObjectClass, String message) Creates an error message builder with a message code created from the given prefix viaDefaultGenericAttributeValidationConfiguration.createMsgCode(GenericRelevanceValidation.Error, PolicyAttribute, Class)and an invalid object property for the given attribute.protected MessageDefaultGenericAttributeValidationConfiguration.createErrorMessage(PolicyAttribute policyAttribute, IModelObject modelObject, GenericRelevanceValidation.Error error, Class<? extends IModelObject> definingModelObjectClass, String message) Creates an error message with a message code created from the given prefix viaDefaultGenericAttributeValidationConfiguration.createMsgCode(GenericRelevanceValidation.Error, PolicyAttribute, Class)and an invalid object property for the given attribute.DefaultGenericAttributeValidationConfiguration.createMessageForMissingMandatoryValue(PolicyAttribute policyAttribute, IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass) IGenericAttributeValidationConfiguration.createMessageForMissingMandatoryValue(PolicyAttribute policyAttribute, IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass) Creates a message to indicate that the given attribute's value on the given model object is missing but the value set does not allow anullvalue.DefaultGenericAttributeValidationConfiguration.createMessageForValueNotInAllowedValueSet(PolicyAttribute policyAttribute, IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass) IGenericAttributeValidationConfiguration.createMessageForValueNotInAllowedValueSet(PolicyAttribute policyAttribute, IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass) Creates a message to indicate that the given attribute's value on the given model object is not allowed by the value set.DefaultGenericAttributeValidationConfiguration.createMessageForValuePresentForIrrelevantAttribute(PolicyAttribute policyAttribute, IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass) IGenericAttributeValidationConfiguration.createMessageForValuePresentForIrrelevantAttribute(PolicyAttribute policyAttribute, IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass) Creates a message to indicate that the given attribute's value on the given model object is set but the value set does not allow a value.protected StringDefaultGenericAttributeValidationConfiguration.getLabelFor(PolicyAttribute policyAttribute, IModelObject modelObject) Returns the label for the given attribute to be used in an error message.static booleanRelevance.isIrrelevant(IModelObject modelObject, String property) Returns whether the attribute with the given property name is consideredRelevance.IRRELEVANTfor the given model object.static booleanRelevance.isIrrelevant(IModelObject modelObject, PolicyAttribute policyAttribute) Returns whether the given attribute is consideredRelevance.IRRELEVANTfor the given model object.static booleanRelevance.isMandatory(IModelObject modelObject, String property) Returns whether the attribute with the given property name is consideredRelevance.MANDATORYfor the given model object.static booleanRelevance.isMandatory(IModelObject modelObject, PolicyAttribute policyAttribute) Returns whether the given attribute is consideredRelevance.MANDATORYfor the given model object.static booleanRelevance.isOptional(IModelObject modelObject, String property) Returns whether the attribute with the given property name is consideredRelevance.OPTIONALfor the given model object.static booleanRelevance.isOptional(IModelObject modelObject, PolicyAttribute policyAttribute) Returns whether the given attribute is consideredRelevance.OPTIONALfor the given model object.static booleanRelevance.isRelevant(IModelObject modelObject, String property) Returns whether the attribute with the given property name is considered relevant for the given model object.static booleanRelevance.isRelevant(IModelObject modelObject, PolicyAttribute policyAttribute) Returns whether the given attribute is considered relevant for the given model object.static MessageListGenericRelevanceValidation.of(IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass, String propertyName, IValidationContext validationContext) Creates aGenericRelevanceValidationfor the given model object's attribute using the validation context togettheIGenericAttributeValidationConfigurationandvalidatesthe attribute.static RelevanceRelevance.of(IModelObject modelObject, String property) Returns theRelevanceof thePolicyAttributeidentified by the given property name for the given model object.static RelevanceRelevance.of(IModelObject modelObject, PolicyAttribute policyAttribute) Returns theRelevanceof the givenPolicyAttributefor the given model object.booleanDefaultGenericAttributeValidationConfiguration.shouldValidate(PolicyAttribute policyAttribute, IModelObject modelObject) booleanIGenericAttributeValidationConfiguration.shouldValidate(PolicyAttribute policyAttribute, IModelObject modelObject) Decides whether the givenPolicyAttributeshould be validated for the givenIModelObject.Method parameters in org.faktorips.runtime.validation with type arguments of type IModelObjectModifier and TypeMethodDescriptionprotected Message.BuilderDefaultGenericAttributeValidationConfiguration.builderForErrorMessage(PolicyAttribute policyAttribute, IModelObject modelObject, GenericRelevanceValidation.Error error, Class<? extends IModelObject> definingModelObjectClass, String message) Creates an error message builder with a message code created from the given prefix viaDefaultGenericAttributeValidationConfiguration.createMsgCode(GenericRelevanceValidation.Error, PolicyAttribute, Class)and an invalid object property for the given attribute.protected MessageDefaultGenericAttributeValidationConfiguration.createErrorMessage(PolicyAttribute policyAttribute, IModelObject modelObject, GenericRelevanceValidation.Error error, Class<? extends IModelObject> definingModelObjectClass, String message) Creates an error message with a message code created from the given prefix viaDefaultGenericAttributeValidationConfiguration.createMsgCode(GenericRelevanceValidation.Error, PolicyAttribute, Class)and an invalid object property for the given attribute.DefaultGenericAttributeValidationConfiguration.createMessageForMissingMandatoryValue(PolicyAttribute policyAttribute, IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass) IGenericAttributeValidationConfiguration.createMessageForMissingMandatoryValue(PolicyAttribute policyAttribute, IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass) Creates a message to indicate that the given attribute's value on the given model object is missing but the value set does not allow anullvalue.DefaultGenericAttributeValidationConfiguration.createMessageForValueNotInAllowedValueSet(PolicyAttribute policyAttribute, IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass) IGenericAttributeValidationConfiguration.createMessageForValueNotInAllowedValueSet(PolicyAttribute policyAttribute, IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass) Creates a message to indicate that the given attribute's value on the given model object is not allowed by the value set.DefaultGenericAttributeValidationConfiguration.createMessageForValuePresentForIrrelevantAttribute(PolicyAttribute policyAttribute, IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass) IGenericAttributeValidationConfiguration.createMessageForValuePresentForIrrelevantAttribute(PolicyAttribute policyAttribute, IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass) Creates a message to indicate that the given attribute's value on the given model object is set but the value set does not allow a value.protected StringDefaultGenericAttributeValidationConfiguration.createMsgCode(GenericRelevanceValidation.Error error, PolicyAttribute policyAttribute, Class<? extends IModelObject> definingModelObjectClass) Creates a message code from the pattern <errorCode>.<definingModelObjectClassName>.<policyAttributeName>.GenericRelevanceValidation.Error.getDefaultMessageCode(Class<? extends IModelObject> definingModelObjectClass, String propertyName) static MessageListGenericRelevanceValidation.of(IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass, String propertyName, IValidationContext validationContext) Creates aGenericRelevanceValidationfor the given model object's attribute using the validation context togettheIGenericAttributeValidationConfigurationandvalidatesthe attribute.Constructors in org.faktorips.runtime.validation with parameters of type IModelObjectModifierConstructorDescriptionGenericRelevanceValidation(IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass, PolicyAttribute policyAttribute, IGenericAttributeValidationConfiguration config) Constructor parameters in org.faktorips.runtime.validation with type arguments of type IModelObjectModifierConstructorDescriptionGenericRelevanceValidation(IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass, PolicyAttribute policyAttribute, IGenericAttributeValidationConfiguration config)
IpsModel.getPolicyCmptType(IModelObject)