Messagespublic class Messages extends Object
Fields Summary |
---|
static final String | PROVIDER_NOT_FOUND | static final String | COULD_NOT_INSTANTIATE | static final String | CANT_FIND_PROPERTIES_FILE | static final String | CANT_MIX_PROVIDERS | static final String | MISSING_PROPERTY | static final String | NO_PACKAGE_IN_CONTEXTPATH | static final String | NAME_VALUE | static final String | CONVERTER_MUST_NOT_BE_NULL | static final String | ILLEGAL_CAST |
Methods Summary |
---|
static java.lang.String | format(java.lang.String property)
return format( property, null );
| static java.lang.String | format(java.lang.String property, java.lang.Object arg1)
return format( property, new Object[]{arg1} );
| static java.lang.String | format(java.lang.String property, java.lang.Object arg1, java.lang.Object arg2)
return format( property, new Object[]{arg1,arg2} );
| static java.lang.String | format(java.lang.String property, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
return format( property, new Object[]{arg1,arg2,arg3} );
| static java.lang.String | format(java.lang.String property, java.lang.Object[] args)Loads a string resource and formats it with specified arguments.
String text = ResourceBundle.getBundle(Messages.class.getName()).getString(property);
return MessageFormat.format(text,args);
|
|