com.sun.xml.ws.util.localization
Interface Localizable

All Known Implementing Classes:
ClientTransportException, DeserializationException, DuplicateEntityException, ExceptionHasMessage, GeneratorException, HandlerException, JAXWSExceptionBase, LocalizableImpl, LocalizableMessage, MessageCreationException, ModelerException, ModelException, NoSuchEntityException, NullLocalizable, ParseException, ProcessorException, RuntimeModelerException, SenderException, SerializationException, ServerRtException, UnsupportedMediaException, UtilException, ValidationException, VersionMismatchException, WSDLParseException, WSServletException, XMLMessageException, XMLReaderException, XMLStreamReaderException, XMLStreamWriterException

public interface Localizable

Localizable message.


Field Summary
static String NOT_LOCALIZABLE
          Special constant that represents a message that is not localizable.
 
Method Summary
 Object[] getArguments()
          Returns the arguments for message formatting.
 String getKey()
          Gets the key in the resource bundle.
 String getResourceBundleName()
           
 

Field Detail

NOT_LOCALIZABLE

static final String NOT_LOCALIZABLE
Special constant that represents a message that is not localizable.

Use of "new" is to create an unique instance.

Method Detail

getKey

String getKey()
Gets the key in the resource bundle.

Returns:
if this method returns NOT_LOCALIZABLE, that means the message is not localizable, and the first item of getArguments() array holds a String.

getArguments

Object[] getArguments()
Returns the arguments for message formatting.

Returns:
can be an array of length 0 but never be null.

getResourceBundleName

String getResourceBundleName()