public enum LocalizedFormats extends Enum<LocalizedFormats> implements Localizable
Enum Constant and Description |
---|
ARRAY_NULL_OR_EMPTY |
DATASOURCE_CAN_NOT_INSTANCE |
DATASOURCE_JDBC_URL |
DATASOURCE_TYPE_BLANK |
DATASOURCE_TYPE_NOT_FIND |
ENTITY_VERSION_NULL |
KEY_GENERATOR_BLANK |
MAP_NULL_OR_EMPTY |
OBJECT_NULL
object can not be null
|
OBJECT_NULL_OR_BLANK |
UPDATE_ONLY_SUPPORT_1_TABLE |
UPDATE_OR_DELETE_NOT_ALLOW |
Modifier and Type | Method and Description |
---|---|
String |
getLocalizedString(Locale locale)
获取本地化字符串。
|
String |
getSourceString()
获取源(非本地化)字符串。
|
static LocalizedFormats |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LocalizedFormats[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocalizedFormats OBJECT_NULL
public static final LocalizedFormats OBJECT_NULL_OR_BLANK
public static final LocalizedFormats MAP_NULL_OR_EMPTY
public static final LocalizedFormats ARRAY_NULL_OR_EMPTY
public static final LocalizedFormats DATASOURCE_TYPE_BLANK
public static final LocalizedFormats DATASOURCE_TYPE_NOT_FIND
public static final LocalizedFormats DATASOURCE_CAN_NOT_INSTANCE
public static final LocalizedFormats DATASOURCE_JDBC_URL
public static final LocalizedFormats UPDATE_ONLY_SUPPORT_1_TABLE
public static final LocalizedFormats UPDATE_OR_DELETE_NOT_ALLOW
public static final LocalizedFormats ENTITY_VERSION_NULL
public static final LocalizedFormats KEY_GENERATOR_BLANK
public static LocalizedFormats[] values()
for (LocalizedFormats c : LocalizedFormats.values()) System.out.println(c);
public static LocalizedFormats valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getSourceString()
Localizable
getSourceString
in interface Localizable
public String getLocalizedString(Locale locale)
Localizable
getLocalizedString
in interface Localizable
locale
- 要获取字符串的区域Copyright © 2024. All rights reserved.