Uses of Class
org.faktorips.runtime.model.type.PolicyAttribute
Packages that use PolicyAttribute
Package
Description
Classes that allow access to design time model information on policy and product component types.
Internal use classes to read model information from annotations and via reflection.
Validation of model objects.
-
Uses of PolicyAttribute in org.faktorips.runtime.model.type
Subclasses of PolicyAttribute in org.faktorips.runtime.model.typeMethods in org.faktorips.runtime.model.type that return PolicyAttributeModifier and TypeMethodDescriptionPolicyCmptType.getAttribute(String name) PolicyCmptType.getDeclaredAttribute(int index) PolicyCmptType.getDeclaredAttribute(String name) ModelObjectAttribute.getPolicyAttribute()PolicyAttribute.getSuperAttribute()Methods in org.faktorips.runtime.model.type that return types with arguments of type PolicyAttributeModifier and TypeMethodDescriptionPolicyCmptType.getAttributes()PolicyCmptType.getDeclaredAttributes()Methods in org.faktorips.runtime.model.type with parameters of type PolicyAttributeModifier and TypeMethodDescriptionstatic final ModelObjectAttributeModelObjectAttribute.of(IModelObject modelObject, PolicyAttribute policyAttribute) Creates aModelObjectAttributefor the given model object and policy attribute. -
Uses of PolicyAttribute in org.faktorips.runtime.model.type.read
Methods in org.faktorips.runtime.model.type.read that return PolicyAttributeModifier and TypeMethodDescriptionprotected PolicyAttributePolicyAttributeCollector.PolicyAttributeDescriptor.createValid(Type type) -
Uses of PolicyAttribute in org.faktorips.runtime.validation
Methods in org.faktorips.runtime.validation with parameters of type PolicyAttributeModifier and TypeMethodDescription<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.protected MessageDefaultDatabaseLengthValidationConfiguration.createMessage(String msgKey, String msgCode, IModelObject modelObject, PolicyAttribute attribute, int actualValue, int maxValue) Returns a message, using the given parameters as follows:.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.DefaultDatabaseLengthValidationConfiguration.createMessageForPrecisionViolation(PolicyAttribute attribute, IModelObject modelObject, Class<? extends Number> numericDatatype, int actualPrecision, int precisionLimit) IDatabaseLengthValidationConfiguration.createMessageForPrecisionViolation(PolicyAttribute attribute, IModelObject modelObject, Class<? extends Number> numericDatatype, int actualPrecision, int precisionLimit) Creates a message to indicate that the given attribute's value on the given model object exceeds the configuredNumericConstraint`sprecision.DefaultDatabaseLengthValidationConfiguration.createMessageForScaleViolation(PolicyAttribute attribute, IModelObject modelObject, Class<? extends Number> numericDatatype, int actualScale, int scaleLimit) IDatabaseLengthValidationConfiguration.createMessageForScaleViolation(PolicyAttribute attribute, IModelObject modelObject, Class<? extends Number> numericDatatype, int actualScale, int scaleLimit) Creates a message to indicate that the given attribute's value on the given model object exceeds the configuredNumericConstraint`sscale.DefaultDatabaseLengthValidationConfiguration.createMessageForStringLengthViolation(PolicyAttribute attribute, IModelObject modelObject, int actualLength, int lengthLimit) IDatabaseLengthValidationConfiguration.createMessageForStringLengthViolation(PolicyAttribute attribute, IModelObject modelObject, int actualLength, int lengthLimit) Creates a message to indicate that the given attribute's value on the given model object exceeds the configuredStringLengthConstraint.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.default MessageIGenericAttributeValidationConfiguration.createMessageForValueNotInAllowedValueSet(PolicyAttribute policyAttribute, IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass, org.faktorips.valueset.ValueSet<?> valueSet) 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>.protected StringDefaultGenericAttributeValidationConfiguration.getLabelFor(PolicyAttribute policyAttribute, IModelObject modelObject) Returns the label for the given attribute to be used in an error message.default <T> org.faktorips.valueset.ValueSet<T> IGenericAttributeValidationConfiguration.getValueSet(PolicyAttribute policyAttribute, IModelObject modelObject) Returns the value set configured for the givenPolicyAttributeon the givenIModelObject.static booleanRelevance.isIrrelevant(IModelObject modelObject, PolicyAttribute policyAttribute) Returns whether the given attribute is consideredRelevance.IRRELEVANTfor 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, PolicyAttribute policyAttribute) Returns whether the given attribute is consideredRelevance.OPTIONALfor 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 RelevanceRelevance.of(IModelObject modelObject, PolicyAttribute policyAttribute) Returns theRelevanceof the givenPolicyAttributefor the given model object.booleanDefaultDatabaseLengthValidationConfiguration.shouldValidate(PolicyAttribute policyAttribute, IModelObject modelObject) booleanDefaultGenericAttributeValidationConfiguration.shouldValidate(PolicyAttribute policyAttribute, IModelObject modelObject) default booleanIDatabaseLengthValidationConfiguration.shouldValidate(PolicyAttribute policyAttribute, IModelObject modelObject) Decides whether the givenPolicyAttributeshould be validated for the givenIModelObject.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 PolicyAttributeModifier and TypeMethodDescriptionDefaultDatabaseLengthValidationConfiguration.withAttributeFilter(BiPredicate<PolicyAttribute, IModelObject> shouldValidate) Returns this configuration, updated to use the given predicate to determine which attributes to validate.Constructors in org.faktorips.runtime.validation with parameters of type PolicyAttributeModifierConstructorDescriptionGenericRelevanceValidation(IModelObject modelObject, Class<? extends IModelObject> definingModelObjectClass, PolicyAttribute policyAttribute, IGenericAttributeValidationConfiguration config)