Uses of Class
org.faktorips.runtime.MessageList
Packages that use MessageList
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 enums.
Classes that allow access to design time model information on policy and product component types.
Validation of model objects.
-
Uses of MessageList in org.faktorips.runtime
Methods in org.faktorips.runtime that return MessageListModifier and TypeMethodDescriptionstatic final MessageListMessageList.createCopy(MessageList list, Object oldObject, Object newObject) Creates a copy from the message list and replaces all references to the old object with the new object.static final MessageListMessageList.createCopy(MessageList list, Map<ObjectProperty, ObjectProperty> objectPropertyMap) Creates a copy from the message list and replaces all references to the old object with the new object.protected MessageListMessageList.createEmptyMessageList()Creates a new empty message list.static final MessageListMessageLists.emptyMessageList()Returns a new emptyMessageList.static final MessageListMessageLists.filtered(MessageList ml, Predicate<Message> predicate) Returns a newMessageListthat contains all messages from the given list that satisfy the given predicate.MessageList.getMessagesByCode(String code) Returns a new message list containing all the message in this list that have the specified message code.MessageList.getMessagesByMarker(Predicate<IMarker> markerPredicate) MessageList.getMessagesByMarker(IMarker marker) Returns a new message list containing all the message in this list that have the specifiedIMarker.MessageList.getMessagesBySeverity(Severity severity) Returns a newMessageListcontaining only theMessages with the indicated severity.MessageList.getMessagesFor(Object object) Returns a new list with the messages in this list that belong to the given object (any property).MessageList.getMessagesFor(Object object, String property) Returns a new list with the messages in this list that belong to the given object and property.MessageList.getMessagesFor(Object object, String property, int index) Returns a new list with the messages in this list that belong to the given object and property and the property is of the given index.MessageList.getSubList(int maxCount) The method returns a MethodList containing a sublist of messages of this messageList.static final MessageListMessageLists.join(MessageList... messageLists) Returns a newMessageListthat combines the messages of the givenMessageListsincluding duplicates.MessageList.map(Predicate<Message> shouldBeTransformed, UnaryOperator<Message> transformer) Returns a new message list containing the same number of messages as this list, with the given transformer function applied to each message that matches the given predicate.MessageList.map(UnaryOperator<Message> transformer) Returns a new message list containing the same number of messages as this list, with the given transformer function applied to each message.static final MessageListReturns a newMessageListthat consists of the givenMessages.static final MessageListReturns a newMessageListthat contains error messages with the given texts.static final MessageListMessageLists.orEmptyMessageList(MessageList ml) Returns the givenMessageListif it is notnullor a new emptyMessageListif it is.static final MessageListMessageLists.sortBySeverity(MessageList unsortedMessageList) Returns a newMessageListcontaining the same messages as the given list, sorted by descendingSeverity.IModelObject.validate(IValidationContext context) Validates the model object and returns a list of messages.Methods in org.faktorips.runtime that return types with arguments of type MessageListModifier and TypeMethodDescriptionstatic final Collector<Message,?, MessageList> MessageLists.collectMessages()static final Collector<MessageList,?, MessageList> MessageLists.flatten()static final Collector<MessageList,?, MessageList> MessageLists.flatten()Methods in org.faktorips.runtime with parameters of type MessageListModifier and TypeMethodDescriptionvoidMessageList.add(MessageList messageList) Adds the messages in the given list to this list.voidMessageList.add(MessageList messageList, ObjectProperty invalidObjectProperty, boolean override) Copies the messages from the given list to this list and sets the message's invalid object properties.static final MessageListMessageList.createCopy(MessageList list, Object oldObject, Object newObject) Creates a copy from the message list and replaces all references to the old object with the new object.static final MessageListMessageList.createCopy(MessageList list, Map<ObjectProperty, ObjectProperty> objectPropertyMap) Creates a copy from the message list and replaces all references to the old object with the new object.static final MessageListMessageLists.filtered(MessageList ml, Predicate<Message> predicate) Returns a newMessageListthat contains all messages from the given list that satisfy the given predicate.static final MessageListMessageLists.join(MessageList... messageLists) Returns a newMessageListthat combines the messages of the givenMessageListsincluding duplicates.static final MessageListMessageLists.orEmptyMessageList(MessageList ml) Returns the givenMessageListif it is notnullor a new emptyMessageListif it is.static final MessageListMessageLists.sortBySeverity(MessageList unsortedMessageList) Returns a newMessageListcontaining the same messages as the given list, sorted by descendingSeverity. -
Uses of MessageList in org.faktorips.runtime.internal
Methods in org.faktorips.runtime.internal that return MessageListMethods in org.faktorips.runtime.internal with parameters of type MessageListModifier and TypeMethodDescriptionvoidAbstractModelObject.validate(MessageList list, IValidationContext context) Validates the policy component and adds any messages generated to the given list.protected voidAbstractModelObject.validateDependants(MessageList list, IValidationContext context) Validates the policy component's dependant components and adds any message generated to the given list.protected booleanAbstractModelObject.validateSelf(MessageList list, IValidationContext context) Validates this policy component's state without validating the dependant components. -
Uses of MessageList in org.faktorips.runtime.model
Methods in org.faktorips.runtime.model that return MessageListModifier and TypeMethodDescriptionstatic MessageListIpsModel.validate(IRuntimeRepository repository, IValidationContext context) Validates all product components and enum values in the given repository against their model. -
Uses of MessageList in org.faktorips.runtime.model.enumtype
Methods in org.faktorips.runtime.model.enumtype with parameters of type MessageListModifier and TypeMethodDescriptionvoidEnumAttribute.validate(MessageList list, IValidationContext context, Object enumValue) Validates this enum attribute's configuration in the given enum value against the model.voidEnumType.validate(MessageList list, IValidationContext context, Object enumValue) Validates this enum's configuration in the given enum value against the model.voidEnumType.validate(MessageList list, IValidationContext context, List<?> enumValues) Validates this enum's configuration in the given enum values against the model. -
Uses of MessageList in org.faktorips.runtime.model.type
Methods in org.faktorips.runtime.model.type with parameters of type MessageListModifier and TypeMethodDescriptionprotected <V,R> void Association.validate(MessageList list, Supplier<V> valueGetter, Supplier<R> referenceValueGetter, BiPredicate<V, R> valueChecker, BiFunction<V, R, String> messageTextGetter, String msgCode, ObjectProperty... invalidObjectProperties) protected <V,R> void Association.validate(MessageList list, IValidationContext context, Supplier<V> valueGetter, Supplier<R> referenceValueGetter, BiPredicate<V, R> valueChecker, String msgCode, String msgKey, String property, ObjectProperty invalidObjectProperty) protected <V,R> void Attribute.validate(MessageList list, IValidationContext context, Supplier<V> valueGetter, Supplier<R> referenceValueGetter, BiPredicate<V, R> valueChecker, String msgCode, String msgKey, String property, ObjectProperty invalidObjectProperty) 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. -
Uses of MessageList in org.faktorips.runtime.validation
Methods in org.faktorips.runtime.validation that return MessageListModifier and TypeMethodDescriptionstatic 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.GenericRelevanceValidation.validate()Checks the attribute for the following violations: Mandatory violation: The attribute is aRelevance.MANDATORYfield and the value is missing.