Uses of Class
org.faktorips.runtime.Message
Packages that use Message
Package
Description
Validation of model objects.
-
Uses of Message in org.faktorips.runtime
Methods in org.faktorips.runtime that return MessageModifier and TypeMethodDescriptionMessage.Builder.create()Creates a newMessagewith all previously given properties.static final MessageMessage.createCopy(Message msg, Object oldObject, Object newObject) Creates a copy from the message and replaces all references to the old object with the new object.static final MessageMessage.createCopy(Message msg, 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.MessageList.getFirstMessage(Severity severity) Returns the first message with the given severity or null if none is found.MessageList.getMessage(int index) Returns the message at the indicated index (indexing starts with 0).MessageList.getMessageByCode(String code) Returns the first message in the list that has the specified message code.MessageList.getMessageWithHighestSeverity()Returns the message with the highest severity.static final MessageConstructs and returns a new error message.static final MessageConstructs and returns a new error message.static final MessageMessage.newError(String code, String text, ObjectProperty... invalidObjectProperty) Constructs and returns a new error message.Creates and returns a new message with severityERRORwith the given code, text and object properties and adds the message to the list.MessageList.newError(String code, 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 final MessageConstructs and returns a new information message.static final MessageConstructs and returns a new information message.Creates and returns a new message with severityINFOwith the given code, text and object properties and adds the message to the list.static final MessageMessage.newWarning(String code, String text) Constructs and returns a new warning message.static final MessageMessage.newWarning(String code, String text, Object invalidObject) Constructs and returns a new warning message.static final MessageMessage.newWarning(String code, String text, Object invalidObject, String... invalidProperties) Constructs and returns a new warning message.MessageList.newWarning(String code, String text, Object invalidObject, 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 MessageModifier and TypeMethodDescriptionstatic final Collector<Message,?, MessageList> MessageLists.collectMessages()MessageList.getMessages()Returns the message list.MessageList.iterator()Returns an iterator over the messages in this list.MessageList.parallelStream()Returns a parallelStreamof the included messages.MessageList.spliterator()Creates aSpliteratorover the included messages.MessageList.stream()Returns a sequentialStreamof the included messages.Methods in org.faktorips.runtime with parameters of type MessageModifier and TypeMethodDescriptionvoidAdds the message to the list.static final MessageMessage.createCopy(Message msg, Object oldObject, Object newObject) Creates a copy from the message and replaces all references to the old object with the new object.static final MessageMessage.createCopy(Message msg, 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 final MessageListReturns a newMessageListthat consists of the givenMessages.voidRemoves the given message from this message list.Method parameters in org.faktorips.runtime with type arguments of type MessageModifier and TypeMethodDescriptionstatic final MessageListMessageLists.filtered(MessageList ml, Predicate<Message> predicate) Returns a newMessageListthat contains all messages from the given list that satisfy the given predicate.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(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.voidMessageList.setMessages(List<Message> messages) Sets the message list.Constructors in org.faktorips.runtime with parameters of type MessageModifierConstructorDescriptionCreates 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 MessageModifier and TypeMethodDescriptionprotected 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.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.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.