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.MessageMessageList. getFirstMessage(Severity severity)Returns the first message with the given severity or null if none is found.MessageMessageList. getMessageWithHighestSeverity()static MessageMessage. newError(java.lang.String code, java.lang.String text)Constructs a new error message.static MessageMessage. newInfo(java.lang.String code, java.lang.String text)Constructs a new information message.static MessageMessage. newWarning(java.lang.String code, java.lang.String text)Constructs a new warning message.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.Methods in org.faktorips.runtime with parameters of type Message Modifier and Type Method Description 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 MessageListMessageList. of(Message... messages)Returns a newMessageListthat consists of the givenMessages.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.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. createMessageForValuePresentForIgnoredAttribute(PolicyAttribute policyAttribute, IModelObject modelObject)MessageIGenericAttributeValidationConfiguration. createMessageForValuePresentForIgnoredAttribute(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.
-