Enum Class ModelMessage

java.lang.Object
java.lang.Enum<ModelMessage>
de.dlr.proseo.logging.messages.ModelMessage
All Implemented Interfaces:
ProseoMessage, Serializable, Comparable<ModelMessage>, Constable

public enum ModelMessage extends Enum<ModelMessage> implements ProseoMessage
A collection of messages needed by the model.
Author:
Katharina Bassler
  • Enum Constant Details

    • SLICING_DURATION_NOT_ALLOWED

      public static final ModelMessage SLICING_DURATION_NOT_ALLOWED
    • SLICING_OVERLAP_NOT_ALLOWED

      public static final ModelMessage SLICING_OVERLAP_NOT_ALLOWED
    • NO_ITEM_FOUND

      public static final ModelMessage NO_ITEM_FOUND
    • INVALID_ITEM_TYPE

      public static final ModelMessage INVALID_ITEM_TYPE
    • CANNOT_CREATE_QUERY

      public static final ModelMessage CANNOT_CREATE_QUERY
    • POLICY_TYPE_NOT_IMPLEMENTED

      public static final ModelMessage POLICY_TYPE_NOT_IMPLEMENTED
    • CANNOT_ACCESS_PRODUCT_FIELD

      public static final ModelMessage CANNOT_ACCESS_PRODUCT_FIELD
    • FILENAME_TEMPLATE_NOT_FOUND

      public static final ModelMessage FILENAME_TEMPLATE_NOT_FOUND
    • INVALID_PARAMETER_VALUE_FOR_TYPE

      public static final ModelMessage INVALID_PARAMETER_VALUE_FOR_TYPE
    • PARAMETER_CANNOT_BE_CONVERTED

      public static final ModelMessage PARAMETER_CANNOT_BE_CONVERTED
    • PROPERTY_COLUMNS_FOUND

      public static final ModelMessage PROPERTY_COLUMNS_FOUND
    • ATTRIBUTE_COLUMN_MAP_NOT_GENERATED

      public static final ModelMessage ATTRIBUTE_COLUMN_MAP_NOT_GENERATED
    • INCOMPLETE_PRODUCT_QUERY

      public static final ModelMessage INCOMPLETE_PRODUCT_QUERY
  • Method Details

    • values

      public static ModelMessage[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ModelMessage valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCode

      public int getCode()
      Get the message's code.
      Specified by:
      getCode in interface ProseoMessage
      Returns:
      The message code.
    • getLevel

      public org.slf4j.event.Level getLevel()
      Get the message's level.
      Specified by:
      getLevel in interface ProseoMessage
      Returns:
      The message level.
    • getMessage

      public String getMessage()
      Get the message.
      Specified by:
      getMessage in interface ProseoMessage
      Returns:
      The message.
    • getDescription

      public String getDescription()
      Get a more detailed description of the message's purpose.
      Specified by:
      getDescription in interface ProseoMessage
      Returns:
      A description of the message.
    • getSuccess

      public boolean getSuccess()
      Get the message's success.
      Specified by:
      getSuccess in interface ProseoMessage
      Returns:
      The message's success.