Package com.easydesk.localization.enums
Enum Class EmailL10NKey
- All Implemented Interfaces:
LocalizableKey,Serializable,Comparable<EmailL10NKey>,Constable
Java 코드에서 쓰는 resource key 모음 (EasyDeskBundle_ko.properties). bundle 의 key 마다 상수가 하나씩 있고, 상수 이름은 key 를 대문자 +
'_' 로 바꾼 것이다 (예:
MovedFromItemDescription -> MOVED_FROM_ITEM_DESCRIPTION).
toString() 은 실제 bundle key 를 돌려준다.
service.getString(locale, L10NKey.ACCEPT); // "Accept"
service.format(new L10NMessage(L10NKey.MOVED_FROM_ITEM_DESCRIPTION, args), locale);
L10NKey.fromKey("Accept"); // L10NKey.ACCEPT
- Author:
- 조 영 호
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEmailAcceptance1 , parameters : 1EmailExistsAlready , parameters : 1EmailHasBadDNS , parameters : 1EmailInformationRequestSubject , parameters : 1EmailSentOutExclusive , parameters : 1Email_SubmitPremiumTesting , parameters : 1Email_SubmitPremiumTestingSubject , parameters : 1Email_Welcome , parameters : 1Email_WelcomeSubject , parameters : 1 -
Method Summary
Modifier and TypeMethodDescriptionstatic EmailL10NKeybundle key 로 상수를 찾는다.getKey()toString()static EmailL10NKeyReturns the enum constant of this class with the specified name.static EmailL10NKey[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMAIL
-
EMAIL_ACCEPTANCE1
EmailAcceptance1 , parameters : 1 -
EMAIL_ACCEPTANCE2
-
EMAIL_ACTION
-
EMAIL_ALLOW_MODULE_OVERRIDE
-
EMAIL_ALLOW_MODULE_OVERRIDE_DESCRIPTION
-
EMAIL_ENABLE
-
EMAIL_ENABLE_DESCRIPTION
-
EMAIL_ENABLED
-
EMAIL_EXISTS_ALREADY
EmailExistsAlready , parameters : 1 -
EMAIL_FOOTER_A
-
EMAIL_FOOTER_B
-
EMAIL_FOOTER_C
-
EMAIL_FOOTER_D
-
EMAIL_FROM
-
EMAIL_HAS_BAD_DNS
EmailHasBadDNS , parameters : 1 -
EMAIL_INCLUDE_ITEM_DETAILS
-
EMAIL_INCLUDE_ITEM_DETAILS_DESCRIPTION
-
EMAIL_INFORMATION_REQUEST_SUBJECT
EmailInformationRequestSubject , parameters : 1 -
EMAIL_LINK_ERROR
-
EMAIL_NEW_PASSWORD
-
EMAIL_SENT_OUT_EXCLUSIVE
EmailSentOutExclusive , parameters : 1 -
EMAIL_SET_ALL_MODULES_TO_SEND_EMAIL
-
EMAIL_SET_ALL_MODULES_TO_SEND_EMAIL_DESCRIPTION
-
EMAIL_SUBJECT_AND_BODY_SHOULD_BE_EXISTS
-
EMAIL_TO
-
EMAIL_SUBMIT_PREMIUM_TESTING
Email_SubmitPremiumTesting , parameters : 1 -
EMAIL_SUBMIT_PREMIUM_TESTING_SUBJECT
Email_SubmitPremiumTestingSubject , parameters : 1 -
EMAIL_WELCOME
Email_Welcome , parameters : 1 -
EMAIL_WELCOME_SUBJECT
Email_WelcomeSubject , parameters : 1
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getKey
- Returns:
- bundle 의 key (예: "MovedFromItemDescription")
-
toString
- Overrides:
toStringin classEnum<EmailL10NKey>- Returns:
- bundle 의 key
-
fromKey
bundle key 로 상수를 찾는다.- Throws:
IllegalArgumentException- 그런 key 가 없을 때
-