FileDocCategorySizeDatePackage
Messages.javaAPI DocJava SE 6 API2100Tue Jun 10 00:27:04 BST 2008javax.xml.bind

Messages

public class Messages extends Object
Formats error messages.

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
Constructors Summary
Methods Summary
static java.lang.Stringformat(java.lang.String property)

        return format( property, null );
    
static java.lang.Stringformat(java.lang.String property, java.lang.Object arg1)

        return format( property, new Object[]{arg1} );
    
static java.lang.Stringformat(java.lang.String property, java.lang.Object arg1, java.lang.Object arg2)

        return format( property, new Object[]{arg1,arg2} );
    
static java.lang.Stringformat(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.Stringformat(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);