Uses of Class
org.faktorips.runtime.Message
-
Packages that use Message Package Description org.faktorips.runtime org.faktorips.runtime.validation Validation of model objects. -
-
Uses of Message in org.faktorips.runtime
Methods in org.faktorips.runtime that return Message Modifier and Type Method Description MessageMessage.Builder. create()Creates a newMessagewith all previously given properties.static MessageMessage. createCopy(Message msg, java.lang.Object oldObject, java.lang.Object newObject)Creates a copy from the message and replaces all references to the old object with the new object.static MessageMessage. createCopy(Message msg, java.util.Map<ObjectProperty,ObjectProperty> objectPropertyMap)Creates and returns a copy of the given message and replaces all references to the old object with the new object.MessageMessageList. getFirstMessage(Severity severity)Returns the first message with the given severity or null if none is found.MessageMessageList. getMessage(int index)Returns the message at the indicated index (indexing starts with 0).MessageMessageList. getMessageByCode(java.lang.String code)Returns the first message in the list that has the specified message code.MessageMessageList. getMessageWithHighestSeverity()Returns the message with the highest severity.static MessageMessage. newError(java.lang.String code, java.lang.String text)Constructs and returns a new error message.static MessageMessage. newError(java.lang.String code, java.lang.String text, java.lang.Object invalidObject, java.lang.String... invalidProperties)Constructs and returns a new error message.static MessageMessage. newError(java.lang.String code, java.lang.String text, ObjectProperty... invalidObjectProperty)Constructs and returns a new error message.MessageMessageList. newError(java.lang.String code, java.lang.String text, java.lang.Object invalidObject, java.lang.String... invalidProperties)Creates and returns a new message with severityERRORwith the given code, text and object properties and adds the message to the list.MessageMessageList. newError(java.lang.String code, java.lang.String text, ObjectProperty... invalidObjectProperty)Creates and returns a new message with severityERRORwith the given code, text and invalid object properties and adds the message to the list.static MessageMessage. newInfo(java.lang.String code, java.lang.String text)Constructs and returns a new information message.static MessageMessage. newInfo(java.lang.String code, java.lang.String text, java.lang.Object invalidObject, java.lang.String invalidProperty)Constructs and returns a new information message.MessageMessageList. newInfo(java.lang.String code, java.lang.String text, java.lang.Object invalidObject, java.lang.String invalidProperty)Creates and returns a new message with severityINFOwith the given code, text and object properties and adds the message to the list.static MessageMessage. newWarning(java.lang.String code, java.lang.String text)Constructs and returns a new warning message.static MessageMessage. newWarning(java.lang.String code, java.lang.String text, java.lang.Object invalidObject)Constructs and returns a new warning message.static MessageMessage. newWarning(java.lang.String code, java.lang.String text, java.lang.Object invalidObject, java.lang.String... invalidProperties)Constructs and returns a new warning message.MessageMessageList. newWarning(java.lang.String code, java.lang.String text, java.lang.Object invalidObject, java.lang.String... invalidProperties)Creates and returns a new message with severityWARNINGwith the given code, text and object properties and adds the message to the list.Methods in org.faktorips.runtime that return types with arguments of type Message 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.java.util.List<Message>MessageList. getMessages()Returns the message list.java.util.Iterator<Message>MessageList. iterator()Returns an iterator over the messages in this list.java.util.stream.Stream<Message>MessageList. parallelStream()Returns a parallelStreamof the included messages.java.util.Spliterator<Message>MessageList. spliterator()Creates aSpliteratorover the included messages.java.util.stream.Stream<Message>MessageList. stream()Returns a sequentialStreamof the included messages.Methods in org.faktorips.runtime with parameters of type Message Modifier and Type Method Description voidMessageList. add(Message message)Adds the message to the list.static MessageMessage. createCopy(Message msg, java.lang.Object oldObject, java.lang.Object newObject)Creates a copy from the message and replaces all references to the old object with the new object.static MessageMessage. createCopy(Message msg, java.util.Map<ObjectProperty,ObjectProperty> objectPropertyMap)Creates and returns a copy of the given message and replaces all references to the old object with the new object.static MessageListMessageList. of(Message... messages)Returns a newMessageListthat consists of the givenMessages.voidMessageList. remove(Message message)Removes the given message from this message list.Method parameters in org.faktorips.runtime with type arguments of type Message Modifier and Type Method Description 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. 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.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.voidMessageList. setMessages(java.util.List<Message> messages)Sets the message list.Constructors in org.faktorips.runtime with parameters of type Message Constructor Description Builder(Message message)Message(Message msg)Creates a new message by copying everything of the givenMessage.MessageList(Message message)Creates a message list that contains the given message. -
Uses of Message in org.faktorips.runtime.validation
Methods in org.faktorips.runtime.validation that return Message Modifier and Type Method Description protected MessageDefaultGenericAttributeValidationConfiguration. createErrorMessage(PolicyAttribute policyAttribute, IModelObject modelObject, java.lang.String msgCodePrefix, java.lang.String message)Creates an error message with a message code created from the given prefix viaDefaultGenericAttributeValidationConfiguration.createMsgCode(String, IModelObject, PolicyAttribute)and an invalid object property for the given attribute.MessageDefaultGenericAttributeValidationConfiguration. createMessageForMissingMandatoryValue(PolicyAttribute policyAttribute, IModelObject modelObject)MessageIGenericAttributeValidationConfiguration. createMessageForMissingMandatoryValue(PolicyAttribute policyAttribute, IModelObject modelObject)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.MessageDefaultGenericAttributeValidationConfiguration. createMessageForValueNotInAllowedValueSet(PolicyAttribute policyAttribute, IModelObject modelObject)MessageIGenericAttributeValidationConfiguration. createMessageForValueNotInAllowedValueSet(PolicyAttribute policyAttribute, IModelObject modelObject)Creates a message to indicate that the given attribute's value on the given model object is not allowed by the value set.MessageDefaultGenericAttributeValidationConfiguration. createMessageForValuePresentForIrrelevantAttribute(PolicyAttribute policyAttribute, IModelObject modelObject)MessageIGenericAttributeValidationConfiguration. createMessageForValuePresentForIrrelevantAttribute(PolicyAttribute policyAttribute, IModelObject modelObject)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.
-