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

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Version en cache

21/08/2025 18:35:24 Cette version de la page est en cache (à la date du 21/08/2025 18:35:24) afin d'accélérer le traitement.
Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.

Document créé le 24/12/2007, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/xml/registry/infomodel/localizedstring.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, LocalizedString

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.