Enum MessageCode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<MessageCode>

    public enum MessageCode
    extends java.lang.Enum<MessageCode>
    Enumeration collecting codes of String resources in message.properties file .
    Since:
    1.1
    Author:
    Martynenko Anton
    • Enum Constant Detail

      • QUESTION_DEPARTMENT_HEAD_OF

        public static final MessageCode QUESTION_DEPARTMENT_HEAD_OF
      • QUESTION_DEPARTMENT_STATISTICS

        public static final MessageCode QUESTION_DEPARTMENT_STATISTICS
      • QUESTION_DEPARTMENT_SALARY

        public static final MessageCode QUESTION_DEPARTMENT_SALARY
      • QUESTION_DEPARTMENT_COUNT

        public static final MessageCode QUESTION_DEPARTMENT_COUNT
      • QUESTION_EMPLOYEE_SEARCH

        public static final MessageCode QUESTION_EMPLOYEE_SEARCH
      • QUESTION_COMMON_EXIT

        public static final MessageCode QUESTION_COMMON_EXIT
      • ANSWER_DEPARTMENT_NO_SUCH

        public static final MessageCode ANSWER_DEPARTMENT_NO_SUCH
      • ANSWER_DEPARTMENT_HEAD_OF

        public static final MessageCode ANSWER_DEPARTMENT_HEAD_OF
      • ANSWER_DEPARTMENT_STATISTICS

        public static final MessageCode ANSWER_DEPARTMENT_STATISTICS
      • ANSWER_DEPARTMENT_SALARY

        public static final MessageCode ANSWER_DEPARTMENT_SALARY
      • ANSWER_EMPLOYEE_NOTHING_FOUND

        public static final MessageCode ANSWER_EMPLOYEE_NOTHING_FOUND
      • ANSWER_COMMON_INCORRECT_QUESTION

        public static final MessageCode ANSWER_COMMON_INCORRECT_QUESTION
      • ANSWER_COMMON_HI

        public static final MessageCode ANSWER_COMMON_HI
      • ANSWER_COMMON_BYE

        public static final MessageCode ANSWER_COMMON_BYE
      • ANSWER_COMMON_ELSE

        public static final MessageCode ANSWER_COMMON_ELSE
      • ANSWER_COMMON_EXCEPTION

        public static final MessageCode ANSWER_COMMON_EXCEPTION
    • Method Detail

      • values

        public static MessageCode[] 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 (MessageCode c : MessageCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MessageCode 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