Package scheduler.util
Enum dialogueReturnValues
- java.lang.Object
-
- java.lang.Enum<dialogueReturnValues>
-
- scheduler.util.dialogueReturnValues
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<dialogueReturnValues>
public enum dialogueReturnValues extends java.lang.Enum<dialogueReturnValues>
This class contains enumerated values that correspond to Strings that will be displayed to the end user in Alert and Confirmation dialogue boxes. The .toString() method is overloaded so that it returns the correct string corresponding to the error code.
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
message
-
Constructor Summary
Constructors Modifier Constructor Description private
dialogueReturnValues(java.lang.String mess)
Constructor for the dialogueReturnValues enumeration class that accepts a String as a parameter.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
Overrides the .toString() function, so that it returns the string associated with the enumeration.static dialogueReturnValues
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static dialogueReturnValues[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WRONG_PASSWORD
public static final dialogueReturnValues WRONG_PASSWORD
Error messages
-
NO_CONTENT
public static final dialogueReturnValues NO_CONTENT
-
COUNTRY_CODE_BLANK
public static final dialogueReturnValues COUNTRY_CODE_BLANK
-
DIVISION_CODE_BLANK
public static final dialogueReturnValues DIVISION_CODE_BLANK
-
NO_CUSTOMER_SELECTED
public static final dialogueReturnValues NO_CUSTOMER_SELECTED
-
NO_APPOINTMENT_SELECTED
public static final dialogueReturnValues NO_APPOINTMENT_SELECTED
-
START_NOT_VALID
public static final dialogueReturnValues START_NOT_VALID
-
END_NOT_VALID
public static final dialogueReturnValues END_NOT_VALID
-
END_BEFORE_START
public static final dialogueReturnValues END_BEFORE_START
-
CONTACT_ID_BLANK
public static final dialogueReturnValues CONTACT_ID_BLANK
-
TYPE_BLANK
public static final dialogueReturnValues TYPE_BLANK
-
CUSTOMER_BLANK
public static final dialogueReturnValues CUSTOMER_BLANK
-
START_TIME_BLANK
public static final dialogueReturnValues START_TIME_BLANK
-
END_TIME_BLANK
public static final dialogueReturnValues END_TIME_BLANK
-
DATE_BLANK
public static final dialogueReturnValues DATE_BLANK
-
APPOINTMENT_NOTIFICATION
public static final dialogueReturnValues APPOINTMENT_NOTIFICATION
Notifications
-
APPT_NEXT_15MINUTES
public static final dialogueReturnValues APPT_NEXT_15MINUTES
-
NO_APPT_NEXT_15MINUTES
public static final dialogueReturnValues NO_APPT_NEXT_15MINUTES
-
CUSTOMER_DELETED_HEADER
public static final dialogueReturnValues CUSTOMER_DELETED_HEADER
-
CUSTOMER_DELETED_BODY
public static final dialogueReturnValues CUSTOMER_DELETED_BODY
-
APPT_ADDED_SUCCESSFULLY
public static final dialogueReturnValues APPT_ADDED_SUCCESSFULLY
-
APPT_DELETED
public static final dialogueReturnValues APPT_DELETED
-
APPLICATION_EXIT
public static final dialogueReturnValues APPLICATION_EXIT
Confirmations
-
CONFIRM_APPT_MOD_HEADER
public static final dialogueReturnValues CONFIRM_APPT_MOD_HEADER
-
CONFIRM_APPT_MOD_MESSAGE
public static final dialogueReturnValues CONFIRM_APPT_MOD_MESSAGE
-
-
Constructor Detail
-
dialogueReturnValues
private dialogueReturnValues(java.lang.String mess)
Constructor for the dialogueReturnValues enumeration class that accepts a String as a parameter. The String corresponds to a notification, error, or confirmation message that will be displayed to the end user.- Parameters:
mess
- is the error, confirmation or notification message.
-
-
Method Detail
-
values
public static dialogueReturnValues[] 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 (dialogueReturnValues c : dialogueReturnValues.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static dialogueReturnValues 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 namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
Overrides the .toString() function, so that it returns the string associated with the enumeration.- Overrides:
toString
in classjava.lang.Enum<dialogueReturnValues>
- Returns:
- the string associated with the enum code.
-
-