com.sun.xml.bind.marshaller

Class Messages

public class Messages extends Object

Formats error messages.

Since: JAXB1.0

Field Summary
static StringASSERT_FAILED
static StringDOM_IMPL_DOESNT_SUPPORT_CREATELEMENTNS
static StringERR_DANGLING_IDREF
static StringERR_MISSING_OBJECT
static StringERR_MISSING_OBJECT2
static StringERR_NOT_IDENTIFIABLE
static StringNOT_MARSHALLABLE
static StringNULL_WRITER
static StringUNSUPPORTED_ENCODING
static StringUNSUPPORTED_RESULT
Method Summary
static Stringformat(String property)
static Stringformat(String property, Object arg1)
static Stringformat(String property, Object arg1, Object arg2)
static Stringformat(String property, Object arg1, Object arg2, Object arg3)
static Stringformat(String property, Object[] args)
Loads a string resource and formats it with specified arguments.

Field Detail

ASSERT_FAILED

public static final String ASSERT_FAILED

DOM_IMPL_DOESNT_SUPPORT_CREATELEMENTNS

public static final String DOM_IMPL_DOESNT_SUPPORT_CREATELEMENTNS

ERR_DANGLING_IDREF

public static final String ERR_DANGLING_IDREF

Deprecated: only used from 1.0

ERR_MISSING_OBJECT

public static final String ERR_MISSING_OBJECT

Deprecated: use ERR_MISSING_OBJECT2

ERR_MISSING_OBJECT2

public static final String ERR_MISSING_OBJECT2

Deprecated: use reportMissingObjectError

ERR_NOT_IDENTIFIABLE

public static final String ERR_NOT_IDENTIFIABLE

Deprecated: only used from 1.0

NOT_MARSHALLABLE

public static final String NOT_MARSHALLABLE

NULL_WRITER

public static final String NULL_WRITER

UNSUPPORTED_ENCODING

public static final String UNSUPPORTED_ENCODING

UNSUPPORTED_RESULT

public static final String UNSUPPORTED_RESULT

Method Detail

format

public static String format(String property)

format

public static String format(String property, Object arg1)

format

public static String format(String property, Object arg1, Object arg2)

format

public static String format(String property, Object arg1, Object arg2, Object arg3)

format

static String format(String property, Object[] args)
Loads a string resource and formats it with specified arguments.