Uses of Class
org.faktorips.runtime.MessageList
-
Packages that use MessageList Package Description org.faktorips.runtime org.faktorips.runtime.internal org.faktorips.runtime.validation Validation of model objects. -
-
Uses of MessageList in org.faktorips.runtime
Methods in org.faktorips.runtime that return MessageList Modifier and Type Method Description static MessageListMessageList. createCopy(MessageList list, java.lang.Object oldObject, java.lang.Object newObject)Creates a copy from the message list and replaces all references to the old object with the new object.static MessageListMessageList. createCopy(MessageList list, java.util.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 MessageListMessageLists. emptyMessageList()Returns a new emptyMessageList.static MessageListMessageLists. filtered(MessageList ml, java.util.function.Predicate<Message> predicate)Returns a newMessageListthat contains all messages from the given list that satisfy the given predicate.MessageListMessageList. getMessagesByCode(java.lang.String code)Returns a new message list containing all the message in this list that have the specified message code.MessageListMessageList. getMessagesByMarker(java.util.function.Predicate<IMarker> markerPredicate)Returns a new message list containing all the message in this list with aIMarkerthe specifiedPredicatematches.MessageListMessageList. getMessagesByMarker(IMarker marker)Returns a new message list containing all the message in this list that have the specifiedIMarker.MessageListMessageList. getMessagesBySeverity(Severity severity)Returns a newMessageListcontaining only theMessages with the indicated severity.MessageListMessageList. getMessagesFor(java.lang.Object object)Returns a new list with the messages in this list that belong to the given object (any property).MessageListMessageList. getMessagesFor(java.lang.Object object, java.lang.String property)Returns a new list with the messages in this list that belong to the given object and property.MessageListMessageList. getMessagesFor(java.lang.Object object, java.lang.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.MessageListMessageList. getSubList(int maxCount)The method returns a MethodList containing a sublist of messages of this messageList.static MessageListMessageLists. join(MessageList... messageLists)Returns a newMessageListthat combines the messages of the givenMessageListsincluding duplicates.MessageListMessageList. map(java.util.function.Predicate<Message> shouldBeTransformed, java.util.function.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.MessageListMessageList. map(java.util.function.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 MessageListMessageList. of(Message... messages)Returns a newMessageListthat consists of the givenMessages.static MessageListMessageList. ofErrors(java.lang.String... texts)Returns a newMessageListthat contains error messages with the given texts.static MessageListMessageLists. orEmptyMessageList(MessageList ml)Returns the givenMessageListif it is notnullor a new emptyMessageListif it is.static MessageListMessageLists. sortBySeverity(MessageList unsortedMessageList)Returns a newMessageListcontaining the same messages as the given list, sorted by descendingSeverity.MessageListIModelObject. 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 MessageList Modifier and Type Method Description static java.util.stream.Collector<Message,?,MessageList>MessageLists. collectMessages()Returns aCollectorthat can be used to collect messages from aStreamofMessagesinto aMessageList.static java.util.stream.Collector<MessageList,?,MessageList>MessageLists. flatten()static java.util.stream.Collector<MessageList,?,MessageList>MessageLists. flatten()Methods in org.faktorips.runtime with parameters of type MessageList Modifier and Type Method Description voidMessageList. 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 MessageListMessageList. createCopy(MessageList list, java.lang.Object oldObject, java.lang.Object newObject)Creates a copy from the message list and replaces all references to the old object with the new object.static MessageListMessageList. createCopy(MessageList list, java.util.Map<ObjectProperty,ObjectProperty> objectPropertyMap)Creates a copy from the message list and replaces all references to the old object with the new object.static MessageListMessageLists. filtered(MessageList ml, java.util.function.Predicate<Message> predicate)Returns a newMessageListthat contains all messages from the given list that satisfy the given predicate.static MessageListMessageLists. join(MessageList... messageLists)Returns a newMessageListthat combines the messages of the givenMessageListsincluding duplicates.static MessageListMessageLists. orEmptyMessageList(MessageList ml)Returns the givenMessageListif it is notnullor a new emptyMessageListif it is.static 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 MessageList Modifier and Type Method Description MessageListAbstractModelObject. validate(IValidationContext context)Methods in org.faktorips.runtime.internal with parameters of type MessageList Modifier and Type Method Description voidAbstractModelObject. 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.validation
Methods in org.faktorips.runtime.validation that return MessageList Modifier and Type Method Description static MessageListGenericRelevanceValidation. of(IModelObject modelObject, java.lang.Class<? extends IModelObject> definingModelObjectClass, java.lang.String propertyName, IValidationContext validationContext)Creates aGenericRelevanceValidationfor the given model object's attribute using the validation context togettheIGenericAttributeValidationConfigurationandvalidatesthe attribute.MessageListGenericRelevanceValidation. validate()Checks the attribute for the following violations: Mandatory violation: The attribute is aRelevance.MANDATORYfield and the value is missing.
-