javax.xml.registry.infomodel

Interface LocalizedString


  • public interface LocalizedString
    This interface is used as a simple wrapper interface that associates a String with its Locale. The interface is needed in the InternationalString interface where a Collection of LocalizedString instances are kept. Each LocalizedString instance has a Locale and a String instance.
    Author:
    Farrukh S. Najmi
    See Also:
    InternationalString
    • Field Detail

      • DEFAULT_CHARSET_NAME

        static final String DEFAULT_CHARSET_NAME
        The default name returned by getCharsetName if no other name has explicitly been set.
        See Also:
        Constant Field Values
    • Method Detail

      • getCharsetName

        String getCharsetName()
                       throws JAXRException
        Gets the canonical name for the charset for this object. Must return the default charset when there is no charset name defined.

        Capability Level: 0
        Returns:
        the character set name for the character set used by this object
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
        See Also:
        DEFAULT_CHARSET_NAME
      • getLocale

        Locale getLocale()
                  throws JAXRException
        Get the Locale for this object. Must return the default Locale when no Locale has been defined.

        Capability Level: 0
        Returns:
        the Locale used by this object
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
        See Also:
        Locale.getDefault()
      • getValue

        String getValue()
                 throws JAXRException
        Get the String value for this object.

        Capability Level: 0
        Returns:
        the value defined by this object
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setCharsetName

        void setCharsetName(String charsetName)
                     throws JAXRException
        Set the canonical name for the charset for this object.

        Capability Level: 0
        Parameters:
        charsetName - the character set name for the character set used by this object
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setLocale

        void setLocale(Locale locale)
                throws JAXRException
        Set the Locale for this object.

        Capability Level: 0
        Parameters:
        locale - the Locale used by this object
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setValue

        void setValue(String value)
               throws JAXRException
        Set the String value for the specified object.

        Capability Level: 0
        Parameters:
        value - the value defined by this object
        Throws:
        JAXRException - If the JAXR provider encounters an internal error

Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/xml/registry/infomodel/localizedstring.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.