Messagespublic class Messages extends Object
Fields Summary |
---|
static final String | UNRECOGNIZED_SEVERITY | static final String | RESULT_NULL_CONTEXT | static final String | RESULT_NULL_UNMARSHALLER | static final String | SOURCE_NULL_CONTEXT | static final String | SOURCE_NULL_CONTENT | static final String | SOURCE_NULL_MARSHALLER |
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);
|
|