MessageFactorypublic final class MessageFactory extends Object
Fields Summary |
---|
protected static final ResourceBundle | bundle |
Constructors Summary |
---|
public MessageFactory()
super();
|
Methods Summary |
---|
public static java.lang.String | get(java.lang.String key)
return bundle.getString(key);
| public static java.lang.String | get(java.lang.String key, java.lang.Object obj0)
return getArray(key, new Object[] { obj0 });
| public static java.lang.String | get(java.lang.String key, java.lang.Object obj0, java.lang.Object obj1)
return getArray(key, new Object[] { obj0, obj1 });
| public static java.lang.String | get(java.lang.String key, java.lang.Object obj0, java.lang.Object obj1, java.lang.Object obj2)
return getArray(key, new Object[] { obj0, obj1, obj2 });
| public static java.lang.String | get(java.lang.String key, java.lang.Object obj0, java.lang.Object obj1, java.lang.Object obj2, java.lang.Object obj3)
return getArray(key, new Object[] { obj0, obj1, obj2, obj3 });
| public static java.lang.String | get(java.lang.String key, java.lang.Object obj0, java.lang.Object obj1, java.lang.Object obj2, java.lang.Object obj3, java.lang.Object obj4)
return getArray(key, new Object[] { obj0, obj1, obj2, obj3, obj4 });
| public static java.lang.String | getArray(java.lang.String key, java.lang.Object[] objA)
return MessageFormat.format(bundle.getString(key), objA);
|
|