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

Messages

public class Messages extends Object
Formats error messages.

Fields Summary
static final String
INPUTSTREAM_NOT_NULL
static final String
MUST_BE_BOOLEAN
static final String
MUST_BE_STRING
static final String
SEVERITY_MESSAGE
static final String
LOCATION_UNAVAILABLE
static final String
UNRECOGNIZED_SEVERITY
static final String
WARNING
static final String
ERROR
static final String
FATAL_ERROR
static final String
ILLEGAL_SEVERITY
static final String
MUST_NOT_BE_NULL
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);