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.protected MessageListMessageList. createEmptyMessageList()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. 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. getMessagesFor(java.lang.Object object, java.lang.String property, int index)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, 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 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. 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.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.
-