Enum ModelMessage.MessageType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ModelMessage.MessageType>, Named
    Enclosing class:
    ModelMessage

    public static enum ModelMessage.MessageType
    extends java.lang.Enum<ModelMessage.MessageType>
    implements Named
    Constants categorizing the type of message. When this changes, be sure to update client-options.xml and the messages file appropriately.
    • Field Detail

      • optionName

        private final java.lang.String optionName
    • Constructor Detail

      • MessageType

        private MessageType​(java.lang.String optionName)
    • Method Detail

      • values

        public static ModelMessage.MessageType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ModelMessage.MessageType c : ModelMessage.MessageType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ModelMessage.MessageType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getOptionName

        public java.lang.String getOptionName()
      • getKey

        private java.lang.String getKey()
        Get a message key for this message type.
        Returns:
        A message key.
      • getNameKey

        public java.lang.String getNameKey()
        Gets the name of this named object. Try to avoid using this directly except in i18n-related routines or to implement itself in more complext objects.
        Specified by:
        getNameKey in interface Named
        Returns:
        The name of the Named.