public interface IBundleMessageType extends IMessageType
IMessageType
BundleMessageContext
public enum DefaultBundleMessageType implements IBundleMessageType {
LOG, EXCEPTION, UI;
public String value() {
return toString() + ":" + BASE_PACK_DIR + toString();
}
public String getPackName() {
String packName = null;
String val = value();
if (val != null) {
int split = val.indexOf(":");
if (-1 != split) {
packName = val.substring(split + 1);
}
}
return packName;
}
public String getPackType() {
String packType = null;
String val = value();
if (val != null) {
int split = val.indexOf(":");
if (-1 != split) {
packType = val.substring(0, split);
}
}
return packType;
}
public static final String BASE_PACK_DIR = "resource/i18n/";
}
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessageType()
get bundle message pack type
|
java.lang.String |
getPackName()
get bundle message pack name
|
value