Name
LocalizedString
Synopsis
public interface LocalizedString { // Public Constants public static final String DEFAULT_CHARSET_NAME; //="UTF-8” // Public Instance Methods public abstract String getCharsetName( ) throws javax.xml.registry.JAXRException; //L0 public abstract Locale getLocale( ) throws javax.xml.registry.JAXRException; //L0 public abstract String getValue( ) throws javax.xml.registry.JAXRException; //L0 public abstract void setCharsetName(StringcharsetName
) throws javax.xml.registry.JAXRException; //L0 public abstract void setLocale(Localelocale
) throws javax.xml.registry.JAXRException; //L0 public abstract void setValue(Stringvalue
) throws javax.xml.registry.JAXRException; //L0 }
LocalizedString
is a container for a string
together with a locale and a character set. One or more
LocalizedString
s are typically combined in an
InternationalString
to provide a single object
that can provide a localized variant of a text string for several
locales. To create a new LocalizedString( )
, use
the LifeCycleManager
createLocalizedString( )
method, which requires at
least the locale for which the object is being created and the text
to be used in that locale. Optionally, a character set may also be
specified; if no value is supplied, then UTF-8 is assumed.
The getValue( )
, getLocale( )
,
and getCharsetName( )
methods return the text,
locale, and character set associated with the
LocalizedString
. If no explicit character set is
specified, then the getCharsetName( )
method returns ...
Get Java Web Services in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.